AWS SDK for C++  1.9.109
AWS SDK for C++
LifecyclePolicyPreviewResult.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecr/ECR_EXPORTS.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21  class JsonView;
22 } // namespace Json
23 } // namespace Utils
24 namespace ECR
25 {
26 namespace Model
27 {
28 
35  {
36  public:
41 
42 
46  inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }
47 
51  inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
52 
56  inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }
57 
61  inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }
62 
66  inline LifecyclePolicyPreviewResult& WithImageTags(const Aws::Vector<Aws::String>& value) { SetImageTags(value); return *this;}
67 
71  inline LifecyclePolicyPreviewResult& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}
72 
76  inline LifecyclePolicyPreviewResult& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
77 
81  inline LifecyclePolicyPreviewResult& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }
82 
86  inline LifecyclePolicyPreviewResult& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
87 
88 
92  inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
93 
97  inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
98 
102  inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
103 
107  inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
108 
112  inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
113 
117  inline LifecyclePolicyPreviewResult& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
118 
122  inline LifecyclePolicyPreviewResult& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
123 
127  inline LifecyclePolicyPreviewResult& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
128 
129 
134  inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; }
135 
140  inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
141 
146  inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; }
147 
152  inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); }
153 
158  inline LifecyclePolicyPreviewResult& WithImagePushedAt(const Aws::Utils::DateTime& value) { SetImagePushedAt(value); return *this;}
159 
164  inline LifecyclePolicyPreviewResult& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;}
165 
166 
170  inline const LifecyclePolicyRuleAction& GetAction() const{ return m_action; }
171 
175  inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
176 
180  inline void SetAction(const LifecyclePolicyRuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
181 
185  inline void SetAction(LifecyclePolicyRuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
186 
190  inline LifecyclePolicyPreviewResult& WithAction(const LifecyclePolicyRuleAction& value) { SetAction(value); return *this;}
191 
195  inline LifecyclePolicyPreviewResult& WithAction(LifecyclePolicyRuleAction&& value) { SetAction(std::move(value)); return *this;}
196 
197 
201  inline int GetAppliedRulePriority() const{ return m_appliedRulePriority; }
202 
206  inline bool AppliedRulePriorityHasBeenSet() const { return m_appliedRulePriorityHasBeenSet; }
207 
211  inline void SetAppliedRulePriority(int value) { m_appliedRulePriorityHasBeenSet = true; m_appliedRulePriority = value; }
212 
216  inline LifecyclePolicyPreviewResult& WithAppliedRulePriority(int value) { SetAppliedRulePriority(value); return *this;}
217 
218  private:
219 
220  Aws::Vector<Aws::String> m_imageTags;
221  bool m_imageTagsHasBeenSet;
222 
223  Aws::String m_imageDigest;
224  bool m_imageDigestHasBeenSet;
225 
226  Aws::Utils::DateTime m_imagePushedAt;
227  bool m_imagePushedAtHasBeenSet;
228 
229  LifecyclePolicyRuleAction m_action;
230  bool m_actionHasBeenSet;
231 
232  int m_appliedRulePriority;
233  bool m_appliedRulePriorityHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace ECR
238 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithImageDigest
LifecyclePolicyPreviewResult & WithImageDigest(Aws::String &&value)
Definition: LifecyclePolicyPreviewResult.h:122
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithImageTags
LifecyclePolicyPreviewResult & WithImageTags(Aws::Vector< Aws::String > &&value)
Definition: LifecyclePolicyPreviewResult.h:71
Aws::ECR::Model::LifecyclePolicyPreviewResult::GetImageDigest
const Aws::String & GetImageDigest() const
Definition: LifecyclePolicyPreviewResult.h:92
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetImageDigest
void SetImageDigest(const char *value)
Definition: LifecyclePolicyPreviewResult.h:112
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetImageDigest
void SetImageDigest(const Aws::String &value)
Definition: LifecyclePolicyPreviewResult.h:102
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithImagePushedAt
LifecyclePolicyPreviewResult & WithImagePushedAt(Aws::Utils::DateTime &&value)
Definition: LifecyclePolicyPreviewResult.h:164
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetImagePushedAt
void SetImagePushedAt(const Aws::Utils::DateTime &value)
Definition: LifecyclePolicyPreviewResult.h:146
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetAction
void SetAction(LifecyclePolicyRuleAction &&value)
Definition: LifecyclePolicyPreviewResult.h:185
DateTime.h
Aws::ECR::Model::LifecyclePolicyPreviewResult::ImageDigestHasBeenSet
bool ImageDigestHasBeenSet() const
Definition: LifecyclePolicyPreviewResult.h:97
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetImageTags
void SetImageTags(const Aws::Vector< Aws::String > &value)
Definition: LifecyclePolicyPreviewResult.h:56
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithImageDigest
LifecyclePolicyPreviewResult & WithImageDigest(const char *value)
Definition: LifecyclePolicyPreviewResult.h:127
LifecyclePolicyRuleAction.h
Aws::ECR::Model::LifecyclePolicyPreviewResult::AddImageTags
LifecyclePolicyPreviewResult & AddImageTags(const char *value)
Definition: LifecyclePolicyPreviewResult.h:86
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithAction
LifecyclePolicyPreviewResult & WithAction(const LifecyclePolicyRuleAction &value)
Definition: LifecyclePolicyPreviewResult.h:190
Aws::ECR::Model::LifecyclePolicyPreviewResult::ImagePushedAtHasBeenSet
bool ImagePushedAtHasBeenSet() const
Definition: LifecyclePolicyPreviewResult.h:140
Aws::ECR::Model::LifecyclePolicyPreviewResult::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::ECR::Model::LifecyclePolicyPreviewResult::ActionHasBeenSet
bool ActionHasBeenSet() const
Definition: LifecyclePolicyPreviewResult.h:175
AWSVector.h
Aws::ECR::Model::LifecyclePolicyRuleAction
Definition: LifecyclePolicyRuleAction.h:32
Aws::ECR::Model::LifecyclePolicyPreviewResult::AddImageTags
LifecyclePolicyPreviewResult & AddImageTags(const Aws::String &value)
Definition: LifecyclePolicyPreviewResult.h:76
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetImageTags
void SetImageTags(Aws::Vector< Aws::String > &&value)
Definition: LifecyclePolicyPreviewResult.h:61
Aws::ECR::Model::LifecyclePolicyPreviewResult::LifecyclePolicyPreviewResult
LifecyclePolicyPreviewResult()
Aws::imagebuilder::Model::ContainerRepositoryService::NOT_SET
@ NOT_SET
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetAction
void SetAction(const LifecyclePolicyRuleAction &value)
Definition: LifecyclePolicyPreviewResult.h:180
Aws::ECR::Model::LifecyclePolicyPreviewResult
Definition: LifecyclePolicyPreviewResult.h:35
Aws::ECR::Model::LifecyclePolicyPreviewResult::GetImagePushedAt
const Aws::Utils::DateTime & GetImagePushedAt() const
Definition: LifecyclePolicyPreviewResult.h:134
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetImageDigest
void SetImageDigest(Aws::String &&value)
Definition: LifecyclePolicyPreviewResult.h:107
ECR_EXPORTS.h
Aws::ECR::Model::LifecyclePolicyPreviewResult::AddImageTags
LifecyclePolicyPreviewResult & AddImageTags(Aws::String &&value)
Definition: LifecyclePolicyPreviewResult.h:81
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithImageTags
LifecyclePolicyPreviewResult & WithImageTags(const Aws::Vector< Aws::String > &value)
Definition: LifecyclePolicyPreviewResult.h:66
Aws::ECR::Model::LifecyclePolicyPreviewResult::AppliedRulePriorityHasBeenSet
bool AppliedRulePriorityHasBeenSet() const
Definition: LifecyclePolicyPreviewResult.h:206
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::ECR::Model::LifecyclePolicyPreviewResult::operator=
LifecyclePolicyPreviewResult & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::ECR::Model::LifecyclePolicyPreviewResult::GetAppliedRulePriority
int GetAppliedRulePriority() const
Definition: LifecyclePolicyPreviewResult.h:201
AWS_ECR_API
#define AWS_ECR_API
Definition: ECR_EXPORTS.h:28
Aws::ECR::Model::LifecyclePolicyPreviewResult::ImageTagsHasBeenSet
bool ImageTagsHasBeenSet() const
Definition: LifecyclePolicyPreviewResult.h:51
Aws::ECR::Model::LifecyclePolicyPreviewResult::GetAction
const LifecyclePolicyRuleAction & GetAction() const
Definition: LifecyclePolicyPreviewResult.h:170
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithAppliedRulePriority
LifecyclePolicyPreviewResult & WithAppliedRulePriority(int value)
Definition: LifecyclePolicyPreviewResult.h:216
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithAction
LifecyclePolicyPreviewResult & WithAction(LifecyclePolicyRuleAction &&value)
Definition: LifecyclePolicyPreviewResult.h:195
Aws::ECR::Model::LifecyclePolicyPreviewResult::GetImageTags
const Aws::Vector< Aws::String > & GetImageTags() const
Definition: LifecyclePolicyPreviewResult.h:46
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithImageDigest
LifecyclePolicyPreviewResult & WithImageDigest(const Aws::String &value)
Definition: LifecyclePolicyPreviewResult.h:117
Aws
Definition: AccessManagementClient.h:15
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetAppliedRulePriority
void SetAppliedRulePriority(int value)
Definition: LifecyclePolicyPreviewResult.h:211
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECR::Model::LifecyclePolicyPreviewResult::WithImagePushedAt
LifecyclePolicyPreviewResult & WithImagePushedAt(const Aws::Utils::DateTime &value)
Definition: LifecyclePolicyPreviewResult.h:158
Aws::ECR::Model::LifecyclePolicyPreviewResult::SetImagePushedAt
void SetImagePushedAt(Aws::Utils::DateTime &&value)
Definition: LifecyclePolicyPreviewResult.h:152
Aws::ECR::Model::LifecyclePolicyPreviewResult::LifecyclePolicyPreviewResult
LifecyclePolicyPreviewResult(Aws::Utils::Json::JsonView jsonValue)