Class ReplicationInner

java.lang.Object
com.azure.resourcemanager.netapp.fluent.models.ReplicationInner
All Implemented Interfaces:
com.azure.json.JsonSerializable<ReplicationInner>

public final class ReplicationInner extends Object implements com.azure.json.JsonSerializable<ReplicationInner>
Replication properties.
  • Constructor Details

    • ReplicationInner

      public ReplicationInner()
      Creates an instance of ReplicationInner class.
  • Method Details

    • replicationId

      public String replicationId()
      Get the replicationId property: UUID v4 used to identify the replication.
      Returns:
      the replicationId value.
    • endpointType

      public EndpointType endpointType()
      Get the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.
      Returns:
      the endpointType value.
    • withEndpointType

      public ReplicationInner withEndpointType(EndpointType endpointType)
      Set the endpointType property: Indicates whether the local volume is the source or destination for the Volume Replication.
      Parameters:
      endpointType - the endpointType value to set.
      Returns:
      the ReplicationInner object itself.
    • replicationSchedule

      public ReplicationSchedule replicationSchedule()
      Get the replicationSchedule property: Schedule.
      Returns:
      the replicationSchedule value.
    • withReplicationSchedule

      public ReplicationInner withReplicationSchedule(ReplicationSchedule replicationSchedule)
      Set the replicationSchedule property: Schedule.
      Parameters:
      replicationSchedule - the replicationSchedule value to set.
      Returns:
      the ReplicationInner object itself.
    • remoteVolumeResourceId

      public String remoteVolumeResourceId()
      Get the remoteVolumeResourceId property: The resource ID of the remote volume.
      Returns:
      the remoteVolumeResourceId value.
    • withRemoteVolumeResourceId

      public ReplicationInner withRemoteVolumeResourceId(String remoteVolumeResourceId)
      Set the remoteVolumeResourceId property: The resource ID of the remote volume.
      Parameters:
      remoteVolumeResourceId - the remoteVolumeResourceId value to set.
      Returns:
      the ReplicationInner object itself.
    • remoteVolumeRegion

      public String remoteVolumeRegion()
      Get the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.
      Returns:
      the remoteVolumeRegion value.
    • withRemoteVolumeRegion

      public ReplicationInner withRemoteVolumeRegion(String remoteVolumeRegion)
      Set the remoteVolumeRegion property: The remote region for the other end of the Volume Replication.
      Parameters:
      remoteVolumeRegion - the remoteVolumeRegion value to set.
      Returns:
      the ReplicationInner object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ReplicationInner>
      Throws:
      IOException
    • fromJson

      public static ReplicationInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ReplicationInner from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ReplicationInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the ReplicationInner.