TaxIdentifier Class

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

Implements

public final class TaxIdentifier
implements JsonSerializable<TaxIdentifier>

A tax identifier for the billing account.

Constructor Summary

Constructor Description
TaxIdentifier()

Creates an instance of TaxIdentifier class.

Method Summary

Modifier and Type Method and Description
String country()

Get the country property: The country of the tax identifier.

static TaxIdentifier fromJson(JsonReader jsonReader)

Reads an instance of TaxIdentifier from the JsonReader.

String id()

Get the id property: The id of the tax identifier.

String scope()

Get the scope property: The scope of the tax identifier.

TaxIdentifierStatus status()

Get the status property: The status of the tax identifier.

JsonWriter toJson(JsonWriter jsonWriter)
TaxIdentifierType type()

Get the type property: The type of the tax identifier.

void validate()

Validates the instance.

TaxIdentifier withCountry(String country)

Set the country property: The country of the tax identifier.

TaxIdentifier withId(String id)

Set the id property: The id of the tax identifier.

TaxIdentifier withScope(String scope)

Set the scope property: The scope of the tax identifier.

TaxIdentifier withStatus(TaxIdentifierStatus status)

Set the status property: The status of the tax identifier.

TaxIdentifier withType(TaxIdentifierType type)

Set the type property: The type of the tax identifier.

Methods inherited from java.lang.Object

Constructor Details

TaxIdentifier

public TaxIdentifier()

Creates an instance of TaxIdentifier class.

Method Details

country

public String country()

Get the country property: The country of the tax identifier.

Returns:

the country value.

fromJson

public static TaxIdentifier fromJson(JsonReader jsonReader)

Reads an instance of TaxIdentifier from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

id

public String id()

Get the id property: The id of the tax identifier.

Returns:

the id value.

scope

public String scope()

Get the scope property: The scope of the tax identifier.

Returns:

the scope value.

status

public TaxIdentifierStatus status()

Get the status property: The status of the tax identifier.

Returns:

the status value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public TaxIdentifierType type()

Get the type property: The type of the tax identifier.

Returns:

the type value.

validate

public void validate()

Validates the instance.

withCountry

public TaxIdentifier withCountry(String country)

Set the country property: The country of the tax identifier.

Parameters:

country - the country value to set.

Returns:

the TaxIdentifier object itself.

withId

public TaxIdentifier withId(String id)

Set the id property: The id of the tax identifier.

Parameters:

id - the id value to set.

Returns:

the TaxIdentifier object itself.

withScope

public TaxIdentifier withScope(String scope)

Set the scope property: The scope of the tax identifier.

Parameters:

scope - the scope value to set.

Returns:

the TaxIdentifier object itself.

withStatus

public TaxIdentifier withStatus(TaxIdentifierStatus status)

Set the status property: The status of the tax identifier.

Parameters:

status - the status value to set.

Returns:

the TaxIdentifier object itself.

withType

public TaxIdentifier withType(TaxIdentifierType type)

Set the type property: The type of the tax identifier.

Parameters:

type - the type value to set.

Returns:

the TaxIdentifier object itself.

Applies to