RegistrationNumber Class

  • java.lang.Object
    • com.azure.resourcemanager.billing.models.RegistrationNumber

Implements

public class RegistrationNumber
implements JsonSerializable<RegistrationNumber>

Describes the registration number of the organization linked with the billing account.

Constructor Summary

Constructor Description
RegistrationNumber()

Creates an instance of RegistrationNumber class.

Method Summary

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

Reads an instance of RegistrationNumber from the JsonReader.

String id()

Get the id property: The unique identification number of the organization linked with the billing account.

Boolean required()

Get the required property: Identifies if the registration number is required for the billing account.

JsonWriter toJson(JsonWriter jsonWriter)
List<String> type()

Get the type property: The types of registration number allowed based on the country of the billing account.

void validate()

Validates the instance.

RegistrationNumber withId(String id)

Set the id property: The unique identification number of the organization linked with the billing account.

Methods inherited from java.lang.Object

Constructor Details

RegistrationNumber

public RegistrationNumber()

Creates an instance of RegistrationNumber class.

Method Details

fromJson

public static RegistrationNumber fromJson(JsonReader jsonReader)

Reads an instance of RegistrationNumber from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The unique identification number of the organization linked with the billing account.

Returns:

the id value.

required

public Boolean required()

Get the required property: Identifies if the registration number is required for the billing account.

Returns:

the required value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public List<String> type()

Get the type property: The types of registration number allowed based on the country of the billing account.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withId

public RegistrationNumber withId(String id)

Set the id property: The unique identification number of the organization linked with the billing account.

Parameters:

id - the id value to set.

Returns:

the RegistrationNumber object itself.

Applies to