BillingRequestPropertiesCreatedBy Class

public final class BillingRequestPropertiesCreatedBy
extends Principal

The principal of the entity who created the request.

Constructor Summary

Constructor Description
BillingRequestPropertiesCreatedBy()

Creates an instance of BillingRequestPropertiesCreatedBy class.

Method Summary

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

Reads an instance of BillingRequestPropertiesCreatedBy from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

BillingRequestPropertiesCreatedBy withObjectId(String objectId)

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

BillingRequestPropertiesCreatedBy withTenantId(String tenantId)

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

BillingRequestPropertiesCreatedBy withUpn(String upn)

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

Methods inherited from Principal

Methods inherited from java.lang.Object

Constructor Details

BillingRequestPropertiesCreatedBy

public BillingRequestPropertiesCreatedBy()

Creates an instance of BillingRequestPropertiesCreatedBy class.

Method Details

fromJson

public static BillingRequestPropertiesCreatedBy fromJson(JsonReader jsonReader)

Reads an instance of BillingRequestPropertiesCreatedBy from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

BillingRequestPropertiesCreatedBy.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

Overrides:

BillingRequestPropertiesCreatedBy.validate()

withObjectId

public BillingRequestPropertiesCreatedBy withObjectId(String objectId)

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

Overrides:

BillingRequestPropertiesCreatedBy.withObjectId(String objectId)

Parameters:

objectId

withTenantId

public BillingRequestPropertiesCreatedBy withTenantId(String tenantId)

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

Overrides:

BillingRequestPropertiesCreatedBy.withTenantId(String tenantId)

Parameters:

tenantId

withUpn

public BillingRequestPropertiesCreatedBy withUpn(String upn)

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

Overrides:

BillingRequestPropertiesCreatedBy.withUpn(String upn)

Parameters:

upn

Applies to