Interface GetLifecyclePolicyPreviewRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<GetLifecyclePolicyPreviewRequest.Builder,
,GetLifecyclePolicyPreviewRequest> EcrRequest.Builder
,SdkBuilder<GetLifecyclePolicyPreviewRequest.Builder,
,GetLifecyclePolicyPreviewRequest> SdkPojo
,SdkRequest.Builder
- Enclosing class:
GetLifecyclePolicyPreviewRequest
-
Method Summary
Modifier and TypeMethodDescriptionAn optional parameter that filters results based on image tag status and all tags, if tagged.filter
(LifecyclePolicyPreviewFilter filter) An optional parameter that filters results based on image tag status and all tags, if tagged.imageIds
(Collection<ImageIdentifier> imageIds) The list of imageIDs to be included.imageIds
(Consumer<ImageIdentifier.Builder>... imageIds) The list of imageIDs to be included.imageIds
(ImageIdentifier... imageIds) The list of imageIDs to be included.maxResults
(Integer maxResults) The maximum number of repository results returned byGetLifecyclePolicyPreviewRequest
in paginated output.ThenextToken
value returned from a previous paginatedGetLifecyclePolicyPreviewRequest
request wheremaxResults
was used and the results exceeded the value of that parameter.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.registryId
(String registryId) The Amazon Web Services account ID associated with the registry that contains the repository.repositoryName
(String repositoryName) The name of the repository.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.ecr.model.EcrRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
Method Details
-
registryId
The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.
- Parameters:
registryId
- The Amazon Web Services account ID associated with the registry that contains the repository. If you do not specify a registry, the default registry is assumed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
repositoryName
The name of the repository.
- Parameters:
repositoryName
- The name of the repository.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageIds
The list of imageIDs to be included.
- Parameters:
imageIds
- The list of imageIDs to be included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageIds
The list of imageIDs to be included.
- Parameters:
imageIds
- The list of imageIDs to be included.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imageIds
The list of imageIDs to be included.
This is a convenience method that creates an instance of theImageIdentifier.Builder
avoiding the need to create one manually viaImageIdentifier.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toimageIds(List<ImageIdentifier>)
.- Parameters:
imageIds
- a consumer that will call methods onImageIdentifier.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The
nextToken
value returned from a previous paginatedGetLifecyclePolicyPreviewRequest
request wheremaxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value. This value isnull
when there are no more results to return. This option cannot be used when you specify images withimageIds
.- Parameters:
nextToken
- ThenextToken
value returned from a previous paginatedGetLifecyclePolicyPreviewRequest
request wheremaxResults
was used and the results exceeded the value of that parameter. Pagination continues from the end of the previous results that returned thenextToken
value. This value isnull
when there are no more results to return. This option cannot be used when you specify images withimageIds
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of repository results returned by
GetLifecyclePolicyPreviewRequest
in paginated output. When this parameter is used,GetLifecyclePolicyPreviewRequest
only returnsmaxResults
results in a single page along with anextToken
response element. The remaining results of the initial request can be seen by sending anotherGetLifecyclePolicyPreviewRequest
request with the returnednextToken
value. This value can be between 1 and 1000. If this parameter is not used, thenGetLifecyclePolicyPreviewRequest
returns up to 100 results and anextToken
value, if applicable. This option cannot be used when you specify images withimageIds
.- Parameters:
maxResults
- The maximum number of repository results returned byGetLifecyclePolicyPreviewRequest
in paginated output. When this parameter is used,GetLifecyclePolicyPreviewRequest
only returnsmaxResults
results in a single page along with anextToken
response element. The remaining results of the initial request can be seen by sending anotherGetLifecyclePolicyPreviewRequest
request with the returnednextToken
value. This value can be between 1 and 1000. If this parameter is not used, thenGetLifecyclePolicyPreviewRequest
returns up to 100 results and anextToken
value, if applicable. This option cannot be used when you specify images withimageIds
.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
An optional parameter that filters results based on image tag status and all tags, if tagged.
- Parameters:
filter
- An optional parameter that filters results based on image tag status and all tags, if tagged.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
default GetLifecyclePolicyPreviewRequest.Builder filter(Consumer<LifecyclePolicyPreviewFilter.Builder> filter) An optional parameter that filters results based on image tag status and all tags, if tagged.
This is a convenience method that creates an instance of theLifecyclePolicyPreviewFilter.Builder
avoiding the need to create one manually viaLifecyclePolicyPreviewFilter.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed tofilter(LifecyclePolicyPreviewFilter)
.- Parameters:
filter
- a consumer that will call methods onLifecyclePolicyPreviewFilter.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
GetLifecyclePolicyPreviewRequest.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
GetLifecyclePolicyPreviewRequest.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.
-