Class TrafficManagerNameAvailabilityInner
- java.lang.Object
-
- com.azure.resourcemanager.trafficmanager.fluent.models.TrafficManagerNameAvailabilityInner
-
public final class TrafficManagerNameAvailabilityInner extends Object
Class representing a Traffic Manager Name Availability response.
-
-
Constructor Summary
Constructors Constructor Description TrafficManagerNameAvailabilityInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringmessage()Get the message property: Descriptive message that explains why the name is not available, when applicable.Stringname()Get the name property: The relative name.BooleannameAvailable()Get the nameAvailable property: Describes whether the relative name is available or not.Stringreason()Get the reason property: The reason why the name is not available, when applicable.Stringtype()Get the type property: Traffic Manager profile resource type.voidvalidate()Validates the instance.TrafficManagerNameAvailabilityInnerwithMessage(String message)Set the message property: Descriptive message that explains why the name is not available, when applicable.TrafficManagerNameAvailabilityInnerwithName(String name)Set the name property: The relative name.TrafficManagerNameAvailabilityInnerwithNameAvailable(Boolean nameAvailable)Set the nameAvailable property: Describes whether the relative name is available or not.TrafficManagerNameAvailabilityInnerwithReason(String reason)Set the reason property: The reason why the name is not available, when applicable.TrafficManagerNameAvailabilityInnerwithType(String type)Set the type property: Traffic Manager profile resource type.
-
-
-
Method Detail
-
name
public String name()
Get the name property: The relative name.- Returns:
- the name value.
-
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.
-
type
public String type()
Get the type property: Traffic Manager profile resource type.- Returns:
- the type value.
-
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.
-
nameAvailable
public Boolean nameAvailable()
Get the nameAvailable property: Describes whether the relative name is available or not.- Returns:
- the nameAvailable value.
-
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.
-
reason
public String reason()
Get the reason property: The reason why the name is not available, when applicable.- Returns:
- the reason value.
-
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.
-
message
public String message()
Get the message property: Descriptive message that explains why the name is not available, when applicable.- Returns:
- the message value.
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-