Principal Class

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

Implements

public class Principal
implements JsonSerializable<Principal>

A principal who has interacted with a billing entity.

Constructor Summary

Constructor Description
Principal()

Creates an instance of Principal class.

Method Summary

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

Reads an instance of Principal from the JsonReader.

String objectId()

Get the objectId property: The object id of the principal who has interacted with a billing entity.

String tenantId()

Get the tenantId property: The tenant id of the principal who has interacted with a billing entity.

JsonWriter toJson(JsonWriter jsonWriter)
String upn()

Get the upn property: The user principal name of the principal who has interacted with a billing entity.

void validate()

Validates the instance.

Principal withObjectId(String objectId)

Set the objectId property: The object id of the principal who has interacted with a billing entity.

Principal withTenantId(String tenantId)

Set the tenantId property: The tenant id of the principal who has interacted with a billing entity.

Principal withUpn(String upn)

Set the upn property: The user principal name of the principal who has interacted with a billing entity.

Methods inherited from java.lang.Object

Constructor Details

Principal

public Principal()

Creates an instance of Principal class.

Method Details

fromJson

public static Principal fromJson(JsonReader jsonReader)

Reads an instance of Principal from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

objectId

public String objectId()

Get the objectId property: The object id of the principal who has interacted with a billing entity.

Returns:

the objectId value.

tenantId

public String tenantId()

Get the tenantId property: The tenant id of the principal who has interacted with a billing entity.

Returns:

the tenantId value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

upn

public String upn()

Get the upn property: The user principal name of the principal who has interacted with a billing entity.

Returns:

the upn value.

validate

public void validate()

Validates the instance.

withObjectId

public Principal withObjectId(String objectId)

Set the objectId property: The object id of the principal who has interacted with a billing entity.

Parameters:

objectId - the objectId value to set.

Returns:

the Principal object itself.

withTenantId

public Principal withTenantId(String tenantId)

Set the tenantId property: The tenant id of the principal who has interacted with a billing entity.

Parameters:

tenantId - the tenantId value to set.

Returns:

the Principal object itself.

withUpn

public Principal withUpn(String upn)

Set the upn property: The user principal name of the principal who has interacted with a billing entity.

Parameters:

upn - the upn value to set.

Returns:

the Principal object itself.

Applies to