Interface GetCreditAllocationHistoryResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,BillingResponse.Builder,Buildable,CopyableBuilder<GetCreditAllocationHistoryResponse.Builder,,GetCreditAllocationHistoryResponse> SdkBuilder<GetCreditAllocationHistoryResponse.Builder,,GetCreditAllocationHistoryResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
GetCreditAllocationHistoryResponse
-
Method Summary
Modifier and TypeMethodDescriptioncreditAllocationHistoryList(Collection<CreditAllocationHistoryEntry> creditAllocationHistoryList) Allocation entries sorted bybillingMonthin descending order.creditAllocationHistoryList(Consumer<CreditAllocationHistoryEntry.Builder>... creditAllocationHistoryList) Allocation entries sorted bybillingMonthin descending order.creditAllocationHistoryList(CreditAllocationHistoryEntry... creditAllocationHistoryList) Allocation entries sorted bybillingMonthin descending order.failedMonths(String... failedMonths) Billing months inYYYY-MMformat that failed to return data.failedMonths(Collection<String> failedMonths) Billing months inYYYY-MMformat that failed to return data.Pagination token.partialResults(Boolean partialResults) truewhen data could not be retrieved for one or more billing months.Methods inherited from interface software.amazon.awssdk.services.billing.model.BillingResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
creditAllocationHistoryList
GetCreditAllocationHistoryResponse.Builder creditAllocationHistoryList(Collection<CreditAllocationHistoryEntry> creditAllocationHistoryList) Allocation entries sorted by
billingMonthin descending order.- Parameters:
creditAllocationHistoryList- Allocation entries sorted bybillingMonthin descending order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditAllocationHistoryList
GetCreditAllocationHistoryResponse.Builder creditAllocationHistoryList(CreditAllocationHistoryEntry... creditAllocationHistoryList) Allocation entries sorted by
billingMonthin descending order.- Parameters:
creditAllocationHistoryList- Allocation entries sorted bybillingMonthin descending order.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creditAllocationHistoryList
GetCreditAllocationHistoryResponse.Builder creditAllocationHistoryList(Consumer<CreditAllocationHistoryEntry.Builder>... creditAllocationHistoryList) Allocation entries sorted by
This is a convenience method that creates an instance of thebillingMonthin descending order.CreditAllocationHistoryEntry.Builderavoiding the need to create one manually viaCreditAllocationHistoryEntry.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocreditAllocationHistoryList(List<CreditAllocationHistoryEntry>).- Parameters:
creditAllocationHistoryList- a consumer that will call methods onCreditAllocationHistoryEntry.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
partialResults
truewhen data could not be retrieved for one or more billing months. ThefailedMonthsfield lists which months are missing.- Parameters:
partialResults-truewhen data could not be retrieved for one or more billing months. ThefailedMonthsfield lists which months are missing.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedMonths
Billing months in
YYYY-MMformat that failed to return data. Non-empty only whenpartialResultsistrue.- Parameters:
failedMonths- Billing months inYYYY-MMformat that failed to return data. Non-empty only whenpartialResultsistrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
failedMonths
Billing months in
YYYY-MMformat that failed to return data. Non-empty only whenpartialResultsistrue.- Parameters:
failedMonths- Billing months inYYYY-MMformat that failed to return data. Non-empty only whenpartialResultsistrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
Pagination token. Present when more pages are available;
nullwhen there are no more results.- Parameters:
nextToken- Pagination token. Present when more pages are available;nullwhen there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-