Class SqlDedicatedGatewayServiceResourceCreateUpdateParameters
java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceCreateUpdateProperties
com.azure.resourcemanager.cosmos.models.SqlDedicatedGatewayServiceResourceCreateUpdateParameters
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceResourceCreateUpdateProperties>
public final class SqlDedicatedGatewayServiceResourceCreateUpdateParameters
extends ServiceResourceCreateUpdateProperties
Properties for Create or Update request for SqlDedicatedGatewayServiceResource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of SqlDedicatedGatewayServiceResourceCreateUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the dedicatedGatewayType property: DedicatedGatewayType for the service.fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of SqlDedicatedGatewayServiceResourceCreateUpdateParameters from the JsonReader.Get the serviceType property: ServiceType for the service.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withDedicatedGatewayType
(DedicatedGatewayType dedicatedGatewayType) Set the dedicatedGatewayType property: DedicatedGatewayType for the service.withInstanceCount
(Integer instanceCount) Set the instanceCount property: Instance count for the service.withInstanceSize
(ServiceSize instanceSize) Set the instanceSize property: Instance type for the service.Methods inherited from class com.azure.resourcemanager.cosmos.models.ServiceResourceCreateUpdateProperties
instanceCount, instanceSize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
SqlDedicatedGatewayServiceResourceCreateUpdateParameters
public SqlDedicatedGatewayServiceResourceCreateUpdateParameters()Creates an instance of SqlDedicatedGatewayServiceResourceCreateUpdateParameters class.
-
-
Method Details
-
serviceType
Get the serviceType property: ServiceType for the service.- Overrides:
serviceType
in classServiceResourceCreateUpdateProperties
- Returns:
- the serviceType value.
-
dedicatedGatewayType
Get the dedicatedGatewayType property: DedicatedGatewayType for the service.- Returns:
- the dedicatedGatewayType value.
-
withDedicatedGatewayType
public SqlDedicatedGatewayServiceResourceCreateUpdateParameters withDedicatedGatewayType(DedicatedGatewayType dedicatedGatewayType) Set the dedicatedGatewayType property: DedicatedGatewayType for the service.- Parameters:
dedicatedGatewayType
- the dedicatedGatewayType value to set.- Returns:
- the SqlDedicatedGatewayServiceResourceCreateUpdateParameters object itself.
-
withInstanceSize
public SqlDedicatedGatewayServiceResourceCreateUpdateParameters withInstanceSize(ServiceSize instanceSize) Set the instanceSize property: Instance type for the service.- Overrides:
withInstanceSize
in classServiceResourceCreateUpdateProperties
- Parameters:
instanceSize
- the instanceSize value to set.- Returns:
- the ServiceResourceCreateUpdateProperties object itself.
-
withInstanceCount
public SqlDedicatedGatewayServiceResourceCreateUpdateParameters withInstanceCount(Integer instanceCount) Set the instanceCount property: Instance count for the service.- Overrides:
withInstanceCount
in classServiceResourceCreateUpdateProperties
- Parameters:
instanceCount
- the instanceCount value to set.- Returns:
- the ServiceResourceCreateUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validate
in classServiceResourceCreateUpdateProperties
- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ServiceResourceCreateUpdateProperties>
- Overrides:
toJson
in classServiceResourceCreateUpdateProperties
- Throws:
IOException
-
fromJson
public static SqlDedicatedGatewayServiceResourceCreateUpdateParameters fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of SqlDedicatedGatewayServiceResourceCreateUpdateParameters from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of SqlDedicatedGatewayServiceResourceCreateUpdateParameters 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 SqlDedicatedGatewayServiceResourceCreateUpdateParameters.
-