Class ServerDnsAliasAcquisition
java.lang.Object
com.azure.resourcemanager.sql.models.ServerDnsAliasAcquisition
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ServerDnsAliasAcquisition>
public final class ServerDnsAliasAcquisition
extends Object
implements com.azure.json.JsonSerializable<ServerDnsAliasAcquisition>
A server dns alias acquisition request.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of ServerDnsAliasAcquisition class. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServerDnsAliasAcquisitionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ServerDnsAliasAcquisition from the JsonReader.Get the oldServerDnsAliasId property: The id of the server alias that will be acquired to point to this server instead.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withOldServerDnsAliasId(String oldServerDnsAliasId) Set the oldServerDnsAliasId property: The id of the server alias that will be acquired to point to this server instead.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ServerDnsAliasAcquisition
public ServerDnsAliasAcquisition()Creates an instance of ServerDnsAliasAcquisition class.
-
-
Method Details
-
oldServerDnsAliasId
Get the oldServerDnsAliasId property: The id of the server alias that will be acquired to point to this server instead.- Returns:
- the oldServerDnsAliasId value.
-
withOldServerDnsAliasId
Set the oldServerDnsAliasId property: The id of the server alias that will be acquired to point to this server instead.- Parameters:
oldServerDnsAliasId- the oldServerDnsAliasId value to set.- Returns:
- the ServerDnsAliasAcquisition object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ServerDnsAliasAcquisition>- Throws:
IOException
-
fromJson
public static ServerDnsAliasAcquisition fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ServerDnsAliasAcquisition from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ServerDnsAliasAcquisition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ServerDnsAliasAcquisition.
-