Class ServiceResourceProperties
java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceResourceProperties>
- Direct Known Subclasses:
DataTransferServiceResourceProperties
,GraphApiComputeServiceResourceProperties
,MaterializedViewsBuilderServiceResourceProperties
,SqlDedicatedGatewayServiceResourceProperties
public class ServiceResourceProperties
extends Object
implements com.azure.json.JsonSerializable<ServiceResourceProperties>
Services response resource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the additionalProperties property: Services response resource.Get the creationTime property: Time of the last state change (ISO-8601 format).static ServiceResourceProperties
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ServiceResourceProperties from the JsonReader.Get the instanceCount property: Instance count for the service.Get the instanceSize property: Instance type for the service.Get the serviceType property: ServiceType for the service.status()
Get the status property: Describes the status of a service.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAdditionalProperties
(Map<String, Object> additionalProperties) Set the additionalProperties property: Services response resource.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 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
-
ServiceResourceProperties
public ServiceResourceProperties()Creates an instance of ServiceResourceProperties class.
-
-
Method Details
-
serviceType
Get the serviceType property: ServiceType for the service.- Returns:
- the serviceType value.
-
creationTime
Get the creationTime property: Time of the last state change (ISO-8601 format).- Returns:
- the creationTime value.
-
instanceSize
Get the instanceSize property: Instance type for the service.- Returns:
- the instanceSize value.
-
withInstanceSize
Set the instanceSize property: Instance type for the service.- Parameters:
instanceSize
- the instanceSize value to set.- Returns:
- the ServiceResourceProperties object itself.
-
instanceCount
Get the instanceCount property: Instance count for the service.- Returns:
- the instanceCount value.
-
withInstanceCount
Set the instanceCount property: Instance count for the service.- Parameters:
instanceCount
- the instanceCount value to set.- Returns:
- the ServiceResourceProperties object itself.
-
status
Get the status property: Describes the status of a service.- Returns:
- the status value.
-
additionalProperties
Get the additionalProperties property: Services response resource.- Returns:
- the additionalProperties value.
-
withAdditionalProperties
Set the additionalProperties property: Services response resource.- Parameters:
additionalProperties
- the additionalProperties value to set.- Returns:
- the ServiceResourceProperties object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ServiceResourceProperties>
- Throws:
IOException
-
fromJson
public static ServiceResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServiceResourceProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of ServiceResourceProperties 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 ServiceResourceProperties.
-