TaxIdentifier Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. TaxIdentifier
- com.
Implements
public final class TaxIdentifier
implements JsonSerializable<TaxIdentifier>
A tax identifier for the billing account.
Constructor Summary
| Constructor | Description |
|---|---|
| TaxIdentifier() |
Creates an instance of Tax |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
country()
Get the country property: The country of the tax identifier. |
|
static
Tax |
fromJson(JsonReader jsonReader)
Reads an instance of Tax |
| String |
id()
Get the id property: The id of the tax identifier. |
| String |
scope()
Get the scope property: The scope of the tax identifier. |
|
Tax |
status()
Get the status property: The status of the tax identifier. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Tax |
type()
Get the type property: The type of the tax identifier. |
| void |
validate()
Validates the instance. |
|
Tax |
withCountry(String country)
Set the country property: The country of the tax identifier. |
|
Tax |
withId(String id)
Set the id property: The id of the tax identifier. |
|
Tax |
withScope(String scope)
Set the scope property: The scope of the tax identifier. |
|
Tax |
withStatus(TaxIdentifierStatus status)
Set the status property: The status of the tax identifier. |
|
Tax |
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:
fromJson
public static TaxIdentifier fromJson(JsonReader jsonReader)
Reads an instance of TaxIdentifier from the JsonReader.
Parameters:
Returns:
Throws:
id
public String id()
Get the id property: The id of the tax identifier.
Returns:
scope
public String scope()
Get the scope property: The scope of the tax identifier.
Returns:
status
public TaxIdentifierStatus status()
Get the status property: The status of the tax identifier.
Returns:
toJson
type
public TaxIdentifierType type()
Get the type property: The type of the tax identifier.
Returns:
validate
public void validate()
Validates the instance.
withCountry
public TaxIdentifier withCountry(String country)
Set the country property: The country of the tax identifier.
Parameters:
Returns:
withId
public TaxIdentifier withId(String id)
Set the id property: The id of the tax identifier.
Parameters:
Returns:
withScope
public TaxIdentifier withScope(String scope)
Set the scope property: The scope of the tax identifier.
Parameters:
Returns:
withStatus
public TaxIdentifier withStatus(TaxIdentifierStatus status)
Set the status property: The status of the tax identifier.
Parameters:
Returns:
withType
public TaxIdentifier withType(TaxIdentifierType type)
Set the type property: The type of the tax identifier.
Parameters:
Returns: