Class MhsmGeoReplicatedRegionInner
java.lang.Object
com.azure.resourcemanager.keyvault.fluent.models.MhsmGeoReplicatedRegionInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MhsmGeoReplicatedRegionInner>
public final class MhsmGeoReplicatedRegionInner
extends Object
implements com.azure.json.JsonSerializable<MhsmGeoReplicatedRegionInner>
A region that this managed HSM Pool has been extended to.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MhsmGeoReplicatedRegionInner class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MhsmGeoReplicatedRegionInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MhsmGeoReplicatedRegionInner from the JsonReader.Get the isPrimary property: A boolean value that indicates whether the region is the primary region or a secondary region.name()Get the name property: Name of the geo replicated region.Get the provisioningState property: Provisioning state of the geo replicated region.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withIsPrimary(Boolean isPrimary) Set the isPrimary property: A boolean value that indicates whether the region is the primary region or a secondary region.Set the name property: Name of the geo replicated region.Methods inherited from class java.lang.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
-
MhsmGeoReplicatedRegionInner
public MhsmGeoReplicatedRegionInner()Creates an instance of MhsmGeoReplicatedRegionInner class.
-
-
Method Details
-
name
Get the name property: Name of the geo replicated region.- Returns:
- the name value.
-
withName
Set the name property: Name of the geo replicated region.- Parameters:
name- the name value to set.- Returns:
- the MhsmGeoReplicatedRegionInner object itself.
-
provisioningState
Get the provisioningState property: Provisioning state of the geo replicated region.- Returns:
- the provisioningState value.
-
isPrimary
Get the isPrimary property: A boolean value that indicates whether the region is the primary region or a secondary region.- Returns:
- the isPrimary value.
-
withIsPrimary
Set the isPrimary property: A boolean value that indicates whether the region is the primary region or a secondary region.- Parameters:
isPrimary- the isPrimary value to set.- Returns:
- the MhsmGeoReplicatedRegionInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MhsmGeoReplicatedRegionInner>- Throws:
IOException
-
fromJson
public static MhsmGeoReplicatedRegionInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MhsmGeoReplicatedRegionInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MhsmGeoReplicatedRegionInner 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 MhsmGeoReplicatedRegionInner.
-