Interface CreateImageUsageReportRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateImageUsageReportRequest.Builder,CreateImageUsageReportRequest>,Ec2Request.Builder,SdkBuilder<CreateImageUsageReportRequest.Builder,CreateImageUsageReportRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- CreateImageUsageReportRequest
@Mutable @NotThreadSafe public static interface CreateImageUsageReportRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<CreateImageUsageReportRequest.Builder,CreateImageUsageReportRequest>
-
-
Method Summary
-
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 Detail
-
imageId
CreateImageUsageReportRequest.Builder imageId(String 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
CreateImageUsageReportRequest.Builder dryRun(Boolean 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
CreateImageUsageReportRequest.Builder resourceTypes(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
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.Builderavoiding the need to create one manually viaImageUsageResourceTypeRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#resourceTypes(List.) - 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:
#resourceTypes(java.util.Collection)
-
accountIds
CreateImageUsageReportRequest.Builder accountIds(Collection<String> 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
CreateImageUsageReportRequest.Builder accountIds(String... 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
CreateImageUsageReportRequest.Builder clientToken(String 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
ResourceTypemust 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. TheResourceTypemust 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(TagSpecification... tagSpecifications)
The tags to apply to the report on creation. The
ResourceTypemust 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. TheResourceTypemust 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
ResourceTypemust 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.Builderavoiding the need to create one manually viaTagSpecification.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed to#tagSpecifications(List.) - 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:
#tagSpecifications(java.util.Collection)
-
overrideConfiguration
CreateImageUsageReportRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
CreateImageUsageReportRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-