Interface BcmDashboardsClient
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
builder() method.
Amazon Web Services Billing and Cost Management Dashboards is a service that enables you to create, manage, and share dashboards that combine multiple visualizations of your Amazon Web Services cost and usage data. You can combine multiple data sources including Cost Explorer, Savings Plans, and Reserved Instance metrics into unified dashboards, helping you analyze spending patterns and share cost insights across your organization.
You can use the Amazon Web Services Billing and Cost Management Dashboards API to programmatically create, manage, and share dashboards. This includes creating custom dashboards, configuring widgets, managing dashboard permissions, and sharing dashboards across accounts in your organization.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringValue for looking up the service's metadata from theServiceMetadataProvider.static final String -
Method Summary
Modifier and TypeMethodDescriptionstatic BcmDashboardsClientBuilderbuilder()Create a builder that can be used to configure and create aBcmDashboardsClient.static BcmDashboardsClientcreate()Create aBcmDashboardsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.default CreateDashboardResponsecreateDashboard(Consumer<CreateDashboardRequest.Builder> createDashboardRequest) Creates a new dashboard that can contain multiple widgets displaying cost and usage data.default CreateDashboardResponsecreateDashboard(CreateDashboardRequest createDashboardRequest) Creates a new dashboard that can contain multiple widgets displaying cost and usage data.default CreateScheduledReportResponsecreateScheduledReport(Consumer<CreateScheduledReportRequest.Builder> createScheduledReportRequest) Creates a new scheduled report for a dashboard.default CreateScheduledReportResponsecreateScheduledReport(CreateScheduledReportRequest createScheduledReportRequest) Creates a new scheduled report for a dashboard.default DeleteDashboardResponsedeleteDashboard(Consumer<DeleteDashboardRequest.Builder> deleteDashboardRequest) Deletes a specified dashboard.default DeleteDashboardResponsedeleteDashboard(DeleteDashboardRequest deleteDashboardRequest) Deletes a specified dashboard.default DeleteScheduledReportResponsedeleteScheduledReport(Consumer<DeleteScheduledReportRequest.Builder> deleteScheduledReportRequest) Deletes a specified scheduled report.default DeleteScheduledReportResponsedeleteScheduledReport(DeleteScheduledReportRequest deleteScheduledReportRequest) Deletes a specified scheduled report.default ExecuteScheduledReportResponseexecuteScheduledReport(Consumer<ExecuteScheduledReportRequest.Builder> executeScheduledReportRequest) Triggers an immediate execution of a scheduled report, outside of its regular schedule.default ExecuteScheduledReportResponseexecuteScheduledReport(ExecuteScheduledReportRequest executeScheduledReportRequest) Triggers an immediate execution of a scheduled report, outside of its regular schedule.default GetDashboardResponsegetDashboard(Consumer<GetDashboardRequest.Builder> getDashboardRequest) Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.default GetDashboardResponsegetDashboard(GetDashboardRequest getDashboardRequest) Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.default GetResourcePolicyResponsegetResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.default GetResourcePolicyResponsegetResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.default GetScheduledReportResponsegetScheduledReport(Consumer<GetScheduledReportRequest.Builder> getScheduledReportRequest) Retrieves the configuration and metadata of a specified scheduled report.default GetScheduledReportResponsegetScheduledReport(GetScheduledReportRequest getScheduledReportRequest) Retrieves the configuration and metadata of a specified scheduled report.default ListDashboardsResponselistDashboards(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) Returns a list of all dashboards in your account.default ListDashboardsResponselistDashboards(ListDashboardsRequest listDashboardsRequest) Returns a list of all dashboards in your account.default ListDashboardsIterablelistDashboardsPaginator(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) This is a variant oflistDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)operation.default ListDashboardsIterablelistDashboardsPaginator(ListDashboardsRequest listDashboardsRequest) This is a variant oflistDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)operation.default ListScheduledReportsResponselistScheduledReports(Consumer<ListScheduledReportsRequest.Builder> listScheduledReportsRequest) Returns a list of scheduled reports in your account.default ListScheduledReportsResponselistScheduledReports(ListScheduledReportsRequest listScheduledReportsRequest) Returns a list of scheduled reports in your account.default ListScheduledReportsIterablelistScheduledReportsPaginator(Consumer<ListScheduledReportsRequest.Builder> listScheduledReportsRequest) This is a variant oflistScheduledReports(software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsRequest)operation.default ListScheduledReportsIterablelistScheduledReportsPaginator(ListScheduledReportsRequest listScheduledReportsRequest) This is a variant oflistScheduledReports(software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsRequest)operation.default ListTagsForResourceResponselistTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) Returns a list of all tags associated with a specified dashboard resource.default ListTagsForResourceResponselistTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) Returns a list of all tags associated with a specified dashboard resource.The SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfigurationstatic ServiceMetadatadefault TagResourceResponsetagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) Adds or updates tags for a specified dashboard resource.default TagResourceResponsetagResource(TagResourceRequest tagResourceRequest) Adds or updates tags for a specified dashboard resource.default UntagResourceResponseuntagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) Removes specified tags from a dashboard resource.default UntagResourceResponseuntagResource(UntagResourceRequest untagResourceRequest) Removes specified tags from a dashboard resource.default UpdateDashboardResponseupdateDashboard(Consumer<UpdateDashboardRequest.Builder> updateDashboardRequest) Updates an existing dashboard's properties, including its name, description, and widget configurations.default UpdateDashboardResponseupdateDashboard(UpdateDashboardRequest updateDashboardRequest) Updates an existing dashboard's properties, including its name, description, and widget configurations.default UpdateScheduledReportResponseupdateScheduledReport(Consumer<UpdateScheduledReportRequest.Builder> updateScheduledReportRequest) Updates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings.default UpdateScheduledReportResponseupdateScheduledReport(UpdateScheduledReportRequest updateScheduledReportRequest) Updates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings.Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
closeMethods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
Field Details
-
SERVICE_NAME
- See Also:
-
SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
-
-
Method Details
-
createDashboard
default CreateDashboardResponse createDashboard(CreateDashboardRequest createDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BcmDashboardsException Creates a new dashboard that can contain multiple widgets displaying cost and usage data. You can add custom widgets or use predefined widgets, arranging them in your preferred layout.
- Parameters:
createDashboardRequest-- Returns:
- Result of the CreateDashboard operation returned by the service.
- See Also:
-
createDashboard
default CreateDashboardResponse createDashboard(Consumer<CreateDashboardRequest.Builder> createDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BcmDashboardsException Creates a new dashboard that can contain multiple widgets displaying cost and usage data. You can add custom widgets or use predefined widgets, arranging them in your preferred layout.
This is a convenience which creates an instance of the
CreateDashboardRequest.Builderavoiding the need to create one manually viaCreateDashboardRequest.builder()- Parameters:
createDashboardRequest- AConsumerthat will call methods onCreateDashboardRequest.Builderto create a request.- Returns:
- Result of the CreateDashboard operation returned by the service.
- See Also:
-
createScheduledReport
default CreateScheduledReportResponse createScheduledReport(CreateScheduledReportRequest createScheduledReportRequest) throws ThrottlingException, ConflictException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BcmDashboardsException Creates a new scheduled report for a dashboard. A scheduled report automatically generates and delivers dashboard snapshots on a recurring schedule. Reports are delivered within 15 minutes of the scheduled delivery time.
- Parameters:
createScheduledReportRequest-- Returns:
- Result of the CreateScheduledReport operation returned by the service.
- See Also:
-
createScheduledReport
default CreateScheduledReportResponse createScheduledReport(Consumer<CreateScheduledReportRequest.Builder> createScheduledReportRequest) throws ThrottlingException, ConflictException, AccessDeniedException, InternalServerException, ValidationException, ServiceQuotaExceededException, AwsServiceException, SdkClientException, BcmDashboardsException Creates a new scheduled report for a dashboard. A scheduled report automatically generates and delivers dashboard snapshots on a recurring schedule. Reports are delivered within 15 minutes of the scheduled delivery time.
This is a convenience which creates an instance of the
CreateScheduledReportRequest.Builderavoiding the need to create one manually viaCreateScheduledReportRequest.builder()- Parameters:
createScheduledReportRequest- AConsumerthat will call methods onCreateScheduledReportRequest.Builderto create a request.- Returns:
- Result of the CreateScheduledReport operation returned by the service.
- See Also:
-
deleteDashboard
default DeleteDashboardResponse deleteDashboard(DeleteDashboardRequest deleteDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException Deletes a specified dashboard. This action cannot be undone.
- Parameters:
deleteDashboardRequest-- Returns:
- Result of the DeleteDashboard operation returned by the service.
- See Also:
-
deleteDashboard
default DeleteDashboardResponse deleteDashboard(Consumer<DeleteDashboardRequest.Builder> deleteDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException Deletes a specified dashboard. This action cannot be undone.
This is a convenience which creates an instance of the
DeleteDashboardRequest.Builderavoiding the need to create one manually viaDeleteDashboardRequest.builder()- Parameters:
deleteDashboardRequest- AConsumerthat will call methods onDeleteDashboardRequest.Builderto create a request.- Returns:
- Result of the DeleteDashboard operation returned by the service.
- See Also:
-
deleteScheduledReport
default DeleteScheduledReportResponse deleteScheduledReport(DeleteScheduledReportRequest deleteScheduledReportRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Deletes a specified scheduled report. This is an irreversible operation.
- Parameters:
deleteScheduledReportRequest-- Returns:
- Result of the DeleteScheduledReport operation returned by the service.
- See Also:
-
deleteScheduledReport
default DeleteScheduledReportResponse deleteScheduledReport(Consumer<DeleteScheduledReportRequest.Builder> deleteScheduledReportRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Deletes a specified scheduled report. This is an irreversible operation.
This is a convenience which creates an instance of the
DeleteScheduledReportRequest.Builderavoiding the need to create one manually viaDeleteScheduledReportRequest.builder()- Parameters:
deleteScheduledReportRequest- AConsumerthat will call methods onDeleteScheduledReportRequest.Builderto create a request.- Returns:
- Result of the DeleteScheduledReport operation returned by the service.
- See Also:
-
executeScheduledReport
default ExecuteScheduledReportResponse executeScheduledReport(ExecuteScheduledReportRequest executeScheduledReportRequest) throws ThrottlingException, ConflictException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Triggers an immediate execution of a scheduled report, outside of its regular schedule. The scheduled report must be in
ENABLEDstate. Calling this operation on aDISABLEDscheduled report returns aValidationException.If a
clientTokenis provided, the service uses it for idempotency. Requests with the same client token will not trigger a new execution within the same minute.- Parameters:
executeScheduledReportRequest-- Returns:
- Result of the ExecuteScheduledReport operation returned by the service.
- See Also:
-
executeScheduledReport
default ExecuteScheduledReportResponse executeScheduledReport(Consumer<ExecuteScheduledReportRequest.Builder> executeScheduledReportRequest) throws ThrottlingException, ConflictException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Triggers an immediate execution of a scheduled report, outside of its regular schedule. The scheduled report must be in
ENABLEDstate. Calling this operation on aDISABLEDscheduled report returns aValidationException.If a
clientTokenis provided, the service uses it for idempotency. Requests with the same client token will not trigger a new execution within the same minute.
This is a convenience which creates an instance of the
ExecuteScheduledReportRequest.Builderavoiding the need to create one manually viaExecuteScheduledReportRequest.builder()- Parameters:
executeScheduledReportRequest- AConsumerthat will call methods onExecuteScheduledReportRequest.Builderto create a request.- Returns:
- Result of the ExecuteScheduledReport operation returned by the service.
- See Also:
-
getDashboard
default GetDashboardResponse getDashboard(GetDashboardRequest getDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.
- Parameters:
getDashboardRequest-- Returns:
- Result of the GetDashboard operation returned by the service.
- See Also:
-
getDashboard
default GetDashboardResponse getDashboard(Consumer<GetDashboardRequest.Builder> getDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Retrieves the configuration and metadata of a specified dashboard, including its widgets and layout settings.
This is a convenience which creates an instance of the
GetDashboardRequest.Builderavoiding the need to create one manually viaGetDashboardRequest.builder()- Parameters:
getDashboardRequest- AConsumerthat will call methods onGetDashboardRequest.Builderto create a request.- Returns:
- Result of the GetDashboard operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.
- Parameters:
getResourcePolicyRequest-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Retrieves the resource-based policy attached to a dashboard, showing sharing configurations and permissions.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- See Also:
-
getScheduledReport
default GetScheduledReportResponse getScheduledReport(GetScheduledReportRequest getScheduledReportRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Retrieves the configuration and metadata of a specified scheduled report.
- Parameters:
getScheduledReportRequest-- Returns:
- Result of the GetScheduledReport operation returned by the service.
- See Also:
-
getScheduledReport
default GetScheduledReportResponse getScheduledReport(Consumer<GetScheduledReportRequest.Builder> getScheduledReportRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Retrieves the configuration and metadata of a specified scheduled report.
This is a convenience which creates an instance of the
GetScheduledReportRequest.Builderavoiding the need to create one manually viaGetScheduledReportRequest.builder()- Parameters:
getScheduledReportRequest- AConsumerthat will call methods onGetScheduledReportRequest.Builderto create a request.- Returns:
- Result of the GetScheduledReport operation returned by the service.
- See Also:
-
listDashboards
default ListDashboardsResponse listDashboards(ListDashboardsRequest listDashboardsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException Returns a list of all dashboards in your account.
- Parameters:
listDashboardsRequest-- Returns:
- Result of the ListDashboards operation returned by the service.
- See Also:
-
listDashboards
default ListDashboardsResponse listDashboards(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException Returns a list of all dashboards in your account.
This is a convenience which creates an instance of the
ListDashboardsRequest.Builderavoiding the need to create one manually viaListDashboardsRequest.builder()- Parameters:
listDashboardsRequest- AConsumerthat will call methods onListDashboardsRequest.Builderto create a request.- Returns:
- Result of the ListDashboards operation returned by the service.
- See Also:
-
listDashboardsPaginator
default ListDashboardsIterable listDashboardsPaginator(ListDashboardsRequest listDashboardsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException This is a variant of
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsIterable responses = client.listDashboardsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsIterable responses = client .listDashboardsPaginator(request); for (software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsIterable responses = client.listDashboardsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)operation.- Parameters:
listDashboardsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listDashboardsPaginator
default ListDashboardsIterable listDashboardsPaginator(Consumer<ListDashboardsRequest.Builder> listDashboardsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException This is a variant of
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsIterable responses = client.listDashboardsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsIterable responses = client .listDashboardsPaginator(request); for (software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bcmdashboards.paginators.ListDashboardsIterable responses = client.listDashboardsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDashboards(software.amazon.awssdk.services.bcmdashboards.model.ListDashboardsRequest)operation.
This is a convenience which creates an instance of the
ListDashboardsRequest.Builderavoiding the need to create one manually viaListDashboardsRequest.builder()- Parameters:
listDashboardsRequest- AConsumerthat will call methods onListDashboardsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listScheduledReports
default ListScheduledReportsResponse listScheduledReports(ListScheduledReportsRequest listScheduledReportsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException Returns a list of scheduled reports in your account.
- Parameters:
listScheduledReportsRequest-- Returns:
- Result of the ListScheduledReports operation returned by the service.
- See Also:
-
listScheduledReports
default ListScheduledReportsResponse listScheduledReports(Consumer<ListScheduledReportsRequest.Builder> listScheduledReportsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException Returns a list of scheduled reports in your account.
This is a convenience which creates an instance of the
ListScheduledReportsRequest.Builderavoiding the need to create one manually viaListScheduledReportsRequest.builder()- Parameters:
listScheduledReportsRequest- AConsumerthat will call methods onListScheduledReportsRequest.Builderto create a request.- Returns:
- Result of the ListScheduledReports operation returned by the service.
- See Also:
-
listScheduledReportsPaginator
default ListScheduledReportsIterable listScheduledReportsPaginator(ListScheduledReportsRequest listScheduledReportsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException This is a variant of
listScheduledReports(software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bcmdashboards.paginators.ListScheduledReportsIterable responses = client.listScheduledReportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bcmdashboards.paginators.ListScheduledReportsIterable responses = client .listScheduledReportsPaginator(request); for (software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bcmdashboards.paginators.ListScheduledReportsIterable responses = client.listScheduledReportsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScheduledReports(software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsRequest)operation.- Parameters:
listScheduledReportsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listScheduledReportsPaginator
default ListScheduledReportsIterable listScheduledReportsPaginator(Consumer<ListScheduledReportsRequest.Builder> listScheduledReportsRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, AwsServiceException, SdkClientException, BcmDashboardsException This is a variant of
listScheduledReports(software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.bcmdashboards.paginators.ListScheduledReportsIterable responses = client.listScheduledReportsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.bcmdashboards.paginators.ListScheduledReportsIterable responses = client .listScheduledReportsPaginator(request); for (software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.bcmdashboards.paginators.ListScheduledReportsIterable responses = client.listScheduledReportsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of maxResults won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listScheduledReports(software.amazon.awssdk.services.bcmdashboards.model.ListScheduledReportsRequest)operation.
This is a convenience which creates an instance of the
ListScheduledReportsRequest.Builderavoiding the need to create one manually viaListScheduledReportsRequest.builder()- Parameters:
listScheduledReportsRequest- AConsumerthat will call methods onListScheduledReportsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws ThrottlingException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Returns a list of all tags associated with a specified dashboard resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws ThrottlingException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Returns a list of all tags associated with a specified dashboard resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws ThrottlingException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Adds or updates tags for a specified dashboard resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws ThrottlingException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Adds or updates tags for a specified dashboard resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws ThrottlingException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Removes specified tags from a dashboard resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws ThrottlingException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Removes specified tags from a dashboard resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- See Also:
-
updateDashboard
default UpdateDashboardResponse updateDashboard(UpdateDashboardRequest updateDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Updates an existing dashboard's properties, including its name, description, and widget configurations.
- Parameters:
updateDashboardRequest-- Returns:
- Result of the UpdateDashboard operation returned by the service.
- See Also:
-
updateDashboard
default UpdateDashboardResponse updateDashboard(Consumer<UpdateDashboardRequest.Builder> updateDashboardRequest) throws ThrottlingException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Updates an existing dashboard's properties, including its name, description, and widget configurations.
This is a convenience which creates an instance of the
UpdateDashboardRequest.Builderavoiding the need to create one manually viaUpdateDashboardRequest.builder()- Parameters:
updateDashboardRequest- AConsumerthat will call methods onUpdateDashboardRequest.Builderto create a request.- Returns:
- Result of the UpdateDashboard operation returned by the service.
- See Also:
-
updateScheduledReport
default UpdateScheduledReportResponse updateScheduledReport(UpdateScheduledReportRequest updateScheduledReportRequest) throws ThrottlingException, ConflictException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Updates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings. Only the parameters included in the request are updated; all other properties remain unchanged.
- Parameters:
updateScheduledReportRequest-- Returns:
- Result of the UpdateScheduledReport operation returned by the service.
- See Also:
-
updateScheduledReport
default UpdateScheduledReportResponse updateScheduledReport(Consumer<UpdateScheduledReportRequest.Builder> updateScheduledReportRequest) throws ThrottlingException, ConflictException, AccessDeniedException, InternalServerException, ValidationException, ResourceNotFoundException, AwsServiceException, SdkClientException, BcmDashboardsException Updates an existing scheduled report's properties, including its name, description, schedule configuration, and widget settings. Only the parameters included in the request are updated; all other properties remain unchanged.
This is a convenience which creates an instance of the
UpdateScheduledReportRequest.Builderavoiding the need to create one manually viaUpdateScheduledReportRequest.builder()- Parameters:
updateScheduledReportRequest- AConsumerthat will call methods onUpdateScheduledReportRequest.Builderto create a request.- Returns:
- Result of the UpdateScheduledReport operation returned by the service.
- See Also:
-
create
Create aBcmDashboardsClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider. -
builder
Create a builder that can be used to configure and create aBcmDashboardsClient. -
serviceMetadata
-
serviceClientConfiguration
Description copied from interface:SdkClientThe SDK service client configuration exposes client settings to the user, e.g., ClientOverrideConfiguration- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient- Returns:
- SdkServiceClientConfiguration
-