Class ServerForCreate
java.lang.Object
com.azure.resourcemanager.mariadb.models.ServerForCreate
Represents a server to be created.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionlocation()
Get the location property: The location the resource resides in.Get the properties property: Properties of the server.sku()
Get the sku property: The SKU (pricing tier) of the server.tags()
Get the tags property: Application-specific metadata in the form of key-value pairs.void
validate()
Validates the instance.withLocation
(String location) Set the location property: The location the resource resides in.withProperties
(ServerPropertiesForCreate properties) Set the properties property: Properties of the server.Set the sku property: The SKU (pricing tier) of the server.Set the tags property: Application-specific metadata in the form of key-value pairs.
-
Constructor Details
-
ServerForCreate
public ServerForCreate()Creates an instance of ServerForCreate class.
-
-
Method Details
-
sku
Get the sku property: The SKU (pricing tier) of the server.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU (pricing tier) of the server.- Parameters:
sku
- the sku value to set.- Returns:
- the ServerForCreate object itself.
-
properties
Get the properties property: Properties of the server.- Returns:
- the properties value.
-
withProperties
Set the properties property: Properties of the server.- Parameters:
properties
- the properties value to set.- Returns:
- the ServerForCreate object itself.
-
location
Get the location property: The location the resource resides in.- Returns:
- the location value.
-
withLocation
Set the location property: The location the resource resides in.- Parameters:
location
- the location value to set.- Returns:
- the ServerForCreate object itself.
-
tags
Get the tags property: Application-specific metadata in the form of key-value pairs.- Returns:
- the tags value.
-
withTags
Set the tags property: Application-specific metadata in the form of key-value pairs.- Parameters:
tags
- the tags value to set.- Returns:
- the ServerForCreate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-