Class GraphApiComputeServiceResourceCreateUpdateParameters
java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceCreateUpdateProperties
com.azure.resourcemanager.cosmos.models.GraphApiComputeServiceResourceCreateUpdateParameters
public final class GraphApiComputeServiceResourceCreateUpdateParameters
extends ServiceResourceCreateUpdateProperties
Parameters for Create or Update request for GraphAPIComputeServiceResource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of GraphApiComputeServiceResourceCreateUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the serviceType property: ServiceType for the service.voidvalidate()Validates the instance.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
-
Constructor Details
-
GraphApiComputeServiceResourceCreateUpdateParameters
public GraphApiComputeServiceResourceCreateUpdateParameters()Creates an instance of GraphApiComputeServiceResourceCreateUpdateParameters class.
-
-
Method Details
-
serviceType
Get the serviceType property: ServiceType for the service.- Overrides:
serviceTypein classServiceResourceCreateUpdateProperties- Returns:
- the serviceType value.
-
withInstanceSize
public GraphApiComputeServiceResourceCreateUpdateParameters withInstanceSize(ServiceSize instanceSize) Set the instanceSize property: Instance type for the service.- Overrides:
withInstanceSizein classServiceResourceCreateUpdateProperties- Parameters:
instanceSize- the instanceSize value to set.- Returns:
- the ServiceResourceCreateUpdateProperties object itself.
-
withInstanceCount
public GraphApiComputeServiceResourceCreateUpdateParameters withInstanceCount(Integer instanceCount) Set the instanceCount property: Instance count for the service.- Overrides:
withInstanceCountin classServiceResourceCreateUpdateProperties- Parameters:
instanceCount- the instanceCount value to set.- Returns:
- the ServiceResourceCreateUpdateProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classServiceResourceCreateUpdateProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-