Class ServiceResourceProperties

java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceProperties
Direct Known Subclasses:
DataTransferServiceResourceProperties, GraphApiComputeServiceResourceProperties, MaterializedViewsBuilderServiceResourceProperties, SqlDedicatedGatewayServiceResourceProperties

public class ServiceResourceProperties extends Object
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.