Class GraphApiComputeServiceResourceProperties
java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceProperties
com.azure.resourcemanager.cosmos.models.GraphApiComputeServiceResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceResourceProperties>
Properties for GraphAPIComputeServiceResource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GraphApiComputeServiceResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of GraphApiComputeServiceResourceProperties from the JsonReader.Get the graphApiComputeEndpoint property: GraphAPICompute endpoint for the service.Get the locations property: An array that contains all of the locations for the service.Get the serviceType property: ServiceType for the service.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withGraphApiComputeEndpoint
(String graphApiComputeEndpoint) Set the graphApiComputeEndpoint property: GraphAPICompute endpoint for the service.withInstanceCount
(Integer instanceCount) Set the instanceCount property: Instance count for the service.withInstanceSize
(ServiceSize instanceSize) Set the instanceSize property: Instance type for the service.Methods inherited from class com.azure.resourcemanager.cosmos.models.ServiceResourceProperties
additionalProperties, creationTime, instanceCount, instanceSize, status, withAdditionalProperties
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
GraphApiComputeServiceResourceProperties
public GraphApiComputeServiceResourceProperties()Creates an instance of GraphApiComputeServiceResourceProperties class.
-
-
Method Details
-
serviceType
Get the serviceType property: ServiceType for the service.- Overrides:
serviceType
in classServiceResourceProperties
- Returns:
- the serviceType value.
-
graphApiComputeEndpoint
Get the graphApiComputeEndpoint property: GraphAPICompute endpoint for the service.- Returns:
- the graphApiComputeEndpoint value.
-
withGraphApiComputeEndpoint
public GraphApiComputeServiceResourceProperties withGraphApiComputeEndpoint(String graphApiComputeEndpoint) Set the graphApiComputeEndpoint property: GraphAPICompute endpoint for the service.- Parameters:
graphApiComputeEndpoint
- the graphApiComputeEndpoint value to set.- Returns:
- the GraphApiComputeServiceResourceProperties object itself.
-
locations
Get the locations property: An array that contains all of the locations for the service.- Returns:
- the locations value.
-
withInstanceSize
Set the instanceSize property: Instance type for the service.- Overrides:
withInstanceSize
in classServiceResourceProperties
- Parameters:
instanceSize
- the instanceSize value to set.- Returns:
- the ServiceResourceProperties object itself.
-
withInstanceCount
Set the instanceCount property: Instance count for the service.- Overrides:
withInstanceCount
in classServiceResourceProperties
- Parameters:
instanceCount
- the instanceCount value to set.- Returns:
- the ServiceResourceProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classServiceResourceProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ServiceResourceProperties>
- Overrides:
toJson
in classServiceResourceProperties
- Throws:
IOException
-
fromJson
public static GraphApiComputeServiceResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of GraphApiComputeServiceResourceProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of GraphApiComputeServiceResourceProperties 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 GraphApiComputeServiceResourceProperties.
-