/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECR { namespace Model { class GetLifecyclePolicyPreviewResult { public: AWS_ECR_API GetLifecyclePolicyPreviewResult(); AWS_ECR_API GetLifecyclePolicyPreviewResult(const Aws::AmazonWebServiceResult& result); AWS_ECR_API GetLifecyclePolicyPreviewResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The registry ID associated with the request.

*/ inline const Aws::String& GetRegistryId() const{ return m_registryId; } /** *

The registry ID associated with the request.

*/ inline void SetRegistryId(const Aws::String& value) { m_registryId = value; } /** *

The registry ID associated with the request.

*/ inline void SetRegistryId(Aws::String&& value) { m_registryId = std::move(value); } /** *

The registry ID associated with the request.

*/ inline void SetRegistryId(const char* value) { m_registryId.assign(value); } /** *

The registry ID associated with the request.

*/ inline GetLifecyclePolicyPreviewResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;} /** *

The registry ID associated with the request.

*/ inline GetLifecyclePolicyPreviewResult& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;} /** *

The registry ID associated with the request.

*/ inline GetLifecyclePolicyPreviewResult& WithRegistryId(const char* value) { SetRegistryId(value); return *this;} /** *

The repository name associated with the request.

*/ inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; } /** *

The repository name associated with the request.

*/ inline void SetRepositoryName(const Aws::String& value) { m_repositoryName = value; } /** *

The repository name associated with the request.

*/ inline void SetRepositoryName(Aws::String&& value) { m_repositoryName = std::move(value); } /** *

The repository name associated with the request.

*/ inline void SetRepositoryName(const char* value) { m_repositoryName.assign(value); } /** *

The repository name associated with the request.

*/ inline GetLifecyclePolicyPreviewResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The repository name associated with the request.

*/ inline GetLifecyclePolicyPreviewResult& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;} /** *

The repository name associated with the request.

*/ inline GetLifecyclePolicyPreviewResult& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;} /** *

The JSON lifecycle policy text.

*/ inline const Aws::String& GetLifecyclePolicyText() const{ return m_lifecyclePolicyText; } /** *

The JSON lifecycle policy text.

*/ inline void SetLifecyclePolicyText(const Aws::String& value) { m_lifecyclePolicyText = value; } /** *

The JSON lifecycle policy text.

*/ inline void SetLifecyclePolicyText(Aws::String&& value) { m_lifecyclePolicyText = std::move(value); } /** *

The JSON lifecycle policy text.

*/ inline void SetLifecyclePolicyText(const char* value) { m_lifecyclePolicyText.assign(value); } /** *

The JSON lifecycle policy text.

*/ inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;} /** *

The JSON lifecycle policy text.

*/ inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(Aws::String&& value) { SetLifecyclePolicyText(std::move(value)); return *this;} /** *

The JSON lifecycle policy text.

*/ inline GetLifecyclePolicyPreviewResult& WithLifecyclePolicyText(const char* value) { SetLifecyclePolicyText(value); return *this;} /** *

The status of the lifecycle policy preview request.

*/ inline const LifecyclePolicyPreviewStatus& GetStatus() const{ return m_status; } /** *

The status of the lifecycle policy preview request.

*/ inline void SetStatus(const LifecyclePolicyPreviewStatus& value) { m_status = value; } /** *

The status of the lifecycle policy preview request.

*/ inline void SetStatus(LifecyclePolicyPreviewStatus&& value) { m_status = std::move(value); } /** *

The status of the lifecycle policy preview request.

*/ inline GetLifecyclePolicyPreviewResult& WithStatus(const LifecyclePolicyPreviewStatus& value) { SetStatus(value); return *this;} /** *

The status of the lifecycle policy preview request.

*/ inline GetLifecyclePolicyPreviewResult& WithStatus(LifecyclePolicyPreviewStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

The nextToken value to include in a future * GetLifecyclePolicyPreview request. When the results of a * GetLifecyclePolicyPreview request exceed maxResults, * this value can be used to retrieve the next page of results. This value is * null when there are no more results to return.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

The nextToken value to include in a future * GetLifecyclePolicyPreview request. When the results of a * GetLifecyclePolicyPreview request exceed maxResults, * this value can be used to retrieve the next page of results. This value is * null when there are no more results to return.

*/ inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } /** *

The nextToken value to include in a future * GetLifecyclePolicyPreview request. When the results of a * GetLifecyclePolicyPreview request exceed maxResults, * this value can be used to retrieve the next page of results. This value is * null when there are no more results to return.

*/ inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } /** *

The nextToken value to include in a future * GetLifecyclePolicyPreview request. When the results of a * GetLifecyclePolicyPreview request exceed maxResults, * this value can be used to retrieve the next page of results. This value is * null when there are no more results to return.

*/ inline void SetNextToken(const char* value) { m_nextToken.assign(value); } /** *

The nextToken value to include in a future * GetLifecyclePolicyPreview request. When the results of a * GetLifecyclePolicyPreview request exceed maxResults, * this value can be used to retrieve the next page of results. This value is * null when there are no more results to return.

*/ inline GetLifecyclePolicyPreviewResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

The nextToken value to include in a future * GetLifecyclePolicyPreview request. When the results of a * GetLifecyclePolicyPreview request exceed maxResults, * this value can be used to retrieve the next page of results. This value is * null when there are no more results to return.

*/ inline GetLifecyclePolicyPreviewResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

The nextToken value to include in a future * GetLifecyclePolicyPreview request. When the results of a * GetLifecyclePolicyPreview request exceed maxResults, * this value can be used to retrieve the next page of results. This value is * null when there are no more results to return.

*/ inline GetLifecyclePolicyPreviewResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

The results of the lifecycle policy preview request.

*/ inline const Aws::Vector& GetPreviewResults() const{ return m_previewResults; } /** *

The results of the lifecycle policy preview request.

*/ inline void SetPreviewResults(const Aws::Vector& value) { m_previewResults = value; } /** *

The results of the lifecycle policy preview request.

*/ inline void SetPreviewResults(Aws::Vector&& value) { m_previewResults = std::move(value); } /** *

The results of the lifecycle policy preview request.

*/ inline GetLifecyclePolicyPreviewResult& WithPreviewResults(const Aws::Vector& value) { SetPreviewResults(value); return *this;} /** *

The results of the lifecycle policy preview request.

*/ inline GetLifecyclePolicyPreviewResult& WithPreviewResults(Aws::Vector&& value) { SetPreviewResults(std::move(value)); return *this;} /** *

The results of the lifecycle policy preview request.

*/ inline GetLifecyclePolicyPreviewResult& AddPreviewResults(const LifecyclePolicyPreviewResult& value) { m_previewResults.push_back(value); return *this; } /** *

The results of the lifecycle policy preview request.

*/ inline GetLifecyclePolicyPreviewResult& AddPreviewResults(LifecyclePolicyPreviewResult&& value) { m_previewResults.push_back(std::move(value)); return *this; } /** *

The list of images that is returned as a result of the action.

*/ inline const LifecyclePolicyPreviewSummary& GetSummary() const{ return m_summary; } /** *

The list of images that is returned as a result of the action.

*/ inline void SetSummary(const LifecyclePolicyPreviewSummary& value) { m_summary = value; } /** *

The list of images that is returned as a result of the action.

*/ inline void SetSummary(LifecyclePolicyPreviewSummary&& value) { m_summary = std::move(value); } /** *

The list of images that is returned as a result of the action.

*/ inline GetLifecyclePolicyPreviewResult& WithSummary(const LifecyclePolicyPreviewSummary& value) { SetSummary(value); return *this;} /** *

The list of images that is returned as a result of the action.

*/ inline GetLifecyclePolicyPreviewResult& WithSummary(LifecyclePolicyPreviewSummary&& value) { SetSummary(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline GetLifecyclePolicyPreviewResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetLifecyclePolicyPreviewResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetLifecyclePolicyPreviewResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_registryId; Aws::String m_repositoryName; Aws::String m_lifecyclePolicyText; LifecyclePolicyPreviewStatus m_status; Aws::String m_nextToken; Aws::Vector m_previewResults; LifecyclePolicyPreviewSummary m_summary; Aws::String m_requestId; }; } // namespace Model } // namespace ECR } // namespace Aws