CheckNameAvailabilityRequest Class

  • java.lang.Object
    • com.azure.resourcemanager.selfhelp.models.CheckNameAvailabilityRequest

public final class CheckNameAvailabilityRequest

The check availability request body.

Constructor Summary

Constructor Description
CheckNameAvailabilityRequest()

Creates an instance of CheckNameAvailabilityRequest class.

Method Summary

Modifier and Type Method and Description
String name()

Get the name property: The name of the resource for which availability needs to be checked.

String type()

Get the type property: The resource type.

void validate()

Validates the instance.

CheckNameAvailabilityRequest withName(String name)

Set the name property: The name of the resource for which availability needs to be checked.

CheckNameAvailabilityRequest withType(String type)

Set the type property: The resource type.

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailabilityRequest

public CheckNameAvailabilityRequest()

Creates an instance of CheckNameAvailabilityRequest class.

Method Details

name

public String name()

Get the name property: The name of the resource for which availability needs to be checked.

Returns:

the name value.

type

public String type()

Get the type property: The resource type.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withName

public CheckNameAvailabilityRequest withName(String name)

Set the name property: The name of the resource for which availability needs to be checked.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailabilityRequest object itself.

withType

public CheckNameAvailabilityRequest withType(String type)

Set the type property: The resource type.

Parameters:

type - the type value to set.

Returns:

the CheckNameAvailabilityRequest object itself.

Applies to