Interface DescribeImageReferencesRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<DescribeImageReferencesRequest.Builder,DescribeImageReferencesRequest>,Ec2Request.Builder,SdkBuilder<DescribeImageReferencesRequest.Builder,DescribeImageReferencesRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- DescribeImageReferencesRequest
@Mutable @NotThreadSafe public static interface DescribeImageReferencesRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<DescribeImageReferencesRequest.Builder,DescribeImageReferencesRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description DescribeImageReferencesRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the action, without actually making the request, and provides an error response.DescribeImageReferencesRequest.BuilderimageIds(String... imageIds)The IDs of the images to check for resource references.DescribeImageReferencesRequest.BuilderimageIds(Collection<String> imageIds)The IDs of the images to check for resource references.DescribeImageReferencesRequest.BuilderincludeAllResourceTypes(Boolean includeAllResourceTypes)Specifies whether to check all supported Amazon Web Services resource types for image references.DescribeImageReferencesRequest.BuildermaxResults(Integer maxResults)The maximum number of items to return for this request.DescribeImageReferencesRequest.BuildernextToken(String nextToken)The token returned from a previous paginated request.DescribeImageReferencesRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)DescribeImageReferencesRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)DescribeImageReferencesRequest.BuilderresourceTypes(Collection<ResourceTypeRequest> resourceTypes)The Amazon Web Services resource types to check for image references.DescribeImageReferencesRequest.BuilderresourceTypes(Consumer<ResourceTypeRequest.Builder>... resourceTypes)The Amazon Web Services resource types to check for image references.DescribeImageReferencesRequest.BuilderresourceTypes(ResourceTypeRequest... resourceTypes)The Amazon Web Services resource types to check for image references.-
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
-
imageIds
DescribeImageReferencesRequest.Builder imageIds(Collection<String> imageIds)
The IDs of the images to check for resource references.
- Parameters:
imageIds- The IDs of the images to check for resource references.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageIds
DescribeImageReferencesRequest.Builder imageIds(String... imageIds)
The IDs of the images to check for resource references.
- Parameters:
imageIds- The IDs of the images to check for resource references.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includeAllResourceTypes
DescribeImageReferencesRequest.Builder includeAllResourceTypes(Boolean includeAllResourceTypes)
Specifies whether to check all supported Amazon Web Services resource types for image references. When specified, default values are applied for
ResourceTypeOptions. For the default values, see How AMI reference checks work in the Amazon EC2 User Guide. If you also specifyResourceTypeswithResourceTypeOptions, your specified values override the default values.Supported resource types:
ec2:Instance|ec2:LaunchTemplate|ssm:Parameter|imagebuilder:ImageRecipe|imagebuilder:ContainerRecipeEither
IncludeAllResourceTypesorResourceTypesmust be specified.- Parameters:
includeAllResourceTypes- Specifies whether to check all supported Amazon Web Services resource types for image references. When specified, default values are applied forResourceTypeOptions. For the default values, see How AMI reference checks work in the Amazon EC2 User Guide. If you also specifyResourceTypeswithResourceTypeOptions, your specified values override the default values.Supported resource types:
ec2:Instance|ec2:LaunchTemplate|ssm:Parameter|imagebuilder:ImageRecipe|imagebuilder:ContainerRecipeEither
IncludeAllResourceTypesorResourceTypesmust be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
DescribeImageReferencesRequest.Builder resourceTypes(Collection<ResourceTypeRequest> resourceTypes)
The Amazon Web Services resource types to check for image references.
Either
IncludeAllResourceTypesorResourceTypesmust be specified.- Parameters:
resourceTypes- The Amazon Web Services resource types to check for image references.Either
IncludeAllResourceTypesorResourceTypesmust be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
DescribeImageReferencesRequest.Builder resourceTypes(ResourceTypeRequest... resourceTypes)
The Amazon Web Services resource types to check for image references.
Either
IncludeAllResourceTypesorResourceTypesmust be specified.- Parameters:
resourceTypes- The Amazon Web Services resource types to check for image references.Either
IncludeAllResourceTypesorResourceTypesmust be specified.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
resourceTypes
DescribeImageReferencesRequest.Builder resourceTypes(Consumer<ResourceTypeRequest.Builder>... resourceTypes)
The Amazon Web Services resource types to check for image references.
Either
This is a convenience method that creates an instance of theIncludeAllResourceTypesorResourceTypesmust be specified.ResourceTypeRequest.Builderavoiding the need to create one manually viaResourceTypeRequest.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 onResourceTypeRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
#resourceTypes(java.util.Collection)
-
nextToken
DescribeImageReferencesRequest.Builder nextToken(String nextToken)
The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.
- Parameters:
nextToken- The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
dryRun
DescribeImageReferencesRequest.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.
-
maxResults
DescribeImageReferencesRequest.Builder maxResults(Integer maxResults)
The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.
- Parameters:
maxResults- The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. For more information, see Pagination.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
overrideConfiguration
DescribeImageReferencesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
DescribeImageReferencesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-