Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the MIT License. See License.txt in the project root for
license information.
Code generated by Microsoft (R) AutoRest Code Generator.
/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
*/
package com.microsoft.azure.management.sql;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
An update request for an Azure SQL Database server.
/**
* An update request for an Azure SQL Database server.
*/
@JsonFlatten
public class ServerUpdate {
Administrator username for the server. Once created it cannot be
changed.
/**
* Administrator username for the server. Once created it cannot be
* changed.
*/
@JsonProperty(value = "properties.administratorLogin")
private String administratorLogin;
The administrator login password (required for server creation).
/**
* The administrator login password (required for server creation).
*/
@JsonProperty(value = "properties.administratorLoginPassword")
private String administratorLoginPassword;
The version of the server.
/**
* The version of the server.
*/
@JsonProperty(value = "properties.version")
private String version;
The state of the server.
/**
* The state of the server.
*/
@JsonProperty(value = "properties.state", access = JsonProperty.Access.WRITE_ONLY)
private String state;
The fully qualified domain name of the server.
/**
* The fully qualified domain name of the server.
*/
@JsonProperty(value = "properties.fullyQualifiedDomainName", access = JsonProperty.Access.WRITE_ONLY)
private String fullyQualifiedDomainName;
Resource tags.
/**
* Resource tags.
*/
@JsonProperty(value = "tags")
private Map<String, String> tags;
Get administrator username for the server. Once created it cannot be changed.
Returns: the administratorLogin value
/**
* Get administrator username for the server. Once created it cannot be changed.
*
* @return the administratorLogin value
*/
public String administratorLogin() {
return this.administratorLogin;
}
Set administrator username for the server. Once created it cannot be changed.
Params: - administratorLogin – the administratorLogin value to set
Returns: the ServerUpdate object itself.
/**
* Set administrator username for the server. Once created it cannot be changed.
*
* @param administratorLogin the administratorLogin value to set
* @return the ServerUpdate object itself.
*/
public ServerUpdate withAdministratorLogin(String administratorLogin) {
this.administratorLogin = administratorLogin;
return this;
}
Get the administrator login password (required for server creation).
Returns: the administratorLoginPassword value
/**
* Get the administrator login password (required for server creation).
*
* @return the administratorLoginPassword value
*/
public String administratorLoginPassword() {
return this.administratorLoginPassword;
}
Set the administrator login password (required for server creation).
Params: - administratorLoginPassword – the administratorLoginPassword value to set
Returns: the ServerUpdate object itself.
/**
* Set the administrator login password (required for server creation).
*
* @param administratorLoginPassword the administratorLoginPassword value to set
* @return the ServerUpdate object itself.
*/
public ServerUpdate withAdministratorLoginPassword(String administratorLoginPassword) {
this.administratorLoginPassword = administratorLoginPassword;
return this;
}
Get the version of the server.
Returns: the version value
/**
* Get the version of the server.
*
* @return the version value
*/
public String version() {
return this.version;
}
Set the version of the server.
Params: - version – the version value to set
Returns: the ServerUpdate object itself.
/**
* Set the version of the server.
*
* @param version the version value to set
* @return the ServerUpdate object itself.
*/
public ServerUpdate withVersion(String version) {
this.version = version;
return this;
}
Get the state of the server.
Returns: the state value
/**
* Get the state of the server.
*
* @return the state value
*/
public String state() {
return this.state;
}
Get the fully qualified domain name of the server.
Returns: the fullyQualifiedDomainName value
/**
* Get the fully qualified domain name of the server.
*
* @return the fullyQualifiedDomainName value
*/
public String fullyQualifiedDomainName() {
return this.fullyQualifiedDomainName;
}
Get resource tags.
Returns: the tags value
/**
* Get resource tags.
*
* @return the tags value
*/
public Map<String, String> tags() {
return this.tags;
}
Set resource tags.
Params: - tags – the tags value to set
Returns: the ServerUpdate object itself.
/**
* Set resource tags.
*
* @param tags the tags value to set
* @return the ServerUpdate object itself.
*/
public ServerUpdate withTags(Map<String, String> tags) {
this.tags = tags;
return this;
}
}