@Generated(value="software.amazon.awssdk:codegen") public interface CostandUsageReportAsyncClient extends SdkClient, SdkAutoCloseable
builder()
method.
All public APIs for AWS Cost and Usage Report serviceModifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and Description |
---|---|
static CostandUsageReportAsyncClientBuilder |
builder()
Create a builder that can be used to configure and create a
CostandUsageReportAsyncClient . |
static CostandUsageReportAsyncClient |
create()
Create a
CostandUsageReportAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from
the DefaultCredentialsProvider . |
default CompletableFuture<DeleteReportDefinitionResponse> |
deleteReportDefinition(Consumer<DeleteReportDefinitionRequest.Builder> deleteReportDefinitionRequest)
Delete a specified report definition
This is a convenience which creates an instance of the DeleteReportDefinitionRequest.Builder avoiding the
need to create one manually via DeleteReportDefinitionRequest.builder() |
default CompletableFuture<DeleteReportDefinitionResponse> |
deleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest)
Delete a specified report definition
|
default CompletableFuture<DescribeReportDefinitionsResponse> |
describeReportDefinitions()
Describe a list of report definitions owned by the account
|
default CompletableFuture<DescribeReportDefinitionsResponse> |
describeReportDefinitions(Consumer<DescribeReportDefinitionsRequest.Builder> describeReportDefinitionsRequest)
Describe a list of report definitions owned by the account
This is a convenience which creates an instance of the DescribeReportDefinitionsRequest.Builder avoiding
the need to create one manually via DescribeReportDefinitionsRequest.builder() |
default CompletableFuture<DescribeReportDefinitionsResponse> |
describeReportDefinitions(DescribeReportDefinitionsRequest describeReportDefinitionsRequest)
Describe a list of report definitions owned by the account
|
default DescribeReportDefinitionsPublisher |
describeReportDefinitionsPaginator()
Describe a list of report definitions owned by the account
|
default DescribeReportDefinitionsPublisher |
describeReportDefinitionsPaginator(DescribeReportDefinitionsRequest describeReportDefinitionsRequest)
Describe a list of report definitions owned by the account
|
default CompletableFuture<PutReportDefinitionResponse> |
putReportDefinition(Consumer<PutReportDefinitionRequest.Builder> putReportDefinitionRequest)
Create a new report definition
This is a convenience which creates an instance of the PutReportDefinitionRequest.Builder avoiding the
need to create one manually via PutReportDefinitionRequest.builder() |
default CompletableFuture<PutReportDefinitionResponse> |
putReportDefinition(PutReportDefinitionRequest putReportDefinitionRequest)
Create a new report definition
|
serviceName
close
static final String SERVICE_NAME
static CostandUsageReportAsyncClient create()
CostandUsageReportAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from
the DefaultCredentialsProvider
.static CostandUsageReportAsyncClientBuilder builder()
CostandUsageReportAsyncClient
.default CompletableFuture<DeleteReportDefinitionResponse> deleteReportDefinition(DeleteReportDefinitionRequest deleteReportDefinitionRequest)
deleteReportDefinitionRequest
- Request of DeleteReportDefinitiondefault CompletableFuture<DeleteReportDefinitionResponse> deleteReportDefinition(Consumer<DeleteReportDefinitionRequest.Builder> deleteReportDefinitionRequest)
DeleteReportDefinitionRequest.Builder
avoiding the
need to create one manually via DeleteReportDefinitionRequest.builder()
deleteReportDefinitionRequest
- a Consumer
that will call methods on DeleteReportDefinitionRequest.Builder
.default CompletableFuture<DescribeReportDefinitionsResponse> describeReportDefinitions(DescribeReportDefinitionsRequest describeReportDefinitionsRequest)
describeReportDefinitionsRequest
- Request of DescribeReportDefinitionsdefault CompletableFuture<DescribeReportDefinitionsResponse> describeReportDefinitions()
default CompletableFuture<DescribeReportDefinitionsResponse> describeReportDefinitions(Consumer<DescribeReportDefinitionsRequest.Builder> describeReportDefinitionsRequest)
DescribeReportDefinitionsRequest.Builder
avoiding
the need to create one manually via DescribeReportDefinitionsRequest.builder()
describeReportDefinitionsRequest
- a Consumer
that will call methods on DescribeReportDefinitionsRequest.Builder
.default DescribeReportDefinitionsPublisher describeReportDefinitionsPaginator(DescribeReportDefinitionsRequest describeReportDefinitionsRequest)
This is a variant of
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the forEach helper method
software.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsPublisher publisher = client.describeReportDefinitionsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsPublisher publisher = client.describeReportDefinitionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)
operation.
describeReportDefinitionsRequest
- Request of DescribeReportDefinitionsdefault DescribeReportDefinitionsPublisher describeReportDefinitionsPaginator()
This is a variant of
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the forEach helper method
software.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsPublisher publisher = client.describeReportDefinitionsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.costandusagereport.paginators.DescribeReportDefinitionsPublisher publisher = client.describeReportDefinitionsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeReportDefinitions(software.amazon.awssdk.services.costandusagereport.model.DescribeReportDefinitionsRequest)
operation.
default CompletableFuture<PutReportDefinitionResponse> putReportDefinition(PutReportDefinitionRequest putReportDefinitionRequest)
putReportDefinitionRequest
- Request of PutReportDefinitiondefault CompletableFuture<PutReportDefinitionResponse> putReportDefinition(Consumer<PutReportDefinitionRequest.Builder> putReportDefinitionRequest)
PutReportDefinitionRequest.Builder
avoiding the
need to create one manually via PutReportDefinitionRequest.builder()
putReportDefinitionRequest
- a Consumer
that will call methods on PutReportDefinitionRequest.Builder
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.