All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.azure.resourcemanager.netapp.fluent.models.ReplicationInner Maven / Gradle / Ivy

Go to download

This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package tag package-preview-2024-07-01-preview.

There is a newer version: 1.6.0-beta.1
Show newest version
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.netapp.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.netapp.models.EndpointType;
import com.azure.resourcemanager.netapp.models.ReplicationSchedule;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
 * Replication properties.
 */
@Fluent
public final class ReplicationInner {
    /*
     * Indicates whether the local volume is the source or destination for the Volume Replication
     */
    @JsonProperty(value = "endpointType")
    private EndpointType endpointType;

    /*
     * Schedule
     */
    @JsonProperty(value = "replicationSchedule")
    private ReplicationSchedule replicationSchedule;

    /*
     * The resource ID of the remote volume.
     */
    @JsonProperty(value = "remoteVolumeResourceId", required = true)
    private String remoteVolumeResourceId;

    /*
     * The remote region for the other end of the Volume Replication.
     */
    @JsonProperty(value = "remoteVolumeRegion")
    private String remoteVolumeRegion;

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

    /**
     * Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume
     * Replication.
     * 
     * @return the endpointType value.
     */
    public EndpointType endpointType() {
        return this.endpointType;
    }

    /**
     * Set the endpointType property: Indicates whether the local volume is the source or destination for the Volume
     * Replication.
     * 
     * @param endpointType the endpointType value to set.
     * @return the ReplicationInner object itself.
     */
    public ReplicationInner withEndpointType(EndpointType endpointType) {
        this.endpointType = endpointType;
        return this;
    }

    /**
     * Get the replicationSchedule property: Schedule.
     * 
     * @return the replicationSchedule value.
     */
    public ReplicationSchedule replicationSchedule() {
        return this.replicationSchedule;
    }

    /**
     * Set the replicationSchedule property: Schedule.
     * 
     * @param replicationSchedule the replicationSchedule value to set.
     * @return the ReplicationInner object itself.
     */
    public ReplicationInner withReplicationSchedule(ReplicationSchedule replicationSchedule) {
        this.replicationSchedule = replicationSchedule;
        return this;
    }

    /**
     * Get the remoteVolumeResourceId property: The resource ID of the remote volume.
     * 
     * @return the remoteVolumeResourceId value.
     */
    public String remoteVolumeResourceId() {
        return this.remoteVolumeResourceId;
    }

    /**
     * Set the remoteVolumeResourceId property: The resource ID of the remote volume.
     * 
     * @param remoteVolumeResourceId the remoteVolumeResourceId value to set.
     * @return the ReplicationInner object itself.
     */
    public ReplicationInner withRemoteVolumeResourceId(String remoteVolumeResourceId) {
        this.remoteVolumeResourceId = remoteVolumeResourceId;
        return this;
    }

    /**
     * Get the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.
     * 
     * @return the remoteVolumeRegion value.
     */
    public String remoteVolumeRegion() {
        return this.remoteVolumeRegion;
    }

    /**
     * Set the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.
     * 
     * @param remoteVolumeRegion the remoteVolumeRegion value to set.
     * @return the ReplicationInner object itself.
     */
    public ReplicationInner withRemoteVolumeRegion(String remoteVolumeRegion) {
        this.remoteVolumeRegion = remoteVolumeRegion;
        return this;
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy