Principal Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. Principal
- com.
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 Json |
| String |
objectId()
Get the object |
| String |
tenantId()
Get the tenant |
|
Json |
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 object |
| Principal |
withTenantId(String tenantId)
Set the tenant |
| 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:
Returns:
Throws:
objectId
public String objectId()
Get the objectId property: The object id of the principal who has interacted with a billing entity.
Returns:
tenantId
public String tenantId()
Get the tenantId property: The tenant id of the principal who has interacted with a billing entity.
Returns:
toJson
upn
public String upn()
Get the upn property: The user principal name of the principal who has interacted with a billing entity.
Returns:
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:
Returns:
withTenantId
public Principal withTenantId(String tenantId)
Set the tenantId property: The tenant id of the principal who has interacted with a billing entity.
Parameters:
Returns:
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:
Returns: