Class MaterializedViewsBuilderServiceResourceProperties
java.lang.Object
com.azure.resourcemanager.cosmos.models.ServiceResourceProperties
com.azure.resourcemanager.cosmos.models.MaterializedViewsBuilderServiceResourceProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServiceResourceProperties>
public final class MaterializedViewsBuilderServiceResourceProperties
extends ServiceResourceProperties
Properties for MaterializedViewsBuilderServiceResource.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of MaterializedViewsBuilderServiceResourceProperties class. -
Method Summary
Modifier and TypeMethodDescriptionGet the creationTime property: Time of the last state change (ISO-8601 format).fromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MaterializedViewsBuilderServiceResourceProperties from the JsonReader.Get the locations property: An array that contains all of the locations for the service.Get the serviceType property: ServiceType for the service.status()Get the status property: Describes the status of a service.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) 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.ServiceResourceProperties
additionalProperties, instanceCount, instanceSize, withAdditionalPropertiesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
MaterializedViewsBuilderServiceResourceProperties
public MaterializedViewsBuilderServiceResourceProperties()Creates an instance of MaterializedViewsBuilderServiceResourceProperties class.
-
-
Method Details
-
serviceType
Get the serviceType property: ServiceType for the service.- Overrides:
serviceTypein classServiceResourceProperties- Returns:
- the serviceType value.
-
locations
Get the locations property: An array that contains all of the locations for the service.- Returns:
- the locations value.
-
status
Get the status property: Describes the status of a service.- Overrides:
statusin classServiceResourceProperties- Returns:
- the status value.
-
creationTime
Get the creationTime property: Time of the last state change (ISO-8601 format).- Overrides:
creationTimein classServiceResourceProperties- Returns:
- the creationTime value.
-
withInstanceSize
Set the instanceSize property: Instance type for the service.- Overrides:
withInstanceSizein classServiceResourceProperties- Parameters:
instanceSize- the instanceSize value to set.- Returns:
- the ServiceResourceProperties object itself.
-
withInstanceCount
Set the instanceCount property: Instance count for the service.- Overrides:
withInstanceCountin classServiceResourceProperties- Parameters:
instanceCount- the instanceCount value to set.- Returns:
- the ServiceResourceProperties object itself.
-
validate
public void validate()Validates the instance.- Overrides:
validatein classServiceResourceProperties- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServiceResourceProperties>- Overrides:
toJsonin classServiceResourceProperties- Throws:
IOException
-
fromJson
public static MaterializedViewsBuilderServiceResourceProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MaterializedViewsBuilderServiceResourceProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MaterializedViewsBuilderServiceResourceProperties 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 MaterializedViewsBuilderServiceResourceProperties.
-