Share via


ServerInner Class

public final class ServerInner
extends Resource

Represents a server.

Constructor Summary

Constructor Description
ServerInner()

Creates an instance of ServerInner class.

Method Summary

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

static ServerInner fromJson(JsonReader jsonReader)

Reads an instance of ServerInner from the JsonReader.

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.

String id()

Get the id property: Fully qualified resource Id for the resource.

MySqlServerIdentity identity()

Get the identity property: The cmk identity for the server.

ImportSourceProperties importSourceProperties()

Get the importSourceProperties property: Source properties for import from storage.

MaintenanceWindow maintenanceWindow()

Get the maintenanceWindow property: Maintenance window of a server.

String name()

Get the name property: The name of the resource.

Network network()

Get the network property: Network related properties of a server.

List<PrivateEndpointConnection> privateEndpointConnections()

Get the privateEndpointConnections property: PrivateEndpointConnections 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.

MySqlServerSku sku()

Get the sku property: The SKU (pricing tier) of the server.

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.

SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

ServerVersion version()

Get the version property: Server version.

ServerInner withAdministratorLogin(String administratorLogin)

Set the administratorLogin property: The administrator's login name of a server.

ServerInner withAdministratorLoginPassword(String administratorLoginPassword)

Set the administratorLoginPassword property: The password of the administrator login (required for server creation).

ServerInner withAvailabilityZone(String availabilityZone)

Set the availabilityZone property: availability Zone information of the server.

ServerInner withBackup(Backup backup)

Set the backup property: Backup related properties of a server.

ServerInner withCreateMode(CreateMode createMode)

Set the createMode property: The mode to create a new MySQL server.

ServerInner withDataEncryption(DataEncryption dataEncryption)

Set the dataEncryption property: The Data Encryption for CMK.

ServerInner withHighAvailability(HighAvailability highAvailability)

Set the highAvailability property: High availability related properties of a server.

ServerInner withIdentity(MySqlServerIdentity identity)

Set the identity property: The cmk identity for the server.

ServerInner withImportSourceProperties(ImportSourceProperties importSourceProperties)

Set the importSourceProperties property: Source properties for import from storage.

ServerInner withLocation(String location)
ServerInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow)

Set the maintenanceWindow property: Maintenance window of a server.

ServerInner withNetwork(Network network)

Set the network property: Network related properties of a server.

ServerInner withReplicationRole(ReplicationRole replicationRole)

Set the replicationRole property: The replication role.

ServerInner withRestorePointInTime(OffsetDateTime restorePointInTime)

Set the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.

ServerInner withSku(MySqlServerSku sku)

Set the sku property: The SKU (pricing tier) of the server.

ServerInner withSourceServerResourceId(String sourceServerResourceId)

Set the sourceServerResourceId property: The source MySQL server id.

ServerInner withStorage(Storage storage)

Set the storage property: Storage related properties of a server.

ServerInner withTags(Map<String,String> tags)
ServerInner withVersion(ServerVersion version)

Set the version property: Server version.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

ServerInner

public ServerInner()

Creates an instance of ServerInner class.

Method Details

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.

administratorLoginPassword

public String administratorLoginPassword()

Get the administratorLoginPassword property: The password of the administrator login (required for server creation).

Returns:

the administratorLoginPassword value.

availabilityZone

public String availabilityZone()

Get the availabilityZone property: availability Zone information of the server.

Returns:

the availabilityZone value.

backup

public Backup backup()

Get the backup property: Backup related properties of a server.

Returns:

the backup value.

createMode

public CreateMode createMode()

Get the createMode property: The mode to create a new MySQL server.

Returns:

the createMode value.

dataEncryption

public DataEncryption dataEncryption()

Get the dataEncryption property: The Data Encryption for CMK.

Returns:

the dataEncryption value.

fromJson

public static ServerInner fromJson(JsonReader jsonReader)

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:

IOException

- If the deserialized JSON object was missing any required properties.

fullyQualifiedDomainName

public String fullyQualifiedDomainName()

Get the fullyQualifiedDomainName property: The fully qualified domain name of a server.

Returns:

the fullyQualifiedDomainName value.

highAvailability

public HighAvailability highAvailability()

Get the highAvailability property: High availability related properties of a server.

Returns:

the highAvailability value.

id

public String id()

Get the id property: Fully qualified resource Id for the resource.

Overrides:

ServerInner.id()

Returns:

the id value.

identity

public MySqlServerIdentity identity()

Get the identity property: The cmk identity for the server.

Returns:

the identity value.

importSourceProperties

public ImportSourceProperties importSourceProperties()

Get the importSourceProperties property: Source properties for import from storage.

Returns:

the importSourceProperties value.

maintenanceWindow

public MaintenanceWindow maintenanceWindow()

Get the maintenanceWindow property: Maintenance window of a server.

Returns:

the maintenanceWindow value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

ServerInner.name()

Returns:

the name value.

network

public Network network()

Get the network property: Network related properties of a server.

Returns:

the network value.

privateEndpointConnections

public List<PrivateEndpointConnection> privateEndpointConnections()

Get the privateEndpointConnections property: PrivateEndpointConnections related properties of a server.

Returns:

the privateEndpointConnections value.

replicaCapacity

public Integer replicaCapacity()

Get the replicaCapacity property: The maximum number of replicas that a primary server can have.

Returns:

the replicaCapacity value.

replicationRole

public ReplicationRole replicationRole()

Get the replicationRole property: The replication role.

Returns:

the replicationRole value.

restorePointInTime

public OffsetDateTime restorePointInTime()

Get the restorePointInTime property: Restore point creation time (ISO8601 format), specifying the time to restore from.

Returns:

the restorePointInTime value.

sku

public MySqlServerSku sku()

Get the sku property: The SKU (pricing tier) of the server.

Returns:

the sku value.

sourceServerResourceId

public String sourceServerResourceId()

Get the sourceServerResourceId property: The source MySQL server id.

Returns:

the sourceServerResourceId value.

state

public ServerState state()

Get the state property: The state of a server.

Returns:

the state value.

storage

public Storage storage()

Get the storage property: Storage related properties of a server.

Returns:

the storage value.

systemData

public SystemData systemData()

Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information.

Returns:

the systemData value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

ServerInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

ServerInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

version

public ServerVersion version()

Get the version property: Server version.

Returns:

the version value.

withAdministratorLogin

public ServerInner 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 ServerInner object itself.

withAdministratorLoginPassword

public ServerInner 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 ServerInner object itself.

withAvailabilityZone

public ServerInner withAvailabilityZone(String availabilityZone)

Set the availabilityZone property: availability Zone information of the server.

Parameters:

availabilityZone - the availabilityZone value to set.

Returns:

the ServerInner object itself.

withBackup

public ServerInner withBackup(Backup backup)

Set the backup property: Backup related properties of a server.

Parameters:

backup - the backup value to set.

Returns:

the ServerInner object itself.

withCreateMode

public ServerInner withCreateMode(CreateMode createMode)

Set the createMode property: The mode to create a new MySQL server.

Parameters:

createMode - the createMode value to set.

Returns:

the ServerInner object itself.

withDataEncryption

public ServerInner withDataEncryption(DataEncryption dataEncryption)

Set the dataEncryption property: The Data Encryption for CMK.

Parameters:

dataEncryption - the dataEncryption value to set.

Returns:

the ServerInner object itself.

withHighAvailability

public ServerInner withHighAvailability(HighAvailability highAvailability)

Set the highAvailability property: High availability related properties of a server.

Parameters:

highAvailability - the highAvailability value to set.

Returns:

the ServerInner object itself.

withIdentity

public ServerInner withIdentity(MySqlServerIdentity identity)

Set the identity property: The cmk identity for the server.

Parameters:

identity - the identity value to set.

Returns:

the ServerInner object itself.

withImportSourceProperties

public ServerInner withImportSourceProperties(ImportSourceProperties importSourceProperties)

Set the importSourceProperties property: Source properties for import from storage.

Parameters:

importSourceProperties - the importSourceProperties value to set.

Returns:

the ServerInner object itself.

withLocation

public ServerInner withLocation(String location)

Overrides:

ServerInner.withLocation(String location)

Parameters:

location

withMaintenanceWindow

public ServerInner withMaintenanceWindow(MaintenanceWindow maintenanceWindow)

Set the maintenanceWindow property: Maintenance window of a server.

Parameters:

maintenanceWindow - the maintenanceWindow value to set.

Returns:

the ServerInner object itself.

withNetwork

public ServerInner withNetwork(Network network)

Set the network property: Network related properties of a server.

Parameters:

network - the network value to set.

Returns:

the ServerInner object itself.

withReplicationRole

public ServerInner withReplicationRole(ReplicationRole replicationRole)

Set the replicationRole property: The replication role.

Parameters:

replicationRole - the replicationRole value to set.

Returns:

the ServerInner object itself.

withRestorePointInTime

public ServerInner 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 ServerInner object itself.

withSku

public ServerInner withSku(MySqlServerSku sku)

Set the sku property: The SKU (pricing tier) of the server.

Parameters:

sku - the sku value to set.

Returns:

the ServerInner object itself.

withSourceServerResourceId

public ServerInner withSourceServerResourceId(String sourceServerResourceId)

Set the sourceServerResourceId property: The source MySQL server id.

Parameters:

sourceServerResourceId - the sourceServerResourceId value to set.

Returns:

the ServerInner object itself.

withStorage

public ServerInner withStorage(Storage storage)

Set the storage property: Storage related properties of a server.

Parameters:

storage - the storage value to set.

Returns:

the ServerInner object itself.

withTags

public ServerInner withTags(Map<String,String> tags)

Overrides:

ServerInner.withTags(Map<String,String> tags)

Parameters:

tags

withVersion

public ServerInner withVersion(ServerVersion version)

Set the version property: Server version.

Parameters:

version - the version value to set.

Returns:

the ServerInner object itself.

Applies to