AWS SDK for C++

AWS SDK for C++ Version 1.11.752

Loading...
Searching...
No Matches
LifecyclePolicyPreviewResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ecr/ECR_EXPORTS.h>
11#include <aws/ecr/model/LifecyclePolicyRuleAction.h>
12#include <aws/ecr/model/LifecyclePolicyStorageClass.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR {
24namespace Model {
25
32 public:
33 AWS_ECR_API LifecyclePolicyPreviewResult() = default;
37
39
42 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
43 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
44 template <typename ImageTagsT = Aws::Vector<Aws::String>>
45 void SetImageTags(ImageTagsT&& value) {
46 m_imageTagsHasBeenSet = true;
47 m_imageTags = std::forward<ImageTagsT>(value);
48 }
49 template <typename ImageTagsT = Aws::Vector<Aws::String>>
51 SetImageTags(std::forward<ImageTagsT>(value));
52 return *this;
53 }
54 template <typename ImageTagsT = Aws::String>
56 m_imageTagsHasBeenSet = true;
57 m_imageTags.emplace_back(std::forward<ImageTagsT>(value));
58 return *this;
59 }
61
63
66 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
67 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
68 template <typename ImageDigestT = Aws::String>
69 void SetImageDigest(ImageDigestT&& value) {
70 m_imageDigestHasBeenSet = true;
71 m_imageDigest = std::forward<ImageDigestT>(value);
72 }
73 template <typename ImageDigestT = Aws::String>
75 SetImageDigest(std::forward<ImageDigestT>(value));
76 return *this;
77 }
79
81
85 inline const Aws::Utils::DateTime& GetImagePushedAt() const { return m_imagePushedAt; }
86 inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
87 template <typename ImagePushedAtT = Aws::Utils::DateTime>
88 void SetImagePushedAt(ImagePushedAtT&& value) {
89 m_imagePushedAtHasBeenSet = true;
90 m_imagePushedAt = std::forward<ImagePushedAtT>(value);
91 }
92 template <typename ImagePushedAtT = Aws::Utils::DateTime>
94 SetImagePushedAt(std::forward<ImagePushedAtT>(value));
95 return *this;
96 }
98
100
103 inline const LifecyclePolicyRuleAction& GetAction() const { return m_action; }
104 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
105 template <typename ActionT = LifecyclePolicyRuleAction>
106 void SetAction(ActionT&& value) {
107 m_actionHasBeenSet = true;
108 m_action = std::forward<ActionT>(value);
109 }
110 template <typename ActionT = LifecyclePolicyRuleAction>
112 SetAction(std::forward<ActionT>(value));
113 return *this;
114 }
116
118
121 inline int GetAppliedRulePriority() const { return m_appliedRulePriority; }
122 inline bool AppliedRulePriorityHasBeenSet() const { return m_appliedRulePriorityHasBeenSet; }
123 inline void SetAppliedRulePriority(int value) {
124 m_appliedRulePriorityHasBeenSet = true;
125 m_appliedRulePriority = value;
126 }
129 return *this;
130 }
132
134
137 inline LifecyclePolicyStorageClass GetStorageClass() const { return m_storageClass; }
138 inline bool StorageClassHasBeenSet() const { return m_storageClassHasBeenSet; }
140 m_storageClassHasBeenSet = true;
141 m_storageClass = value;
142 }
144 SetStorageClass(value);
145 return *this;
146 }
148 private:
149 Aws::Vector<Aws::String> m_imageTags;
150
151 Aws::String m_imageDigest;
152
153 Aws::Utils::DateTime m_imagePushedAt{};
154
155 LifecyclePolicyRuleAction m_action;
156
157 int m_appliedRulePriority{0};
158
160 bool m_imageTagsHasBeenSet = false;
161 bool m_imageDigestHasBeenSet = false;
162 bool m_imagePushedAtHasBeenSet = false;
163 bool m_actionHasBeenSet = false;
164 bool m_appliedRulePriorityHasBeenSet = false;
165 bool m_storageClassHasBeenSet = false;
166};
167
168} // namespace Model
169} // namespace ECR
170} // namespace Aws
const Aws::Utils::DateTime & GetImagePushedAt() const
LifecyclePolicyPreviewResult & WithStorageClass(LifecyclePolicyStorageClass value)
const LifecyclePolicyRuleAction & GetAction() const
LifecyclePolicyPreviewResult & WithImageDigest(ImageDigestT &&value)
LifecyclePolicyPreviewResult & AddImageTags(ImageTagsT &&value)
AWS_ECR_API LifecyclePolicyPreviewResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetImageTags() const
LifecyclePolicyPreviewResult & WithImagePushedAt(ImagePushedAtT &&value)
AWS_ECR_API LifecyclePolicyPreviewResult()=default
LifecyclePolicyPreviewResult & WithImageTags(ImageTagsT &&value)
LifecyclePolicyPreviewResult & WithAppliedRulePriority(int value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_ECR_API LifecyclePolicyPreviewResult(Aws::Utils::Json::JsonView jsonValue)
void SetStorageClass(LifecyclePolicyStorageClass value)
LifecyclePolicyPreviewResult & WithAction(ActionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue