CheckNameAvailability Class

  • java.lang.Object
    • com.azure.resourcemanager.artifactsigning.models.CheckNameAvailability

Implements

public final class CheckNameAvailability
implements JsonSerializable<CheckNameAvailability>

The parameters used to check the availability of the artifact signing account name.

Constructor Summary

Constructor Description
CheckNameAvailability()

Creates an instance of CheckNameAvailability class.

Method Summary

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

Reads an instance of CheckNameAvailability from the JsonReader.

String name()

Get the name property: Artifact signing account name.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource, "Microsoft.CodeSigning/codeSigningAccounts".

CheckNameAvailability withName(String name)

Set the name property: Artifact signing account name.

CheckNameAvailability withType(String type)

Set the type property: The type of the resource, "Microsoft.CodeSigning/codeSigningAccounts".

Methods inherited from java.lang.Object

Constructor Details

CheckNameAvailability

public CheckNameAvailability()

Creates an instance of CheckNameAvailability class.

Method Details

fromJson

public static CheckNameAvailability fromJson(JsonReader jsonReader)

Reads an instance of CheckNameAvailability from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CheckNameAvailability 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: Artifact signing account name.

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, "Microsoft.CodeSigning/codeSigningAccounts".

Returns:

the type value.

withName

public CheckNameAvailability withName(String name)

Set the name property: Artifact signing account name.

Parameters:

name - the name value to set.

Returns:

the CheckNameAvailability object itself.

withType

public CheckNameAvailability withType(String type)

Set the type property: The type of the resource, "Microsoft.CodeSigning/codeSigningAccounts".

Parameters:

type - the type value to set.

Returns:

the CheckNameAvailability object itself.

Applies to