Class ServerInner
java.lang.Object
com.azure.core.management.ProxyResource
com.azure.core.management.Resource
com.azure.resourcemanager.mysqlflexibleserver.fluent.models.ServerInner
public final class ServerInner
extends com.azure.core.management.Resource
Represents a server.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the administratorLogin property: The administrator's login name of a server.Get the administratorLoginPassword property: The password of the administrator login (required for server creation).Get the availabilityZone property: availability Zone information of the server.backup()
Get the backup property: Backup related properties of a server.Get the createMode property: The mode to create a new MySQL server.Get the dataEncryption property: The Data Encryption for CMK.Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.Get the highAvailability property: High availability related properties of a server.identity()
Get the identity property: The cmk identity for the server.Get the maintenanceWindow property: Maintenance window of a server.network()
Get the network property: Network related properties of a server.Get the replicaCapacity property: The maximum number of replicas that a primary server can have.Get the replicationRole property: The replication role.Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.sku()
Get the sku property: The SKU (pricing tier) of the server.Get the sourceServerResourceId property: The source MySQL server id.state()
Get the state property: The state of a server.storage()
Get the storage property: Storage related properties of a server.com.azure.core.management.SystemData
Get the systemData property: The system metadata relating to this resource.void
validate()
Validates the instance.version()
Get the version property: Server version.withAdministratorLogin
(String administratorLogin) Set the administratorLogin property: The administrator's login name of a server.withAdministratorLoginPassword
(String administratorLoginPassword) Set the administratorLoginPassword property: The password of the administrator login (required for server creation).withAvailabilityZone
(String availabilityZone) Set the availabilityZone property: availability Zone information of the server.withBackup
(Backup backup) Set the backup property: Backup related properties of a server.withCreateMode
(CreateMode createMode) Set the createMode property: The mode to create a new MySQL server.withDataEncryption
(DataEncryption dataEncryption) Set the dataEncryption property: The Data Encryption for CMK.withHighAvailability
(HighAvailability highAvailability) Set the highAvailability property: High availability related properties of a server.withIdentity
(Identity identity) Set the identity property: The cmk identity for the server.withLocation
(String location) withMaintenanceWindow
(MaintenanceWindow maintenanceWindow) Set the maintenanceWindow property: Maintenance window of a server.withNetwork
(Network network) Set the network property: Network related properties of a server.withReplicationRole
(ReplicationRole replicationRole) Set the replicationRole property: The replication role.withRestorePointInTime
(OffsetDateTime restorePointInTime) Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.Set the sku property: The SKU (pricing tier) of the server.withSourceServerResourceId
(String sourceServerResourceId) Set the sourceServerResourceId property: The source MySQL server id.withStorage
(Storage storage) Set the storage property: Storage related properties of a server.withVersion
(ServerVersion version) Set the version property: Server version.Methods inherited from class com.azure.core.management.Resource
location, tags
Methods inherited from class com.azure.core.management.ProxyResource
id, name, type
-
Constructor Details
-
ServerInner
public ServerInner()Creates an instance of ServerInner class.
-
-
Method Details
-
identity
Get the identity property: The cmk identity for the server.- Returns:
- the identity value.
-
withIdentity
Set the identity property: The cmk identity for the server.- Parameters:
identity
- the identity value to set.- Returns:
- the ServerInner object itself.
-
sku
Get the sku property: The SKU (pricing tier) of the server.- Returns:
- the sku value.
-
withSku
Set the sku property: The SKU (pricing tier) of the server.- Parameters:
sku
- the sku value to set.- Returns:
- the ServerInner object itself.
-
systemData
public com.azure.core.management.SystemData systemData()Get the systemData property: The system metadata relating to this resource.- Returns:
- the systemData value.
-
withLocation
- Overrides:
withLocation
in classcom.azure.core.management.Resource
-
withTags
- Overrides:
withTags
in classcom.azure.core.management.Resource
-
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
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 ServerInner object itself.
-
administratorLoginPassword
Get the administratorLoginPassword property: The password of the administrator login (required for server creation).- Returns:
- the administratorLoginPassword value.
-
withAdministratorLoginPassword
Set the administratorLoginPassword property: The password of the administrator login (required for server creation).- Parameters:
administratorLoginPassword
- the administratorLoginPassword value to set.- Returns:
- the ServerInner object itself.
-
version
Get the version property: Server version.- Returns:
- the version value.
-
withVersion
Set the version property: Server version.- Parameters:
version
- the version value to set.- Returns:
- the ServerInner object itself.
-
availabilityZone
Get the availabilityZone property: availability Zone information of the server.- Returns:
- the availabilityZone value.
-
withAvailabilityZone
Set the availabilityZone property: availability Zone information of the server.- Parameters:
availabilityZone
- the availabilityZone value to set.- Returns:
- the ServerInner object itself.
-
createMode
Get the createMode property: The mode to create a new MySQL server.- Returns:
- the createMode value.
-
withCreateMode
Set the createMode property: The mode to create a new MySQL server.- Parameters:
createMode
- the createMode value to set.- Returns:
- the ServerInner object itself.
-
sourceServerResourceId
Get the sourceServerResourceId property: The source MySQL server id.- Returns:
- the sourceServerResourceId value.
-
withSourceServerResourceId
Set the sourceServerResourceId property: The source MySQL server id.- Parameters:
sourceServerResourceId
- the sourceServerResourceId value to set.- Returns:
- the ServerInner object itself.
-
restorePointInTime
Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.- Returns:
- the restorePointInTime value.
-
withRestorePointInTime
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 ServerInner object itself.
-
replicationRole
Get the replicationRole property: The replication role.- Returns:
- the replicationRole value.
-
withReplicationRole
Set the replicationRole property: The replication role.- Parameters:
replicationRole
- the replicationRole value to set.- Returns:
- the ServerInner object itself.
-
replicaCapacity
Get the replicaCapacity property: The maximum number of replicas that a primary server can have.- Returns:
- the replicaCapacity value.
-
dataEncryption
Get the dataEncryption property: The Data Encryption for CMK.- Returns:
- the dataEncryption value.
-
withDataEncryption
Set the dataEncryption property: The Data Encryption for CMK.- Parameters:
dataEncryption
- the dataEncryption value to set.- Returns:
- the ServerInner object itself.
-
state
Get the state property: The state of a server.- Returns:
- the state value.
-
fullyQualifiedDomainName
Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.- Returns:
- the fullyQualifiedDomainName value.
-
storage
Get the storage property: Storage related properties of a server.- Returns:
- the storage value.
-
withStorage
Set the storage property: Storage related properties of a server.- Parameters:
storage
- the storage value to set.- Returns:
- the ServerInner object itself.
-
backup
Get the backup property: Backup related properties of a server.- Returns:
- the backup value.
-
withBackup
Set the backup property: Backup related properties of a server.- Parameters:
backup
- the backup value to set.- Returns:
- the ServerInner object itself.
-
highAvailability
Get the highAvailability property: High availability related properties of a server.- Returns:
- the highAvailability value.
-
withHighAvailability
Set the highAvailability property: High availability related properties of a server.- Parameters:
highAvailability
- the highAvailability value to set.- Returns:
- the ServerInner object itself.
-
network
Get the network property: Network related properties of a server.- Returns:
- the network value.
-
withNetwork
Set the network property: Network related properties of a server.- Parameters:
network
- the network value to set.- Returns:
- the ServerInner object itself.
-
maintenanceWindow
Get the maintenanceWindow property: Maintenance window of a server.- Returns:
- the maintenanceWindow value.
-
withMaintenanceWindow
Set the maintenanceWindow property: Maintenance window of a server.- Parameters:
maintenanceWindow
- the maintenanceWindow value to set.- Returns:
- the ServerInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-