Interface CreateImageUsageReportRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<CreateImageUsageReportRequest.Builder,
,CreateImageUsageReportRequest> Ec2Request.Builder
,SdkBuilder<CreateImageUsageReportRequest.Builder,
,CreateImageUsageReportRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
CreateImageUsageReportRequest
-
Method Summary
Modifier and TypeMethodDescriptionaccountIds
(String... accountIds) The Amazon Web Services account IDs to include in the report.accountIds
(Collection<String> accountIds) The Amazon Web Services account IDs to include in the report.clientToken
(String clientToken) A unique, case-sensitive identifier that you provide to ensure idempotency of the request.Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.The ID of the image to report on.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.resourceTypes
(Collection<ImageUsageResourceTypeRequest> resourceTypes) The resource types to include in the report.resourceTypes
(Consumer<ImageUsageResourceTypeRequest.Builder>... resourceTypes) The resource types to include in the report.resourceTypes
(ImageUsageResourceTypeRequest... resourceTypes) The resource types to include in the report.tagSpecifications
(Collection<TagSpecification> tagSpecifications) The tags to apply to the report on creation.tagSpecifications
(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the report on creation.tagSpecifications
(TagSpecification... tagSpecifications) The tags to apply to the report on creation.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
imageId
The ID of the image to report on.
- Parameters:
imageId
- The ID of the image to report on.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Parameters:
dryRun
- Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
CreateImageUsageReportRequest.Builder resourceTypes(Collection<ImageUsageResourceTypeRequest> resourceTypes) The resource types to include in the report.
- Parameters:
resourceTypes
- The resource types to include in the report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
The resource types to include in the report.
- Parameters:
resourceTypes
- The resource types to include in the report.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
CreateImageUsageReportRequest.Builder resourceTypes(Consumer<ImageUsageResourceTypeRequest.Builder>... resourceTypes) The resource types to include in the report.
This is a convenience method that creates an instance of theImageUsageResourceTypeRequest.Builder
avoiding the need to create one manually viaImageUsageResourceTypeRequest.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toresourceTypes(List<ImageUsageResourceTypeRequest>)
.- Parameters:
resourceTypes
- a consumer that will call methods onImageUsageResourceTypeRequest.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
accountIds
The Amazon Web Services account IDs to include in the report. To include all accounts, omit this parameter.
- Parameters:
accountIds
- The Amazon Web Services account IDs to include in the report. To include all accounts, omit this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accountIds
The Amazon Web Services account IDs to include in the report. To include all accounts, omit this parameter.
- Parameters:
accountIds
- The Amazon Web Services account IDs to include in the report. To include all accounts, omit this parameter.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientToken
A unique, case-sensitive identifier that you provide to ensure idempotency of the request.
- Parameters:
clientToken
- A unique, case-sensitive identifier that you provide to ensure idempotency of the request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateImageUsageReportRequest.Builder tagSpecifications(Collection<TagSpecification> tagSpecifications) The tags to apply to the report on creation. The
ResourceType
must be set toimage-usage-report
; any other value will cause the report creation to fail.To tag a report after it has been created, see CreateTags.
- Parameters:
tagSpecifications
- The tags to apply to the report on creation. TheResourceType
must be set toimage-usage-report
; any other value will cause the report creation to fail.To tag a report after it has been created, see CreateTags.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
The tags to apply to the report on creation. The
ResourceType
must be set toimage-usage-report
; any other value will cause the report creation to fail.To tag a report after it has been created, see CreateTags.
- Parameters:
tagSpecifications
- The tags to apply to the report on creation. TheResourceType
must be set toimage-usage-report
; any other value will cause the report creation to fail.To tag a report after it has been created, see CreateTags.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tagSpecifications
CreateImageUsageReportRequest.Builder tagSpecifications(Consumer<TagSpecification.Builder>... tagSpecifications) The tags to apply to the report on creation. The
ResourceType
must be set toimage-usage-report
; any other value will cause the report creation to fail.To tag a report after it has been created, see CreateTags.
This is a convenience method that creates an instance of theTagSpecification.Builder
avoiding the need to create one manually viaTagSpecification.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed totagSpecifications(List<TagSpecification>)
.- Parameters:
tagSpecifications
- a consumer that will call methods onTagSpecification.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
CreateImageUsageReportRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateImageUsageReportRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-