ServiceResourceProperties Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. ServiceResourceProperties
- com.
Implements
public class ServiceResourceProperties
implements JsonSerializable<ServiceResourceProperties>
Services response resource.
Constructor Summary
Constructor | Description |
---|---|
ServiceResourceProperties() |
Creates an instance of Service |
Method Summary
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
additionalProperties()
Get the additional |
Offset |
creationTime()
Get the creation |
static
Service |
fromJson(JsonReader jsonReader)
Reads an instance of Service |
Integer |
instanceCount()
Get the instance |
Service |
instanceSize()
Get the instance |
Service |
serviceType()
Get the service |
Service |
status()
Get the status property: Describes the status of a service. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Service |
withAdditionalProperties(Map<String,Object> additionalProperties)
Set the additional |
Service |
withInstanceCount(Integer instanceCount)
Set the instance |
Service |
withInstanceSize(ServiceSize instanceSize)
Set the instance |
Methods inherited from java.lang.Object
Constructor Details
ServiceResourceProperties
public ServiceResourceProperties()
Creates an instance of ServiceResourceProperties class.
Method Details
additionalProperties
public Map
Get the additionalProperties property: Services response resource.
Returns:
creationTime
public OffsetDateTime creationTime()
Get the creationTime property: Time of the last state change (ISO-8601 format).
Returns:
fromJson
public static ServiceResourceProperties fromJson(JsonReader jsonReader)
Reads an instance of ServiceResourceProperties from the JsonReader.
Parameters:
Returns:
Throws:
instanceCount
public Integer instanceCount()
Get the instanceCount property: Instance count for the service.
Returns:
instanceSize
public ServiceSize instanceSize()
Get the instanceSize property: Instance type for the service.
Returns:
serviceType
public ServiceType serviceType()
Get the serviceType property: ServiceType for the service.
Returns:
status
public ServiceStatus status()
Get the status property: Describes the status of a service.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAdditionalProperties
public ServiceResourceProperties withAdditionalProperties(Map
Set the additionalProperties property: Services response resource.
Parameters:
Returns:
withInstanceCount
public ServiceResourceProperties withInstanceCount(Integer instanceCount)
Set the instanceCount property: Instance count for the service.
Parameters:
Returns:
withInstanceSize
public ServiceResourceProperties withInstanceSize(ServiceSize instanceSize)
Set the instanceSize property: Instance type for the service.
Parameters:
Returns:
Applies to
Azure SDK for Java