ServerForCreate Class

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

public final class ServerForCreate

Represents a server to be created.

Constructor Summary

Constructor Description
ServerForCreate()

Method Summary

Modifier and Type Method and Description
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.

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()

Method Details

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 tags()

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

Returns:

the tags value.

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