Class FleetspaceAccountProperties
java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.FleetspaceAccountProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<FleetspaceAccountProperties>
public final class FleetspaceAccountProperties
extends Object
implements com.azure.json.JsonSerializable<FleetspaceAccountProperties>
An Azure Cosmos DB Global Database Account which is part of a Fleetspace Account.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of FleetspaceAccountProperties class. -
Method Summary
Modifier and TypeMethodDescriptionstatic FleetspaceAccountPropertiesfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of FleetspaceAccountProperties from the JsonReader.Get the globalDatabaseAccountProperties property: Configuration for fleetspace Account in the fleetspace.Get the provisioningState property: A provisioning state of the Fleetspace Account.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withGlobalDatabaseAccountProperties(FleetspaceAccountPropertiesGlobalDatabaseAccountProperties globalDatabaseAccountProperties) Set the globalDatabaseAccountProperties property: Configuration for fleetspace Account in the fleetspace.withProvisioningState(Status provisioningState) Set the provisioningState property: A provisioning state of the Fleetspace Account.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
-
FleetspaceAccountProperties
public FleetspaceAccountProperties()Creates an instance of FleetspaceAccountProperties class.
-
-
Method Details
-
provisioningState
Get the provisioningState property: A provisioning state of the Fleetspace Account.- Returns:
- the provisioningState value.
-
withProvisioningState
Set the provisioningState property: A provisioning state of the Fleetspace Account.- Parameters:
provisioningState- the provisioningState value to set.- Returns:
- the FleetspaceAccountProperties object itself.
-
globalDatabaseAccountProperties
Get the globalDatabaseAccountProperties property: Configuration for fleetspace Account in the fleetspace.- Returns:
- the globalDatabaseAccountProperties value.
-
withGlobalDatabaseAccountProperties
public FleetspaceAccountProperties withGlobalDatabaseAccountProperties(FleetspaceAccountPropertiesGlobalDatabaseAccountProperties globalDatabaseAccountProperties) Set the globalDatabaseAccountProperties property: Configuration for fleetspace Account in the fleetspace.- Parameters:
globalDatabaseAccountProperties- the globalDatabaseAccountProperties value to set.- Returns:
- the FleetspaceAccountProperties 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<FleetspaceAccountProperties>- Throws:
IOException
-
fromJson
public static FleetspaceAccountProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of FleetspaceAccountProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of FleetspaceAccountProperties 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 FleetspaceAccountProperties.
-