pub struct GetLifecyclePolicyPreview { /* private fields */ }
Expand description
Fluent builder constructing a request to GetLifecyclePolicyPreview
.
Retrieves the results of the lifecycle policy preview request for the specified repository.
Implementations
sourceimpl GetLifecyclePolicyPreview
impl GetLifecyclePolicyPreview
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<GetLifecyclePolicyPreview, AwsResponseRetryClassifier>, SdkError<GetLifecyclePolicyPreviewError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<GetLifecyclePolicyPreview, AwsResponseRetryClassifier>, SdkError<GetLifecyclePolicyPreviewError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<GetLifecyclePolicyPreviewOutput, SdkError<GetLifecyclePolicyPreviewError>>
pub async fn send(
self
) -> Result<GetLifecyclePolicyPreviewOutput, SdkError<GetLifecyclePolicyPreviewError>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn into_paginator(self) -> GetLifecyclePolicyPreviewPaginator
pub fn into_paginator(self) -> GetLifecyclePolicyPreviewPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a Stream
.
sourcepub fn registry_id(self, input: impl Into<String>) -> Self
pub fn registry_id(self, input: impl Into<String>) -> Self
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.
sourcepub fn set_registry_id(self, input: Option<String>) -> Self
pub fn set_registry_id(self, input: Option<String>) -> Self
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.
sourcepub fn repository_name(self, input: impl Into<String>) -> Self
pub fn repository_name(self, input: impl Into<String>) -> Self
The name of the repository.
sourcepub fn set_repository_name(self, input: Option<String>) -> Self
pub fn set_repository_name(self, input: Option<String>) -> Self
The name of the repository.
sourcepub fn image_ids(self, input: ImageIdentifier) -> Self
pub fn image_ids(self, input: ImageIdentifier) -> Self
Appends an item to imageIds
.
To override the contents of this collection use set_image_ids
.
The list of imageIDs to be included.
sourcepub fn set_image_ids(self, input: Option<Vec<ImageIdentifier>>) -> Self
pub fn set_image_ids(self, input: Option<Vec<ImageIdentifier>>) -> Self
The list of imageIDs to be included.
sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
The nextToken
value returned from a previous paginated
GetLifecyclePolicyPreviewRequest
request where maxResults
was used and the
results exceeded the value of that parameter. Pagination continues from the end of the
previous results that returned the nextToken
value. This value is
null
when there are no more results to return. This option cannot be used when you specify images with imageIds
.
sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
The nextToken
value returned from a previous paginated
GetLifecyclePolicyPreviewRequest
request where maxResults
was used and the
results exceeded the value of that parameter. Pagination continues from the end of the
previous results that returned the nextToken
value. This value is
null
when there are no more results to return. This option cannot be used when you specify images with imageIds
.
sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
The maximum number of repository results returned by GetLifecyclePolicyPreviewRequest
in
paginated output. When this parameter is used, GetLifecyclePolicyPreviewRequest
only returns
maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be seen by sending
another GetLifecyclePolicyPreviewRequest
request with the returned nextToken
value. This value can be between 1 and 1000. If this
parameter is not used, then GetLifecyclePolicyPreviewRequest
returns up to
100 results and a nextToken
value, if
applicable. This option cannot be used when you specify images with imageIds
.
sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
The maximum number of repository results returned by GetLifecyclePolicyPreviewRequest
in
paginated output. When this parameter is used, GetLifecyclePolicyPreviewRequest
only returns
maxResults
results in a single page along with a nextToken
response element. The remaining results of the initial request can be seen by sending
another GetLifecyclePolicyPreviewRequest
request with the returned nextToken
value. This value can be between 1 and 1000. If this
parameter is not used, then GetLifecyclePolicyPreviewRequest
returns up to
100 results and a nextToken
value, if
applicable. This option cannot be used when you specify images with imageIds
.
sourcepub fn filter(self, input: LifecyclePolicyPreviewFilter) -> Self
pub fn filter(self, input: LifecyclePolicyPreviewFilter) -> Self
An optional parameter that filters results based on image tag status and all tags, if tagged.
sourcepub fn set_filter(self, input: Option<LifecyclePolicyPreviewFilter>) -> Self
pub fn set_filter(self, input: Option<LifecyclePolicyPreviewFilter>) -> Self
An optional parameter that filters results based on image tag status and all tags, if tagged.
Trait Implementations
sourceimpl Clone for GetLifecyclePolicyPreview
impl Clone for GetLifecyclePolicyPreview
sourcefn clone(&self) -> GetLifecyclePolicyPreview
fn clone(&self) -> GetLifecyclePolicyPreview
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more