/** * 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 ECR { namespace Model { /** *

The type of action to be taken.

See Also:

AWS * API Reference

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

The type of action to be taken.

*/ inline const ImageActionType& GetType() const{ return m_type; } /** *

The type of action to be taken.

*/ inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; } /** *

The type of action to be taken.

*/ inline void SetType(const ImageActionType& value) { m_typeHasBeenSet = true; m_type = value; } /** *

The type of action to be taken.

*/ inline void SetType(ImageActionType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); } /** *

The type of action to be taken.

*/ inline LifecyclePolicyRuleAction& WithType(const ImageActionType& value) { SetType(value); return *this;} /** *

The type of action to be taken.

*/ inline LifecyclePolicyRuleAction& WithType(ImageActionType&& value) { SetType(std::move(value)); return *this;} private: ImageActionType m_type; bool m_typeHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws