Delen via


CheckEndpointNameAvailabilityInput Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.CheckEndpointNameAvailabilityInput

Implements

public final class CheckEndpointNameAvailabilityInput
implements JsonSerializable<CheckEndpointNameAvailabilityInput>

Input of CheckNameAvailability API.

Constructor Summary

Constructor Description
CheckEndpointNameAvailabilityInput()

Creates an instance of CheckEndpointNameAvailabilityInput class.

Method Summary

Modifier and Type Method and Description
AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope()

Get the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.

static CheckEndpointNameAvailabilityInput fromJson(JsonReader jsonReader)

Reads an instance of CheckEndpointNameAvailabilityInput from the JsonReader.

String name()

Get the name property: The resource name to validate.

JsonWriter toJson(JsonWriter jsonWriter)
ResourceType type()

Get the type property: The type of the resource whose name is to be validated.

void validate()

Validates the instance.

CheckEndpointNameAvailabilityInput withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope)

Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope.

CheckEndpointNameAvailabilityInput withName(String name)

Set the name property: The resource name to validate.

CheckEndpointNameAvailabilityInput withType(ResourceType type)

Set the type property: The type of the resource whose name is to be validated.

Methods inherited from java.lang.Object

Constructor Details

CheckEndpointNameAvailabilityInput

public CheckEndpointNameAvailabilityInput()

Creates an instance of CheckEndpointNameAvailabilityInput class.

Method Details

autoGeneratedDomainNameLabelScope

public AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope()

Get the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope. The default value is TenantReuse.

Returns:

the autoGeneratedDomainNameLabelScope value.

fromJson

public static CheckEndpointNameAvailabilityInput fromJson(JsonReader jsonReader)

Reads an instance of CheckEndpointNameAvailabilityInput from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckEndpointNameAvailabilityInput if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

name

public String name()

Get the name property: The resource name to validate.

Returns:

the name value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public ResourceType type()

Get the type property: The type of the resource whose name is to be validated.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withAutoGeneratedDomainNameLabelScope

public CheckEndpointNameAvailabilityInput withAutoGeneratedDomainNameLabelScope(AutoGeneratedDomainNameLabelScope autoGeneratedDomainNameLabelScope)

Set the autoGeneratedDomainNameLabelScope property: Indicates the endpoint name reuse scope. The default value is TenantReuse.

Parameters:

autoGeneratedDomainNameLabelScope - the autoGeneratedDomainNameLabelScope value to set.

Returns:

the CheckEndpointNameAvailabilityInput object itself.

withName

public CheckEndpointNameAvailabilityInput withName(String name)

Set the name property: The resource name to validate.

Parameters:

name - the name value to set.

Returns:

the CheckEndpointNameAvailabilityInput object itself.

withType

public CheckEndpointNameAvailabilityInput withType(ResourceType type)

Set the type property: The type of the resource whose name is to be validated.

Parameters:

type - the type value to set.

Returns:

the CheckEndpointNameAvailabilityInput object itself.

Applies to