Class SqlDedicatedGatewayServiceResourceProperties

java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceProperties
com.azure.resourcemanager.cosmos.models.SqlDedicatedGatewayServiceResourceProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceResourceProperties>

public final class SqlDedicatedGatewayServiceResourceProperties extends ServiceResourceProperties
Properties for SqlDedicatedGatewayServiceResource.
  • Constructor Details

    • SqlDedicatedGatewayServiceResourceProperties

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

    • serviceType

      public ServiceType serviceType()
      Get the serviceType property: ServiceType for the service.
      Overrides:
      serviceType in class ServiceResourceProperties
      Returns:
      the serviceType value.
    • sqlDedicatedGatewayEndpoint

      public String sqlDedicatedGatewayEndpoint()
      Get the sqlDedicatedGatewayEndpoint property: SqlDedicatedGateway endpoint for the service.
      Returns:
      the sqlDedicatedGatewayEndpoint value.
    • withSqlDedicatedGatewayEndpoint

      public SqlDedicatedGatewayServiceResourceProperties withSqlDedicatedGatewayEndpoint(String sqlDedicatedGatewayEndpoint)
      Set the sqlDedicatedGatewayEndpoint property: SqlDedicatedGateway endpoint for the service.
      Parameters:
      sqlDedicatedGatewayEndpoint - the sqlDedicatedGatewayEndpoint value to set.
      Returns:
      the SqlDedicatedGatewayServiceResourceProperties object itself.
    • dedicatedGatewayType

      public DedicatedGatewayType dedicatedGatewayType()
      Get the dedicatedGatewayType property: DedicatedGatewayType for the service.
      Returns:
      the dedicatedGatewayType value.
    • withDedicatedGatewayType

      public SqlDedicatedGatewayServiceResourceProperties withDedicatedGatewayType(DedicatedGatewayType dedicatedGatewayType)
      Set the dedicatedGatewayType property: DedicatedGatewayType for the service.
      Parameters:
      dedicatedGatewayType - the dedicatedGatewayType value to set.
      Returns:
      the SqlDedicatedGatewayServiceResourceProperties object itself.
    • locations

      Get the locations property: An array that contains all of the locations for the service.
      Returns:
      the locations value.
    • withInstanceSize

      public SqlDedicatedGatewayServiceResourceProperties withInstanceSize(ServiceSize instanceSize)
      Set the instanceSize property: Instance type for the service.
      Overrides:
      withInstanceSize in class ServiceResourceProperties
      Parameters:
      instanceSize - the instanceSize value to set.
      Returns:
      the ServiceResourceProperties object itself.
    • withInstanceCount

      public SqlDedicatedGatewayServiceResourceProperties withInstanceCount(Integer instanceCount)
      Set the instanceCount property: Instance count for the service.
      Overrides:
      withInstanceCount in class ServiceResourceProperties
      Parameters:
      instanceCount - the instanceCount value to set.
      Returns:
      the ServiceResourceProperties object itself.
    • validate

      public void validate()
      Validates the instance.
      Overrides:
      validate in class ServiceResourceProperties
      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>
      Overrides:
      toJson in class ServiceResourceProperties
      Throws:
      IOException
    • fromJson

      public static SqlDedicatedGatewayServiceResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of SqlDedicatedGatewayServiceResourceProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of SqlDedicatedGatewayServiceResourceProperties 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 SqlDedicatedGatewayServiceResourceProperties.