ServerForCreate Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. models. ServerForCreate
- com.
Implements
public final class ServerForCreate
implements JsonSerializable<ServerForCreate>
Represents a server to be created.
Constructor Summary
| Constructor | Description |
|---|---|
| ServerForCreate() |
Creates an instance of Server |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Server |
fromJson(JsonReader jsonReader)
Reads an instance of Server |
|
Resource |
identity()
Get the identity property: The Azure Active Directory identity of the server. |
| String |
location()
Get the location property: The location the resource resides in. |
|
Server |
properties()
Get the properties property: Properties of the server. |
| Sku |
sku()
Get the sku property: The SKU (pricing tier) of the server. |
| Map<String,String> |
tags()
Get the tags property: Application-specific metadata in the form of key-value pairs. |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Server |
withIdentity(ResourceIdentity identity)
Set the identity property: The Azure Active Directory identity of the server. |
|
Server |
withLocation(String location)
Set the location property: The location the resource resides in. |
|
Server |
withProperties(ServerPropertiesForCreate properties)
Set the properties property: Properties of the server. |
|
Server |
withSku(Sku sku)
Set the sku property: The SKU (pricing tier) of the server. |
|
Server |
withTags(Map<String,String> tags)
Set the tags property: Application-specific metadata in the form of key-value pairs. |
Methods inherited from java.lang.Object
Constructor Details
ServerForCreate
public ServerForCreate()
Creates an instance of ServerForCreate class.
Method Details
fromJson
public static ServerForCreate fromJson(JsonReader jsonReader)
Reads an instance of ServerForCreate from the JsonReader.
Parameters:
Returns:
Throws:
identity
public ResourceIdentity identity()
Get the identity property: The Azure Active Directory identity of the server.
Returns:
location
public String location()
Get the location property: The location the resource resides in.
Returns:
properties
public ServerPropertiesForCreate properties()
Get the properties property: Properties of the server.
Returns:
sku
public Sku sku()
Get the sku property: The SKU (pricing tier) of the server.
Returns:
tags
public Map<String,String> tags()
Get the tags property: Application-specific metadata in the form of key-value pairs.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIdentity
public ServerForCreate withIdentity(ResourceIdentity identity)
Set the identity property: The Azure Active Directory identity of the server.
Parameters:
Returns:
withLocation
public ServerForCreate withLocation(String location)
Set the location property: The location the resource resides in.
Parameters:
Returns:
withProperties
public ServerForCreate withProperties(ServerPropertiesForCreate properties)
Set the properties property: Properties of the server.
Parameters:
Returns:
withSku
public ServerForCreate withSku(Sku sku)
Set the sku property: The SKU (pricing tier) of the server.
Parameters:
Returns:
withTags
public ServerForCreate withTags(Map<String,String> tags)
Set the tags property: Application-specific metadata in the form of key-value pairs.
Parameters:
Returns: