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 Summary
ConstructorsConstructorDescriptionCreates an instance of WorkspaceReplicationProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the createdDate property: The last time when the replication was enabled.enabled()Get the enabled property: Specifies whether the replication is enabled or not.fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of WorkspaceReplicationProperties from the JsonReader.Get the lastModifiedDate property: The last time when the replication was updated.location()Get the location property: The location of the replication.Get the provisioningState property: The provisioning state of the replication.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) withEnabled(Boolean enabled) Set the enabled property: Specifies whether the replication is enabled or not.withLocation(String location) Set the location property: The location of the replication.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
WorkspaceReplicationProperties
public WorkspaceReplicationProperties()Creates an instance of WorkspaceReplicationProperties class.
-
-
Method Details
-
location
Get the location property: The location of the replication.- Returns:
- the location value.
-
withLocation
Set the location property: The location of the replication.- Parameters:
location- the location value to set.- Returns:
- the WorkspaceReplicationProperties object itself.
-
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
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
Get the provisioningState property: The provisioning state of the replication.- Returns:
- the provisioningState value.
-
createdDate
Get the createdDate property: The last time when the replication was enabled.- Returns:
- the createdDate value.
-
lastModifiedDate
Get the lastModifiedDate property: The last time when the replication was updated.- Returns:
- the lastModifiedDate value.
-
toJson
- Specified by:
toJsonin interfacecom.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.
-