Class WorkspaceReplicationProperties

java.lang.Object
com.azure.resourcemanager.loganalytics.models.WorkspaceReplicationProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<WorkspaceReplicationProperties>

public final class WorkspaceReplicationProperties extends Object implements com.azure.json.JsonSerializable<WorkspaceReplicationProperties>
Workspace replication properties.
  • Constructor Details

    • WorkspaceReplicationProperties

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

    • location

      public String location()
      Get the location property: The location of the replication.
      Returns:
      the location value.
    • withLocation

      public WorkspaceReplicationProperties withLocation(String location)
      Set the location property: The location of the replication.
      Parameters:
      location - the location value to set.
      Returns:
      the WorkspaceReplicationProperties object itself.
    • enabled

      public Boolean enabled()
      Get the enabled property: Specifies whether the replication is enabled or not. When true, workspace configuration and data is replicated to the specified location. If replication is been enabled, location must be provided.
      Returns:
      the enabled value.
    • withEnabled

      public WorkspaceReplicationProperties withEnabled(Boolean enabled)
      Set the enabled property: Specifies whether the replication is enabled or not. When true, workspace configuration and data is replicated to the specified location. If replication is been enabled, location must be provided.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the WorkspaceReplicationProperties object itself.
    • provisioningState

      public WorkspaceReplicationState provisioningState()
      Get the provisioningState property: The provisioning state of the replication.
      Returns:
      the provisioningState value.
    • createdDate

      public OffsetDateTime createdDate()
      Get the createdDate property: The last time when the replication was enabled.
      Returns:
      the createdDate value.
    • lastModifiedDate

      public OffsetDateTime lastModifiedDate()
      Get the lastModifiedDate property: The last time when the replication was updated.
      Returns:
      the lastModifiedDate value.
    • toJson

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

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