CheckTrafficManagerRelativeDnsNameAvailabilityParameters Class

  • java.lang.Object
    • com.azure.resourcemanager.trafficmanager.models.CheckTrafficManagerRelativeDnsNameAvailabilityParameters

Implements

public final class CheckTrafficManagerRelativeDnsNameAvailabilityParameters
implements JsonSerializable<CheckTrafficManagerRelativeDnsNameAvailabilityParameters>

Parameters supplied to check Traffic Manager name operation.

Constructor Summary

Constructor Description
CheckTrafficManagerRelativeDnsNameAvailabilityParameters()

Creates an instance of CheckTrafficManagerRelativeDnsNameAvailabilityParameters class.

Method Summary

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

Reads an instance of CheckTrafficManagerRelativeDnsNameAvailabilityParameters from the JsonReader.

String name()

Get the name property: The name of the resource.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

CheckTrafficManagerRelativeDnsNameAvailabilityParameters withName(String name)

Set the name property: The name of the resource.

CheckTrafficManagerRelativeDnsNameAvailabilityParameters withType(String type)

Set the type property: The type of the resource.

Methods inherited from java.lang.Object

Constructor Details

CheckTrafficManagerRelativeDnsNameAvailabilityParameters

public CheckTrafficManagerRelativeDnsNameAvailabilityParameters()

Creates an instance of CheckTrafficManagerRelativeDnsNameAvailabilityParameters class.

Method Details

fromJson

public static CheckTrafficManagerRelativeDnsNameAvailabilityParameters fromJson(JsonReader jsonReader)

Reads an instance of CheckTrafficManagerRelativeDnsNameAvailabilityParameters from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckTrafficManagerRelativeDnsNameAvailabilityParameters 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 CheckTrafficManagerRelativeDnsNameAvailabilityParameters.

name

public String name()

Get the name property: The name of the resource.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckTrafficManagerRelativeDnsNameAvailabilityParameters withName(String name)

Set the name property: The name of the resource.

Parameters:

name - the name value to set.

Returns:

the CheckTrafficManagerRelativeDnsNameAvailabilityParameters object itself.

withType

public CheckTrafficManagerRelativeDnsNameAvailabilityParameters withType(String type)

Set the type property: The type of the resource.

Parameters:

type - the type value to set.

Returns:

the CheckTrafficManagerRelativeDnsNameAvailabilityParameters object itself.

Applies to