ServerForCreate Class
- java.
lang. Object - com.
azure. resourcemanager. postgresql. models. ServerForCreate
- com.
public final class ServerForCreate
Represents a server to be created.
Constructor Summary
Constructor | Description | |
---|---|---|
ServerForCreate() |
Method Summary
Modifier and Type | Method and Description |
---|---|
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. |
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()
Method Details
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
Get the tags property: Application-specific metadata in the form of key-value pairs.
Returns:
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
Set the tags property: Application-specific metadata in the form of key-value pairs.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for