Class ServiceResourceCreateUpdateProperties

java.lang.Object
com.azure.resourcemanager.cosmos.fluent.models.ServiceResourceCreateUpdateProperties

public final class ServiceResourceCreateUpdateProperties extends Object
Properties in ServiceResourceCreateUpdateParameters.
  • Constructor Details

    • ServiceResourceCreateUpdateProperties

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

    • instanceSize

      public ServiceSize instanceSize()
      Get the instanceSize property: Instance type for the service.
      Returns:
      the instanceSize value.
    • withInstanceSize

      public ServiceResourceCreateUpdateProperties withInstanceSize(ServiceSize instanceSize)
      Set the instanceSize property: Instance type for the service.
      Parameters:
      instanceSize - the instanceSize value to set.
      Returns:
      the ServiceResourceCreateUpdateProperties object itself.
    • instanceCount

      public Integer instanceCount()
      Get the instanceCount property: Instance count for the service.
      Returns:
      the instanceCount value.
    • withInstanceCount

      public ServiceResourceCreateUpdateProperties withInstanceCount(Integer instanceCount)
      Set the instanceCount property: Instance count for the service.
      Parameters:
      instanceCount - the instanceCount value to set.
      Returns:
      the ServiceResourceCreateUpdateProperties object itself.
    • serviceType

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

      public ServiceResourceCreateUpdateProperties withServiceType(ServiceType serviceType)
      Set the serviceType property: ServiceType for the service.
      Parameters:
      serviceType - the serviceType value to set.
      Returns:
      the ServiceResourceCreateUpdateProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.