/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ECR { namespace Model { class GetLifecyclePolicyResult { public: AWS_ECR_API GetLifecyclePolicyResult(); AWS_ECR_API GetLifecyclePolicyResult(const Aws::AmazonWebServiceResult& result); AWS_ECR_API GetLifecyclePolicyResult& 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 GetLifecyclePolicyResult& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;} /** *

The registry ID associated with the request.

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

The registry ID associated with the request.

*/ inline GetLifecyclePolicyResult& 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 GetLifecyclePolicyResult& WithRepositoryName(const Aws::String& value) { SetRepositoryName(value); return *this;} /** *

The repository name associated with the request.

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

The repository name associated with the request.

*/ inline GetLifecyclePolicyResult& 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 GetLifecyclePolicyResult& WithLifecyclePolicyText(const Aws::String& value) { SetLifecyclePolicyText(value); return *this;} /** *

The JSON lifecycle policy text.

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

The JSON lifecycle policy text.

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

The time stamp of the last time that the lifecycle policy was run.

*/ inline const Aws::Utils::DateTime& GetLastEvaluatedAt() const{ return m_lastEvaluatedAt; } /** *

The time stamp of the last time that the lifecycle policy was run.

*/ inline void SetLastEvaluatedAt(const Aws::Utils::DateTime& value) { m_lastEvaluatedAt = value; } /** *

The time stamp of the last time that the lifecycle policy was run.

*/ inline void SetLastEvaluatedAt(Aws::Utils::DateTime&& value) { m_lastEvaluatedAt = std::move(value); } /** *

The time stamp of the last time that the lifecycle policy was run.

*/ inline GetLifecyclePolicyResult& WithLastEvaluatedAt(const Aws::Utils::DateTime& value) { SetLastEvaluatedAt(value); return *this;} /** *

The time stamp of the last time that the lifecycle policy was run.

*/ inline GetLifecyclePolicyResult& WithLastEvaluatedAt(Aws::Utils::DateTime&& value) { SetLastEvaluatedAt(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 GetLifecyclePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetLifecyclePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetLifecyclePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_registryId; Aws::String m_repositoryName; Aws::String m_lifecyclePolicyText; Aws::Utils::DateTime m_lastEvaluatedAt; Aws::String m_requestId; }; } // namespace Model } // namespace ECR } // namespace Aws