TrafficManagerNameAvailabilityInner Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.fluent.models.TrafficManagerNameAvailabilityInner

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 TrafficManagerNameAvailabilityInner class.

Method Summary

Modifier and Type Method and Description
static TrafficManagerNameAvailabilityInner fromJson(JsonReader jsonReader)

Reads an instance of TrafficManagerNameAvailabilityInner from the JsonReader.

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 nameAvailable property: Describes whether the relative name is available or not.

String reason()

Get the reason property: The reason why the name is not available, when applicable.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: Traffic Manager profile resource type.

void validate()

Validates the instance.

TrafficManagerNameAvailabilityInner withMessage(String message)

Set the message property: Descriptive message that explains why the name is not available, when applicable.

TrafficManagerNameAvailabilityInner withName(String name)

Set the name property: The relative name.

TrafficManagerNameAvailabilityInner withNameAvailable(Boolean nameAvailable)

Set the nameAvailable property: Describes whether the relative name is available or not.

TrafficManagerNameAvailabilityInner withReason(String reason)

Set the reason property: The reason why the name is not available, when applicable.

TrafficManagerNameAvailabilityInner 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:

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.

message

public String message()

Get the message property: Descriptive message that explains why the name is not available, when applicable.

Returns:

the message value.

name

public String name()

Get the name property: The relative name.

Returns:

the name value.

nameAvailable

public Boolean nameAvailable()

Get the nameAvailable property: Describes whether the relative name is available or not.

Returns:

the nameAvailable value.

reason

public String reason()

Get the reason property: The reason why the name is not available, when applicable.

Returns:

the reason value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: Traffic Manager profile resource type.

Returns:

the type value.

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:

message - the message value to set.

Returns:

the TrafficManagerNameAvailabilityInner object itself.

withName

public TrafficManagerNameAvailabilityInner withName(String name)

Set the name property: The relative name.

Parameters:

name - the name value to set.

Returns:

the TrafficManagerNameAvailabilityInner object itself.

withNameAvailable

public TrafficManagerNameAvailabilityInner withNameAvailable(Boolean nameAvailable)

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.

withReason

public TrafficManagerNameAvailabilityInner withReason(String reason)

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.

withType

public TrafficManagerNameAvailabilityInner withType(String type)

Set the type property: Traffic Manager profile resource type.

Parameters:

type - the type value to set.

Returns:

the TrafficManagerNameAvailabilityInner object itself.

Applies to