Class TrafficManagerNameAvailabilityInner
java.lang.Object
com.azure.resourcemanager.trafficmanager.fluent.models.TrafficManagerNameAvailabilityInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<TrafficManagerNameAvailabilityInner>
public final class TrafficManagerNameAvailabilityInner
extends Object
implements com.azure.json.JsonSerializable<TrafficManagerNameAvailabilityInner>
Class representing a Traffic Manager Name Availability response.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of TrafficManagerNameAvailabilityInner class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of TrafficManagerNameAvailabilityInner from the JsonReader.message()Get the message property: Descriptive message that explains why the name is not available, when applicable.name()Get the name property: The relative name.Get the nameAvailable property: Describes whether the relative name is available or not.reason()Get the reason property: The reason why the name is not available, when applicable.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Traffic Manager profile resource type.voidvalidate()Validates the instance.withMessage(String message) Set the message property: Descriptive message that explains why the name is not available, when applicable.Set the name property: The relative name.withNameAvailable(Boolean nameAvailable) Set the nameAvailable property: Describes whether the relative name is available or not.withReason(String reason) Set the reason property: The reason why the name is not available, when applicable.Set the type property: Traffic Manager profile resource type.Methods inherited from class java.lang.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
-
TrafficManagerNameAvailabilityInner
public TrafficManagerNameAvailabilityInner()Creates an instance of TrafficManagerNameAvailabilityInner class.
-
-
Method Details
-
name
Get the name property: The relative name.- Returns:
- the name value.
-
withName
Set the name property: The relative name.- Parameters:
name- the name value to set.- Returns:
- the TrafficManagerNameAvailabilityInner object itself.
-
type
Get the type property: Traffic Manager profile resource type.- Returns:
- the type value.
-
withType
Set the type property: Traffic Manager profile resource type.- Parameters:
type- the type value to set.- Returns:
- the TrafficManagerNameAvailabilityInner object itself.
-
nameAvailable
Get the nameAvailable property: Describes whether the relative name is available or not.- Returns:
- the nameAvailable value.
-
withNameAvailable
Set the nameAvailable property: Describes whether the relative name is available or not.- Parameters:
nameAvailable- the nameAvailable value to set.- Returns:
- the TrafficManagerNameAvailabilityInner object itself.
-
reason
Get the reason property: The reason why the name is not available, when applicable.- Returns:
- the reason value.
-
withReason
Set the reason property: The reason why the name is not available, when applicable.- Parameters:
reason- the reason value to set.- Returns:
- the TrafficManagerNameAvailabilityInner object itself.
-
message
Get the message property: Descriptive message that explains why the name is not available, when applicable.- Returns:
- the message value.
-
withMessage
Set the message property: Descriptive message that explains why the name is not available, when applicable.- Parameters:
message- the message value to set.- Returns:
- the TrafficManagerNameAvailabilityInner 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<TrafficManagerNameAvailabilityInner>- Throws:
IOException
-
fromJson
public static TrafficManagerNameAvailabilityInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of TrafficManagerNameAvailabilityInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of TrafficManagerNameAvailabilityInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IOException- If an error occurs while reading the TrafficManagerNameAvailabilityInner.
-