Class ServerProperties
- java.lang.Object
-
- com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerProperties
-
public final class ServerProperties extends Object
The properties of a server.
-
-
Constructor Summary
Constructors Constructor Description ServerProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
administratorLogin()
Get the administratorLogin property: The administrator's login name of a server.String
administratorLoginPassword()
Get the administratorLoginPassword property: The password of the administrator login (required for server creation).String
availabilityZone()
Get the availabilityZone property: availability Zone information of the server.Backup
backup()
Get the backup property: Backup related properties of a server.CreateMode
createMode()
Get the createMode property: The mode to create a new MySQL server.DataEncryption
dataEncryption()
Get the dataEncryption property: The Data Encryption for CMK.String
fullyQualifiedDomainName()
Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.HighAvailability
highAvailability()
Get the highAvailability property: High availability related properties of a server.MaintenanceWindow
maintenanceWindow()
Get the maintenanceWindow property: Maintenance window of a server.Network
network()
Get the network property: Network related properties of a server.Integer
replicaCapacity()
Get the replicaCapacity property: The maximum number of replicas that a primary server can have.ReplicationRole
replicationRole()
Get the replicationRole property: The replication role.OffsetDateTime
restorePointInTime()
Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.String
sourceServerResourceId()
Get the sourceServerResourceId property: The source MySQL server id.ServerState
state()
Get the state property: The state of a server.Storage
storage()
Get the storage property: Storage related properties of a server.void
validate()
Validates the instance.ServerVersion
version()
Get the version property: Server version.ServerProperties
withAdministratorLogin(String administratorLogin)
Set the administratorLogin property: The administrator's login name of a server.ServerProperties
withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The password of the administrator login (required for server creation).ServerProperties
withAvailabilityZone(String availabilityZone)
Set the availabilityZone property: availability Zone information of the server.ServerProperties
withBackup(Backup backup)
Set the backup property: Backup related properties of a server.ServerProperties
withCreateMode(CreateMode createMode)
Set the createMode property: The mode to create a new MySQL server.ServerProperties
withDataEncryption(DataEncryption dataEncryption)
Set the dataEncryption property: The Data Encryption for CMK.ServerProperties
withHighAvailability(HighAvailability highAvailability)
Set the highAvailability property: High availability related properties of a server.ServerProperties
withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
Set the maintenanceWindow property: Maintenance window of a server.ServerProperties
withNetwork(Network network)
Set the network property: Network related properties of a server.ServerProperties
withReplicationRole(ReplicationRole replicationRole)
Set the replicationRole property: The replication role.ServerProperties
withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.ServerProperties
withSourceServerResourceId(String sourceServerResourceId)
Set the sourceServerResourceId property: The source MySQL server id.ServerProperties
withStorage(Storage storage)
Set the storage property: Storage related properties of a server.ServerProperties
withVersion(ServerVersion version)
Set the version property: Server version.
-
-
-
Method Detail
-
administratorLogin
public String administratorLogin()
Get the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).- Returns:
- the administratorLogin value.
-
withAdministratorLogin
public ServerProperties withAdministratorLogin(String administratorLogin)
Set the administratorLogin property: The administrator's login name of a server. Can only be specified when the server is being created (and is required for creation).- Parameters:
administratorLogin
- the administratorLogin value to set.- Returns:
- the ServerProperties object itself.
-
administratorLoginPassword
public String administratorLoginPassword()
Get the administratorLoginPassword property: The password of the administrator login (required for server creation).- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
public ServerProperties withAdministratorLoginPassword(String administratorLoginPassword)
Set the administratorLoginPassword property: The password of the administrator login (required for server creation).- Parameters:
administratorLoginPassword
- the administratorLoginPassword value to set.- Returns:
- the ServerProperties object itself.
-
version
public ServerVersion version()
Get the version property: Server version.- Returns:
- the version value.
-
withVersion
public ServerProperties withVersion(ServerVersion version)
Set the version property: Server version.- Parameters:
version
- the version value to set.- Returns:
- the ServerProperties object itself.
-
availabilityZone
public String availabilityZone()
Get the availabilityZone property: availability Zone information of the server.- Returns:
- the availabilityZone value.
-
withAvailabilityZone
public ServerProperties withAvailabilityZone(String availabilityZone)
Set the availabilityZone property: availability Zone information of the server.- Parameters:
availabilityZone
- the availabilityZone value to set.- Returns:
- the ServerProperties object itself.
-
createMode
public CreateMode createMode()
Get the createMode property: The mode to create a new MySQL server.- Returns:
- the createMode value.
-
withCreateMode
public ServerProperties withCreateMode(CreateMode createMode)
Set the createMode property: The mode to create a new MySQL server.- Parameters:
createMode
- the createMode value to set.- Returns:
- the ServerProperties object itself.
-
sourceServerResourceId
public String sourceServerResourceId()
Get the sourceServerResourceId property: The source MySQL server id.- Returns:
- the sourceServerResourceId value.
-
withSourceServerResourceId
public ServerProperties withSourceServerResourceId(String sourceServerResourceId)
Set the sourceServerResourceId property: The source MySQL server id.- Parameters:
sourceServerResourceId
- the sourceServerResourceId value to set.- Returns:
- the ServerProperties object itself.
-
restorePointInTime
public OffsetDateTime restorePointInTime()
Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.- Returns:
- the restorePointInTime value.
-
withRestorePointInTime
public ServerProperties withRestorePointInTime(OffsetDateTime restorePointInTime)
Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.- Parameters:
restorePointInTime
- the restorePointInTime value to set.- Returns:
- the ServerProperties object itself.
-
replicationRole
public ReplicationRole replicationRole()
Get the replicationRole property: The replication role.- Returns:
- the replicationRole value.
-
withReplicationRole
public ServerProperties withReplicationRole(ReplicationRole replicationRole)
Set the replicationRole property: The replication role.- Parameters:
replicationRole
- the replicationRole value to set.- Returns:
- the ServerProperties object itself.
-
replicaCapacity
public Integer replicaCapacity()
Get the replicaCapacity property: The maximum number of replicas that a primary server can have.- Returns:
- the replicaCapacity value.
-
dataEncryption
public DataEncryption dataEncryption()
Get the dataEncryption property: The Data Encryption for CMK.- Returns:
- the dataEncryption value.
-
withDataEncryption
public ServerProperties withDataEncryption(DataEncryption dataEncryption)
Set the dataEncryption property: The Data Encryption for CMK.- Parameters:
dataEncryption
- the dataEncryption value to set.- Returns:
- the ServerProperties object itself.
-
state
public ServerState state()
Get the state property: The state of a server.- Returns:
- the state value.
-
fullyQualifiedDomainName
public String fullyQualifiedDomainName()
Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.- Returns:
- the fullyQualifiedDomainName value.
-
storage
public Storage storage()
Get the storage property: Storage related properties of a server.- Returns:
- the storage value.
-
withStorage
public ServerProperties withStorage(Storage storage)
Set the storage property: Storage related properties of a server.- Parameters:
storage
- the storage value to set.- Returns:
- the ServerProperties object itself.
-
backup
public Backup backup()
Get the backup property: Backup related properties of a server.- Returns:
- the backup value.
-
withBackup
public ServerProperties withBackup(Backup backup)
Set the backup property: Backup related properties of a server.- Parameters:
backup
- the backup value to set.- Returns:
- the ServerProperties object itself.
-
highAvailability
public HighAvailability highAvailability()
Get the highAvailability property: High availability related properties of a server.- Returns:
- the highAvailability value.
-
withHighAvailability
public ServerProperties withHighAvailability(HighAvailability highAvailability)
Set the highAvailability property: High availability related properties of a server.- Parameters:
highAvailability
- the highAvailability value to set.- Returns:
- the ServerProperties object itself.
-
network
public Network network()
Get the network property: Network related properties of a server.- Returns:
- the network value.
-
withNetwork
public ServerProperties withNetwork(Network network)
Set the network property: Network related properties of a server.- Parameters:
network
- the network value to set.- Returns:
- the ServerProperties object itself.
-
maintenanceWindow
public MaintenanceWindow maintenanceWindow()
Get the maintenanceWindow property: Maintenance window of a server.- Returns:
- the maintenanceWindow value.
-
withMaintenanceWindow
public ServerProperties withMaintenanceWindow(MaintenanceWindow maintenanceWindow)
Set the maintenanceWindow property: Maintenance window of a server.- Parameters:
maintenanceWindow
- the maintenanceWindow value to set.- Returns:
- the ServerProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-