BillingRequestProperties Class
- java.
lang. Object - com.
azure. resourcemanager. billing. models. BillingRequestProperties
- com.
Implements
public final class BillingRequestProperties
implements JsonSerializable<BillingRequestProperties>
A request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests.
Constructor Summary
| Constructor | Description |
|---|---|
| BillingRequestProperties() |
Creates an instance of Billing |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| Map<String,String> |
additionalInformation()
Get the additional |
| String |
billingAccountDisplayName()
Get the billing |
| String |
billingAccountId()
Get the billing |
| String |
billingAccountName()
Get the billing |
| String |
billingAccountPrimaryBillingTenantId()
Get the billing |
| String |
billingProfileDisplayName()
Get the billing |
| String |
billingProfileId()
Get the billing |
| String |
billingProfileName()
Get the billing |
| String |
billingScope()
Get the billing |
|
Billing |
createdBy()
Get the created |
|
Offset |
creationDate()
Get the creation |
| String |
customerDisplayName()
Get the customer |
| String |
customerId()
Get the customer |
| String |
customerName()
Get the customer |
| String |
decisionReason()
Get the decision |
|
Offset |
expirationDate()
Get the expiration |
|
static
Billing |
fromJson(JsonReader jsonReader)
Reads an instance of Billing |
| String |
invoiceSectionDisplayName()
Get the invoice |
| String |
invoiceSectionId()
Get the invoice |
| String |
invoiceSectionName()
Get the invoice |
| String |
justification()
Get the justification property: Justification for submitting request. |
|
Billing |
lastUpdatedBy()
Get the last |
|
Offset |
lastUpdatedDate()
Get the last |
|
Provisioning |
provisioningState()
Get the provisioning |
| List<Principal> |
recipients()
Get the recipients property: The recipients of the billing request. |
| String |
requestScope()
Get the request |
|
Offset |
reviewalDate()
Get the reviewal |
|
Billing |
reviewedBy()
Get the reviewed |
|
Billing |
status()
Get the status property: Status of billing request. |
| String |
subscriptionDisplayName()
Get the subscription |
| String |
subscriptionId()
Get the subscription |
| String |
subscriptionName()
Get the subscription |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Billing |
type()
Get the type property: Type of billing request. |
| void |
validate()
Validates the instance. |
|
Billing |
withAdditionalInformation(Map<String,String> additionalInformation)
Set the additional |
|
Billing |
withCreatedBy(BillingRequestPropertiesCreatedBy createdBy)
Set the created |
|
Billing |
withDecisionReason(String decisionReason)
Set the decision |
|
Billing |
withJustification(String justification)
Set the justification property: Justification for submitting request. |
|
Billing |
withLastUpdatedBy(BillingRequestPropertiesLastUpdatedBy lastUpdatedBy)
Set the last |
|
Billing |
withRecipients(List<Principal> recipients)
Set the recipients property: The recipients of the billing request. |
|
Billing |
withRequestScope(String requestScope)
Set the request |
|
Billing |
withReviewedBy(BillingRequestPropertiesReviewedBy reviewedBy)
Set the reviewed |
|
Billing |
withStatus(BillingRequestStatus status)
Set the status property: Status of billing request. |
|
Billing |
withType(BillingRequestType type)
Set the type property: Type of billing request. |
Methods inherited from java.lang.Object
Constructor Details
BillingRequestProperties
public BillingRequestProperties()
Creates an instance of BillingRequestProperties class.
Method Details
additionalInformation
public Map<String,String> additionalInformation()
Get the additionalInformation property: Additional information for the billing request.
Returns:
billingAccountDisplayName
public String billingAccountDisplayName()
Get the billingAccountDisplayName property: The name of the billing account.
Returns:
billingAccountId
public String billingAccountId()
Get the billingAccountId property: The fully qualified ID that uniquely identifies a billing account.
Returns:
billingAccountName
public String billingAccountName()
Get the billingAccountName property: The ID that uniquely identifies a billing account.
Returns:
billingAccountPrimaryBillingTenantId
public String billingAccountPrimaryBillingTenantId()
Get the billingAccountPrimaryBillingTenantId property: The primary tenant ID of the billing account for which the billing request was submitted.
Returns:
billingProfileDisplayName
public String billingProfileDisplayName()
Get the billingProfileDisplayName property: The name of the billing profile.
Returns:
billingProfileId
public String billingProfileId()
Get the billingProfileId property: The fully qualified ID that uniquely identifies a billing profile.
Returns:
billingProfileName
public String billingProfileName()
Get the billingProfileName property: The ID that uniquely identifies a billing profile.
Returns:
billingScope
public String billingScope()
Get the billingScope property: The billing scope for which the request will be applied. This is a read only property derived by the service.
Returns:
createdBy
public BillingRequestPropertiesCreatedBy createdBy()
Get the createdBy property: The principal of the entity who created the request.
Returns:
creationDate
public OffsetDateTime creationDate()
Get the creationDate property: The date and time when the request was created.
Returns:
customerDisplayName
public String customerDisplayName()
Get the customerDisplayName property: The name of the customer.
Returns:
customerId
public String customerId()
Get the customerId property: The fully qualified ID that uniquely identifies a customer.
Returns:
customerName
public String customerName()
Get the customerName property: The ID that uniquely identifies a customer.
Returns:
decisionReason
public String decisionReason()
Get the decisionReason property: The reason to approve or decline the request.
Returns:
expirationDate
public OffsetDateTime expirationDate()
Get the expirationDate property: The date and time when the request expires.
Returns:
fromJson
public static BillingRequestProperties fromJson(JsonReader jsonReader)
Reads an instance of BillingRequestProperties from the JsonReader.
Parameters:
Returns:
Throws:
invoiceSectionDisplayName
public String invoiceSectionDisplayName()
Get the invoiceSectionDisplayName property: The name of the invoice section.
Returns:
invoiceSectionId
public String invoiceSectionId()
Get the invoiceSectionId property: The fully qualified ID that uniquely identifies an invoice section.
Returns:
invoiceSectionName
public String invoiceSectionName()
Get the invoiceSectionName property: The ID that uniquely identifies an invoice section.
Returns:
justification
public String justification()
Get the justification property: Justification for submitting request.
Returns:
lastUpdatedBy
public BillingRequestPropertiesLastUpdatedBy lastUpdatedBy()
Get the lastUpdatedBy property: The principal of the entity who last updated the request.
Returns:
lastUpdatedDate
public OffsetDateTime lastUpdatedDate()
Get the lastUpdatedDate property: Date and time of last update.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the resource during a long-running operation.
Returns:
recipients
public List<Principal> recipients()
Get the recipients property: The recipients of the billing request.
Returns:
requestScope
public String requestScope()
Get the requestScope property: The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}').
Returns:
reviewalDate
public OffsetDateTime reviewalDate()
Get the reviewalDate property: The date and time when the request was reviewed.
Returns:
reviewedBy
public BillingRequestPropertiesReviewedBy reviewedBy()
Get the reviewedBy property: The principal of the request reviewer. Will only be set if request is approved.
Returns:
status
public BillingRequestStatus status()
Get the status property: Status of billing request.
Returns:
subscriptionDisplayName
public String subscriptionDisplayName()
Get the subscriptionDisplayName property: The name of the billing subscription.
Returns:
subscriptionId
public String subscriptionId()
Get the subscriptionId property: The fully qualified ID that uniquely identifies a billing subscription.
Returns:
subscriptionName
public String subscriptionName()
Get the subscriptionName property: The ID that uniquely identifies a billing subscription.
Returns:
toJson
type
public BillingRequestType type()
Get the type property: Type of billing request.
Returns:
validate
public void validate()
Validates the instance.
withAdditionalInformation
public BillingRequestProperties withAdditionalInformation(Map<String,String> additionalInformation)
Set the additionalInformation property: Additional information for the billing request.
Parameters:
Returns:
withCreatedBy
public BillingRequestProperties withCreatedBy(BillingRequestPropertiesCreatedBy createdBy)
Set the createdBy property: The principal of the entity who created the request.
Parameters:
Returns:
withDecisionReason
public BillingRequestProperties withDecisionReason(String decisionReason)
Set the decisionReason property: The reason to approve or decline the request.
Parameters:
Returns:
withJustification
public BillingRequestProperties withJustification(String justification)
Set the justification property: Justification for submitting request.
Parameters:
Returns:
withLastUpdatedBy
public BillingRequestProperties withLastUpdatedBy(BillingRequestPropertiesLastUpdatedBy lastUpdatedBy)
Set the lastUpdatedBy property: The principal of the entity who last updated the request.
Parameters:
Returns:
withRecipients
public BillingRequestProperties withRecipients(List<Principal> recipients)
Set the recipients property: The recipients of the billing request.
Parameters:
Returns:
withRequestScope
public BillingRequestProperties withRequestScope(String requestScope)
Set the requestScope property: The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}').
Parameters:
Returns:
withReviewedBy
public BillingRequestProperties withReviewedBy(BillingRequestPropertiesReviewedBy reviewedBy)
Set the reviewedBy property: The principal of the request reviewer. Will only be set if request is approved.
Parameters:
Returns:
withStatus
public BillingRequestProperties withStatus(BillingRequestStatus status)
Set the status property: Status of billing request.
Parameters:
Returns:
withType
public BillingRequestProperties withType(BillingRequestType type)
Set the type property: Type of billing request.
Parameters:
Returns: