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 Details

    • ServiceResourceProperties

      public ServiceResourceProperties()
      Creates an instance of ServiceResourceProperties class.
  • Method Details

    • serviceType

      public ServiceType serviceType()
      Get the serviceType property: ServiceType for the service.
      Returns:
      the serviceType value.
    • creationTime

      public OffsetDateTime creationTime()
      Get the creationTime property: Time of the last state change (ISO-8601 format).
      Returns:
      the creationTime value.
    • instanceSize

      public ServiceSize instanceSize()
      Get the instanceSize property: Instance type for the service.
      Returns:
      the instanceSize value.
    • 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.
    • instanceCount

      public Integer instanceCount()
      Get the instanceCount property: Instance count for the service.
      Returns:
      the instanceCount value.
    • 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.
    • status

      public ServiceStatus status()
      Get the status property: Describes the status of a service.
      Returns:
      the status value.
    • additionalProperties

      public Map<String,Object> additionalProperties()
      Get the additionalProperties property: Services response resource.
      Returns:
      the additionalProperties value.
    • withAdditionalProperties

      public ServiceResourceProperties withAdditionalProperties(Map<String,Object> additionalProperties)
      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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.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.