ServiceResourceProperties Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.ServiceResourceProperties

Implements

public class ServiceResourceProperties
implements JsonSerializable<ServiceResourceProperties>

Services response resource.

Constructor Summary

Constructor Description
ServiceResourceProperties()

Creates an instance of ServiceResourceProperties class.

Method Summary

Modifier and Type Method and Description
Map<String,Object> additionalProperties()

Get the additionalProperties property: Services response resource.

OffsetDateTime creationTime()

Get the creationTime property: Time of the last state change (ISO-8601 format).

static ServiceResourceProperties fromJson(JsonReader jsonReader)

Reads an instance of ServiceResourceProperties from the JsonReader.

Integer instanceCount()

Get the instanceCount property: Instance count for the service.

ServiceSize instanceSize()

Get the instanceSize property: Instance type for the service.

ServiceType serviceType()

Get the serviceType property: ServiceType for the service.

ServiceStatus status()

Get the status property: Describes the status of a service.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServiceResourceProperties withAdditionalProperties(Map<String,Object> additionalProperties)

Set the additionalProperties property: Services response resource.

ServiceResourceProperties withInstanceCount(Integer instanceCount)

Set the instanceCount property: Instance count for the service.

ServiceResourceProperties withInstanceSize(ServiceSize instanceSize)

Set the instanceSize property: Instance type for the service.

Methods inherited from java.lang.Object

Constructor Details

ServiceResourceProperties

public ServiceResourceProperties()

Creates an instance of ServiceResourceProperties class.

Method Details

additionalProperties

public Map additionalProperties()

Get the additionalProperties property: Services response resource.

Returns:

the additionalProperties value.

creationTime

public OffsetDateTime creationTime()

Get the creationTime property: Time of the last state change (ISO-8601 format).

Returns:

the creationTime value.

fromJson

public static ServiceResourceProperties fromJson(JsonReader jsonReader)

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.

instanceCount

public Integer instanceCount()

Get the instanceCount property: Instance count for the service.

Returns:

the instanceCount value.

instanceSize

public ServiceSize instanceSize()

Get the instanceSize property: Instance type for the service.

Returns:

the instanceSize value.

serviceType

public ServiceType serviceType()

Get the serviceType property: ServiceType for the service.

Returns:

the serviceType value.

status

public ServiceStatus status()

Get the status property: Describes the status of a service.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdditionalProperties

public ServiceResourceProperties withAdditionalProperties(Map additionalProperties)

Set the additionalProperties property: Services response resource.

Parameters:

additionalProperties - the additionalProperties value to set.

Returns:

the ServiceResourceProperties object itself.

withInstanceCount

public ServiceResourceProperties withInstanceCount(Integer instanceCount)

Set the instanceCount property: Instance count for the service.

Parameters:

instanceCount - the instanceCount value to set.

Returns:

the ServiceResourceProperties object itself.

withInstanceSize

public ServiceResourceProperties withInstanceSize(ServiceSize instanceSize)

Set the instanceSize property: Instance type for the service.

Parameters:

instanceSize - the instanceSize value to set.

Returns:

the ServiceResourceProperties object itself.

Applies to