AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
LifecyclePolicyRuleAction.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/model/ImageActionType.h>
9#include <aws/ecr/model/LifecyclePolicyTargetStorageClass.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace ECR {
21namespace Model {
22
29 public:
30 AWS_ECR_API LifecyclePolicyRuleAction() = default;
34
36
39 inline ImageActionType GetType() const { return m_type; }
40 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
41 inline void SetType(ImageActionType value) {
42 m_typeHasBeenSet = true;
43 m_type = value;
44 }
46 SetType(value);
47 return *this;
48 }
50
52
56 inline LifecyclePolicyTargetStorageClass GetTargetStorageClass() const { return m_targetStorageClass; }
57 inline bool TargetStorageClassHasBeenSet() const { return m_targetStorageClassHasBeenSet; }
59 m_targetStorageClassHasBeenSet = true;
60 m_targetStorageClass = value;
61 }
64 return *this;
65 }
67 private:
69
71 bool m_typeHasBeenSet = false;
72 bool m_targetStorageClassHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace ECR
77} // namespace Aws
AWS_ECR_API LifecyclePolicyRuleAction(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyRuleAction & WithType(ImageActionType value)
LifecyclePolicyRuleAction & WithTargetStorageClass(LifecyclePolicyTargetStorageClass value)
AWS_ECR_API LifecyclePolicyRuleAction & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECR_API LifecyclePolicyRuleAction()=default
LifecyclePolicyTargetStorageClass GetTargetStorageClass() const
void SetTargetStorageClass(LifecyclePolicyTargetStorageClass value)
Aws::Utils::Json::JsonValue JsonValue