
com.azure.resourcemanager.netapp.models.ReplicationObject Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-netapp Show documentation
Show all versions of azure-resourcemanager-netapp Show documentation
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.
// 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.models;
import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
/** Replication properties. */
@Fluent
public final class ReplicationObject {
@JsonIgnore private final ClientLogger logger = new ClientLogger(ReplicationObject.class);
/*
* Id
*/
@JsonProperty(value = "replicationId")
private String replicationId;
/*
* Indicates whether the local volume is the source or destination for the
* Volume Replication
*/
@JsonProperty(value = "endpointType")
private EndpointType endpointType;
/*
* Schedule
*/
@JsonProperty(value = "replicationSchedule", required = true)
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;
/**
* Get the replicationId property: Id.
*
* @return the replicationId value.
*/
public String replicationId() {
return this.replicationId;
}
/**
* Set the replicationId property: Id.
*
* @param replicationId the replicationId value to set.
* @return the ReplicationObject object itself.
*/
public ReplicationObject withReplicationId(String replicationId) {
this.replicationId = replicationId;
return this;
}
/**
* 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 ReplicationObject object itself.
*/
public ReplicationObject 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 ReplicationObject object itself.
*/
public ReplicationObject 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 ReplicationObject object itself.
*/
public ReplicationObject 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 ReplicationObject object itself.
*/
public ReplicationObject withRemoteVolumeRegion(String remoteVolumeRegion) {
this.remoteVolumeRegion = remoteVolumeRegion;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (replicationSchedule() == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property replicationSchedule in model ReplicationObject"));
}
if (remoteVolumeResourceId() == null) {
throw logger
.logExceptionAsError(
new IllegalArgumentException(
"Missing required property remoteVolumeResourceId in model ReplicationObject"));
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy