Class ServerInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.postgresqlflexibleserver.fluent.models.ServerInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>
public final class ServerInner
extends com.azure.core.management.Resource
Properties of a server.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the administratorLogin property: Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL.Get the administratorLoginPassword property: Password assigned to the administrator login.Get the authConfig property: Authentication configuration properties of a server.Get the availabilityZone property: Availability zone of a server.backup()Get the backup property: Backup properties of a server.cluster()Get the cluster property: Cluster properties of a server.Get the createMode property: Creation mode of a new server.Get the dataEncryption property: Data encryption properties of a server.static ServerInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerInner from the JsonReader.Get the fullyQualifiedDomainName property: Fully qualified domain name of a server.Get the highAvailability property: High availability properties of a server.id()Get the id property: Fully qualified resource Id for the resource.identity()Get the identity property: User assigned managed identities assigned to the server.Get the maintenanceWindow property: Maintenance window properties of a server.Get the minorVersion property: Minor version of PostgreSQL database engine.name()Get the name property: The name of the resource.network()Get the network property: Network properties of a server.Get the pointInTimeUtc property: Creation time (in ISO8601 format) of the backup which you want to restore in the new server.Get the privateEndpointConnections property: List of private endpoint connections associated with the specified server.replica()Get the replica property: Read replica properties of a server.Get the replicaCapacity property: Maximum number of read replicas allowed for a server.Get the replicationRole property: Role of the server in a replication set.sku()Get the sku property: Compute tier and size of a server.Get the sourceServerResourceId property: Identifier of the server to be used as the source of the new server.state()Get the state property: Possible states of a server.storage()Get the storage property: Storage properties of a server.com.azure.core.management.SystemDataGet the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: The type of the resource.voidvalidate()Validates the instance.version()Get the version property: Major version of PostgreSQL database engine.withAdministratorLogin(String administratorLogin) Set the administratorLogin property: Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL.withAdministratorLoginPassword(String administratorLoginPassword) Set the administratorLoginPassword property: Password assigned to the administrator login.withAuthConfig(AuthConfig authConfig) Set the authConfig property: Authentication configuration properties of a server.withAvailabilityZone(String availabilityZone) Set the availabilityZone property: Availability zone of a server.withBackup(Backup backup) Set the backup property: Backup properties of a server.withCluster(Cluster cluster) Set the cluster property: Cluster properties of a server.withCreateMode(CreateMode createMode) Set the createMode property: Creation mode of a new server.withDataEncryption(DataEncryption dataEncryption) Set the dataEncryption property: Data encryption properties of a server.withHighAvailability(HighAvailability highAvailability) Set the highAvailability property: High availability properties of a server.withIdentity(UserAssignedIdentity identity) Set the identity property: User assigned managed identities assigned to the server.withLocation(String location) withMaintenanceWindow(MaintenanceWindow maintenanceWindow) Set the maintenanceWindow property: Maintenance window properties of a server.withNetwork(Network network) Set the network property: Network properties of a server.withPointInTimeUtc(OffsetDateTime pointInTimeUtc) Set the pointInTimeUtc property: Creation time (in ISO8601 format) of the backup which you want to restore in the new server.withReplica(Replica replica) Set the replica property: Read replica properties of a server.withReplicationRole(ReplicationRole replicationRole) Set the replicationRole property: Role of the server in a replication set.Set the sku property: Compute tier and size of a server.withSourceServerResourceId(String sourceServerResourceId) Set the sourceServerResourceId property: Identifier of the server to be used as the source of the new server.withStorage(Storage storage) Set the storage property: Storage properties of a server.withVersion(PostgresMajorVersion version) Set the version property: Major version of PostgreSQL database engine.Methods inherited from class com.azure.core.management.Resource
location, tagsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServerInner
public ServerInner()Creates an instance of ServerInner class.
-
-
Method Details
-
sku
-
withSku
Set the sku property: Compute tier and size of a server.- Parameters:
sku- the sku value to set.- Returns:
- the ServerInner object itself.
-
identity
Get the identity property: User assigned managed identities assigned to the server.- Returns:
- the identity value.
-
withIdentity
Set the identity property: User assigned managed identities assigned to the server.- Parameters:
identity- the identity value to set.- Returns:
- the ServerInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.- Returns:
- the systemData value.
-
type
Get the type property: The type of the resource.- Overrides:
typein classcom.azure.core.management.ProxyResource- Returns:
- the type value.
-
name
Get the name property: The name of the resource.- Overrides:
namein classcom.azure.core.management.ProxyResource- Returns:
- the name value.
-
id
Get the id property: Fully qualified resource Id for the resource.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withLocation
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
administratorLogin
Get the administratorLogin property: Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.- Returns:
- the administratorLogin value.
-
withAdministratorLogin
Set the administratorLogin property: Name of the login designated as the first password based administrator assigned to your instance of PostgreSQL. Must be specified the first time that you enable password based authentication on a server. Once set to a given value, it cannot be changed for the rest of the life of a server. If you disable password based authentication on a server which had it enabled, this password based role isn't deleted.- Parameters:
administratorLogin- the administratorLogin value to set.- Returns:
- the ServerInner object itself.
-
administratorLoginPassword
Get the administratorLoginPassword property: Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
Set the administratorLoginPassword property: Password assigned to the administrator login. As long as password authentication is enabled, this password can be changed at any time.- Parameters:
administratorLoginPassword- the administratorLoginPassword value to set.- Returns:
- the ServerInner object itself.
-
version
Get the version property: Major version of PostgreSQL database engine.- Returns:
- the version value.
-
withVersion
Set the version property: Major version of PostgreSQL database engine.- Parameters:
version- the version value to set.- Returns:
- the ServerInner object itself.
-
minorVersion
Get the minorVersion property: Minor version of PostgreSQL database engine.- Returns:
- the minorVersion value.
-
state
Get the state property: Possible states of a server.- Returns:
- the state value.
-
fullyQualifiedDomainName
Get the fullyQualifiedDomainName property: Fully qualified domain name of a server.- Returns:
- the fullyQualifiedDomainName value.
-
storage
Get the storage property: Storage properties of a server.- Returns:
- the storage value.
-
withStorage
Set the storage property: Storage properties of a server.- Parameters:
storage- the storage value to set.- Returns:
- the ServerInner object itself.
-
authConfig
Get the authConfig property: Authentication configuration properties of a server.- Returns:
- the authConfig value.
-
withAuthConfig
Set the authConfig property: Authentication configuration properties of a server.- Parameters:
authConfig- the authConfig value to set.- Returns:
- the ServerInner object itself.
-
dataEncryption
Get the dataEncryption property: Data encryption properties of a server.- Returns:
- the dataEncryption value.
-
withDataEncryption
Set the dataEncryption property: Data encryption properties of a server.- Parameters:
dataEncryption- the dataEncryption value to set.- Returns:
- the ServerInner object itself.
-
backup
Get the backup property: Backup properties of a server.- Returns:
- the backup value.
-
withBackup
Set the backup property: Backup properties of a server.- Parameters:
backup- the backup value to set.- Returns:
- the ServerInner object itself.
-
network
Get the network property: Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.- Returns:
- the network value.
-
withNetwork
Set the network property: Network properties of a server. Only required if you want your server to be integrated into a virtual network provided by customer.- Parameters:
network- the network value to set.- Returns:
- the ServerInner object itself.
-
highAvailability
Get the highAvailability property: High availability properties of a server.- Returns:
- the highAvailability value.
-
withHighAvailability
Set the highAvailability property: High availability properties of a server.- Parameters:
highAvailability- the highAvailability value to set.- Returns:
- the ServerInner object itself.
-
maintenanceWindow
Get the maintenanceWindow property: Maintenance window properties of a server.- Returns:
- the maintenanceWindow value.
-
withMaintenanceWindow
Set the maintenanceWindow property: Maintenance window properties of a server.- Parameters:
maintenanceWindow- the maintenanceWindow value to set.- Returns:
- the ServerInner object itself.
-
sourceServerResourceId
Get the sourceServerResourceId property: Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.- Returns:
- the sourceServerResourceId value.
-
withSourceServerResourceId
Set the sourceServerResourceId property: Identifier of the server to be used as the source of the new server. Required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', 'Replica', or 'ReviveDropped'. This property is returned only when the target server is a read replica.- Parameters:
sourceServerResourceId- the sourceServerResourceId value to set.- Returns:
- the ServerInner object itself.
-
pointInTimeUtc
Get the pointInTimeUtc property: Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.- Returns:
- the pointInTimeUtc value.
-
withPointInTimeUtc
Set the pointInTimeUtc property: Creation time (in ISO8601 format) of the backup which you want to restore in the new server. It's required when 'createMode' is 'PointInTimeRestore', 'GeoRestore', or 'ReviveDropped'.- Parameters:
pointInTimeUtc- the pointInTimeUtc value to set.- Returns:
- the ServerInner object itself.
-
availabilityZone
Get the availabilityZone property: Availability zone of a server.- Returns:
- the availabilityZone value.
-
withAvailabilityZone
Set the availabilityZone property: Availability zone of a server.- Parameters:
availabilityZone- the availabilityZone value to set.- Returns:
- the ServerInner object itself.
-
replicationRole
Get the replicationRole property: Role of the server in a replication set.- Returns:
- the replicationRole value.
-
withReplicationRole
Set the replicationRole property: Role of the server in a replication set.- Parameters:
replicationRole- the replicationRole value to set.- Returns:
- the ServerInner object itself.
-
replicaCapacity
Get the replicaCapacity property: Maximum number of read replicas allowed for a server.- Returns:
- the replicaCapacity value.
-
replica
Get the replica property: Read replica properties of a server. Required only in case that you want to promote a server.- Returns:
- the replica value.
-
withReplica
Set the replica property: Read replica properties of a server. Required only in case that you want to promote a server.- Parameters:
replica- the replica value to set.- Returns:
- the ServerInner object itself.
-
createMode
Get the createMode property: Creation mode of a new server.- Returns:
- the createMode value.
-
withCreateMode
Set the createMode property: Creation mode of a new server.- Parameters:
createMode- the createMode value to set.- Returns:
- the ServerInner object itself.
-
privateEndpointConnections
Get the privateEndpointConnections property: List of private endpoint connections associated with the specified server.- Returns:
- the privateEndpointConnections value.
-
cluster
Get the cluster property: Cluster properties of a server.- Returns:
- the cluster value.
-
withCluster
Set the cluster property: Cluster properties of a server.- Parameters:
cluster- the cluster value to set.- Returns:
- the ServerInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<com.azure.core.management.ProxyResource>- Overrides:
toJsonin classcom.azure.core.management.Resource- Throws:
IOException
-
fromJson
Reads an instance of ServerInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServerInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ServerInner.
-