Class ServiceResourceProperties
java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceProperties
- Direct Known Subclasses:
DataTransferServiceResourceProperties,GraphApiComputeServiceResourceProperties,MaterializedViewsBuilderServiceResourceProperties,SqlDedicatedGatewayServiceResourceProperties
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).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.voidvalidate()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.
-
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.
-