TrafficManagerNameAvailabilityInner Class
- java.
lang. Object - com.
azure. resourcemanager. trafficmanager. fluent. models. TrafficManagerNameAvailabilityInner
- com.
Implements
public final class TrafficManagerNameAvailabilityInner
implements JsonSerializable<TrafficManagerNameAvailabilityInner>
Class representing a Traffic Manager Name Availability response.
Constructor Summary
Constructor | Description |
---|---|
TrafficManagerNameAvailabilityInner() |
Creates an instance of Traffic |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Traffic |
fromJson(JsonReader jsonReader)
Reads an instance of Traffic |
String |
message()
Get the message property: Descriptive message that explains why the name is not available, when applicable. |
String |
name()
Get the name property: The relative name. |
Boolean |
nameAvailable()
Get the name |
String |
reason()
Get the reason property: The reason why the name is not available, when applicable. |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: Traffic Manager profile resource type. |
void |
validate()
Validates the instance. |
Traffic |
withMessage(String message)
Set the message property: Descriptive message that explains why the name is not available, when applicable. |
Traffic |
withName(String name)
Set the name property: The relative name. |
Traffic |
withNameAvailable(Boolean nameAvailable)
Set the name |
Traffic |
withReason(String reason)
Set the reason property: The reason why the name is not available, when applicable. |
Traffic |
withType(String type)
Set the type property: Traffic Manager profile resource type. |
Methods inherited from java.lang.Object
Constructor Details
TrafficManagerNameAvailabilityInner
public TrafficManagerNameAvailabilityInner()
Creates an instance of TrafficManagerNameAvailabilityInner class.
Method Details
fromJson
public static TrafficManagerNameAvailabilityInner fromJson(JsonReader jsonReader)
Reads an instance of TrafficManagerNameAvailabilityInner from the JsonReader.
Parameters:
Returns:
Throws:
message
public String message()
Get the message property: Descriptive message that explains why the name is not available, when applicable.
Returns:
name
public String name()
Get the name property: The relative name.
Returns:
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Describes whether the relative name is available or not.
Returns:
reason
public String reason()
Get the reason property: The reason why the name is not available, when applicable.
Returns:
toJson
type
public String type()
Get the type property: Traffic Manager profile resource type.
Returns:
validate
public void validate()
Validates the instance.
withMessage
public TrafficManagerNameAvailabilityInner withMessage(String message)
Set the message property: Descriptive message that explains why the name is not available, when applicable.
Parameters:
Returns:
withName
public TrafficManagerNameAvailabilityInner withName(String name)
Set the name property: The relative name.
Parameters:
Returns:
withNameAvailable
public TrafficManagerNameAvailabilityInner withNameAvailable(Boolean nameAvailable)
Set the nameAvailable property: Describes whether the relative name is available or not.
Parameters:
Returns:
withReason
public TrafficManagerNameAvailabilityInner withReason(String reason)
Set the reason property: The reason why the name is not available, when applicable.
Parameters:
Returns:
withType
public TrafficManagerNameAvailabilityInner withType(String type)
Set the type property: Traffic Manager profile resource type.
Parameters:
Returns:
Applies to
Azure SDK for Java