/** * 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.implementation; import com.microsoft.azure.management.sql.ServerVersion; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten; import com.microsoft.azure.Resource; /** * Represents an Azure SQL server. */ @JsonFlatten public class ServerInner extends Resource { /** * The fully qualified domain name of the server. */ @JsonProperty(value = "properties.fullyQualifiedDomainName", access = JsonProperty.Access.WRITE_ONLY) private String fullyQualifiedDomainName; /** * The version of the server. Possible values include: '2.0', '12.0'. */ @JsonProperty(value = "properties.version") private ServerVersion version; /** * Administrator username for the server. Can only be specified when the * server is being created (and is required for creation). */ @JsonProperty(value = "properties.administratorLogin") private String administratorLogin; /** * The administrator login password (required for server creation). */ @JsonProperty(value = "properties.administratorLoginPassword") private String administratorLoginPassword; /** * Get the fullyQualifiedDomainName value. * * @return the fullyQualifiedDomainName value */ public String fullyQualifiedDomainName() { return this.fullyQualifiedDomainName; } /** * Get the version value. * * @return the version value */ public ServerVersion version() { return this.version; } /** * Set the version value. * * @param version the version value to set * @return the ServerInner object itself. */ public ServerInner withVersion(ServerVersion version) { this.version = version; return this; } /** * Get the administratorLogin value. * * @return the administratorLogin value */ public String administratorLogin() { return this.administratorLogin; } /** * Set the administratorLogin value. * * @param administratorLogin the administratorLogin value to set * @return the ServerInner object itself. */ public ServerInner withAdministratorLogin(String administratorLogin) { this.administratorLogin = administratorLogin; return this; } /** * Get the administratorLoginPassword value. * * @return the administratorLoginPassword value */ public String administratorLoginPassword() { return this.administratorLoginPassword; } /** * Set the administratorLoginPassword value. * * @param administratorLoginPassword the administratorLoginPassword value to set * @return the ServerInner object itself. */ public ServerInner withAdministratorLoginPassword(String administratorLoginPassword) { this.administratorLoginPassword = administratorLoginPassword; return this; } }