/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** *

Information about the lifecycle policy for the repository.

See * Also:

AWS * API Reference

*/ class AwsEcrRepositoryLifecyclePolicyDetails { public: AWS_SECURITYHUB_API AwsEcrRepositoryLifecyclePolicyDetails(); AWS_SECURITYHUB_API AwsEcrRepositoryLifecyclePolicyDetails(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEcrRepositoryLifecyclePolicyDetails& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The text of the lifecycle policy.

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

The text of the lifecycle policy.

*/ inline bool LifecyclePolicyTextHasBeenSet() const { return m_lifecyclePolicyTextHasBeenSet; } /** *

The text of the lifecycle policy.

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

The text of the lifecycle policy.

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

The text of the lifecycle policy.

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

The text of the lifecycle policy.

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

The text of the lifecycle policy.

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

The text of the lifecycle policy.

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

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

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

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

*/ inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; } /** *

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

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

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

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

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

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

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

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

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

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

The Amazon Web Services account identifier that is associated with the * registry that contains the repository.

*/ inline AwsEcrRepositoryLifecyclePolicyDetails& WithRegistryId(const char* value) { SetRegistryId(value); return *this;} private: Aws::String m_lifecyclePolicyText; bool m_lifecyclePolicyTextHasBeenSet = false; Aws::String m_registryId; bool m_registryIdHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws