Beneficiary Class

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

Implements

public final class Beneficiary
implements JsonSerializable<Beneficiary>

Details of the beneficiary.

Constructor Summary

Constructor Description
Beneficiary()

Creates an instance of Beneficiary class.

Method Summary

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

Reads an instance of Beneficiary from the JsonReader.

String objectId()

Get the objectId property: The ID that uniquely identifies a user in a tenant.

String tenantId()

Get the tenantId property: The ID that uniquely identifies a tenant.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

Beneficiary withObjectId(String objectId)

Set the objectId property: The ID that uniquely identifies a user in a tenant.

Beneficiary withTenantId(String tenantId)

Set the tenantId property: The ID that uniquely identifies a tenant.

Methods inherited from java.lang.Object

Constructor Details

Beneficiary

public Beneficiary()

Creates an instance of Beneficiary class.

Method Details

fromJson

public static Beneficiary fromJson(JsonReader jsonReader)

Reads an instance of Beneficiary from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

objectId

public String objectId()

Get the objectId property: The ID that uniquely identifies a user in a tenant.

Returns:

the objectId value.

tenantId

public String tenantId()

Get the tenantId property: The ID that uniquely identifies a tenant.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withObjectId

public Beneficiary withObjectId(String objectId)

Set the objectId property: The ID that uniquely identifies a user in a tenant.

Parameters:

objectId - the objectId value to set.

Returns:

the Beneficiary object itself.

withTenantId

public Beneficiary withTenantId(String tenantId)

Set the tenantId property: The ID that uniquely identifies a tenant.

Parameters:

tenantId - the tenantId value to set.

Returns:

the Beneficiary object itself.

Applies to