ServerForCreate Class

  • java.lang.Object
    • com.azure.resourcemanager.postgresql.models.ServerForCreate

Implements

public final class ServerForCreate
implements JsonSerializable<ServerForCreate>

Represents a server to be created.

Constructor Summary

Constructor Description
ServerForCreate()

Creates an instance of ServerForCreate class.

Method Summary

Modifier and Type Method and Description
static ServerForCreate fromJson(JsonReader jsonReader)

Reads an instance of ServerForCreate from the JsonReader.

ResourceIdentity 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.

ServerPropertiesForCreate 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.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ServerForCreate withIdentity(ResourceIdentity identity)

Set the identity property: The Azure Active Directory identity of the server.

ServerForCreate withLocation(String location)

Set the location property: The location the resource resides in.

ServerForCreate withProperties(ServerPropertiesForCreate properties)

Set the properties property: Properties of the server.

ServerForCreate withSku(Sku sku)

Set the sku property: The SKU (pricing tier) of the server.

ServerForCreate 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:

jsonReader - The JsonReader being read.

Returns:

An instance of ServerForCreate if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

identity

public ResourceIdentity identity()

Get the identity property: The Azure Active Directory identity of the server.

Returns:

the identity value.

location

public String location()

Get the location property: The location the resource resides in.

Returns:

the location value.

properties

public ServerPropertiesForCreate properties()

Get the properties property: Properties of the server.

Returns:

the properties value.

sku

public Sku sku()

Get the sku property: The SKU (pricing tier) of the server.

Returns:

the sku value.

tags

public Map<String,String> tags()

Get the tags property: Application-specific metadata in the form of key-value pairs.

Returns:

the tags value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

identity - the identity value to set.

Returns:

the ServerForCreate object itself.

withLocation

public ServerForCreate withLocation(String location)

Set the location property: The location the resource resides in.

Parameters:

location - the location value to set.

Returns:

the ServerForCreate object itself.

withProperties

public ServerForCreate withProperties(ServerPropertiesForCreate properties)

Set the properties property: Properties of the server.

Parameters:

properties - the properties value to set.

Returns:

the ServerForCreate object itself.

withSku

public ServerForCreate withSku(Sku sku)

Set the sku property: The SKU (pricing tier) of the server.

Parameters:

sku - the sku value to set.

Returns:

the ServerForCreate object itself.

withTags

public ServerForCreate withTags(Map<String,String> tags)

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.

Applies to