// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.recoveryservicessiterecovery.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Pause replication input properties. */
@Fluent
public final class PauseReplicationInputProperties {
    /*
     * The class type.
     */
    @JsonProperty(value = "instanceType", required = true)
    private String instanceType;

    /** Creates an instance of PauseReplicationInputProperties class. */
    public PauseReplicationInputProperties() {
    }

    /**
     * Get the instanceType property: The class type.
     *
     * @return the instanceType value.
     */
    public String instanceType() {
        return this.instanceType;
    }

    /**
     * Set the instanceType property: The class type.
     *
     * @param instanceType the instanceType value to set.
     * @return the PauseReplicationInputProperties object itself.
     */
    public PauseReplicationInputProperties withInstanceType(String instanceType) {
        this.instanceType = instanceType;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (instanceType() == null) {
            throw LOGGER
                .logExceptionAsError(
                    new IllegalArgumentException(
                        "Missing required property instanceType in model PauseReplicationInputProperties"));
        }
    }

    private static final ClientLogger LOGGER = new ClientLogger(PauseReplicationInputProperties.class);
}
