Class ServiceResourceCreateUpdateParameters
java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceCreateUpdateParameters
Parameters for Create or Update Request for ServiceResource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServiceResourceCreateUpdateParameters class. -
Method Summary
Modifier and TypeMethodDescriptionGet the instanceCount property: Instance count for the service.Get the instanceSize property: Instance type for the service.Get 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.withServiceType(ServiceType serviceType) Set the serviceType property: ServiceType for the service.
-
Constructor Details
-
ServiceResourceCreateUpdateParameters
public ServiceResourceCreateUpdateParameters()Creates an instance of ServiceResourceCreateUpdateParameters class.
-
-
Method Details
-
instanceSize
Get the instanceSize property: Instance type for the service.- Returns:
- the instanceSize value.
-
withInstanceSize
Set the instanceSize property: Instance type for the service.- Parameters:
instanceSize- the instanceSize value to set.- Returns:
- the ServiceResourceCreateUpdateParameters object itself.
-
instanceCount
Get the instanceCount property: Instance count for the service.- Returns:
- the instanceCount value.
-
withInstanceCount
Set the instanceCount property: Instance count for the service.- Parameters:
instanceCount- the instanceCount value to set.- Returns:
- the ServiceResourceCreateUpdateParameters object itself.
-
serviceType
Get the serviceType property: ServiceType for the service.- Returns:
- the serviceType value.
-
withServiceType
Set the serviceType property: ServiceType for the service.- Parameters:
serviceType- the serviceType value to set.- Returns:
- the ServiceResourceCreateUpdateParameters object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-