AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
LifecyclePolicyPreviewResult.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/ecr/model/LifecyclePolicyRuleAction.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace ECR
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_ECR_API LifecyclePolicyPreviewResult() = default;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetImageTags() const { return m_imageTags; }
48 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
49 template<typename ImageTagsT = Aws::Vector<Aws::String>>
50 void SetImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::forward<ImageTagsT>(value); }
51 template<typename ImageTagsT = Aws::Vector<Aws::String>>
52 LifecyclePolicyPreviewResult& WithImageTags(ImageTagsT&& value) { SetImageTags(std::forward<ImageTagsT>(value)); return *this;}
53 template<typename ImageTagsT = Aws::String>
54 LifecyclePolicyPreviewResult& AddImageTags(ImageTagsT&& value) { m_imageTagsHasBeenSet = true; m_imageTags.emplace_back(std::forward<ImageTagsT>(value)); return *this; }
56
58
61 inline const Aws::String& GetImageDigest() const { return m_imageDigest; }
62 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
63 template<typename ImageDigestT = Aws::String>
64 void SetImageDigest(ImageDigestT&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::forward<ImageDigestT>(value); }
65 template<typename ImageDigestT = Aws::String>
66 LifecyclePolicyPreviewResult& WithImageDigest(ImageDigestT&& value) { SetImageDigest(std::forward<ImageDigestT>(value)); return *this;}
68
70
74 inline const Aws::Utils::DateTime& GetImagePushedAt() const { return m_imagePushedAt; }
75 inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
76 template<typename ImagePushedAtT = Aws::Utils::DateTime>
77 void SetImagePushedAt(ImagePushedAtT&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::forward<ImagePushedAtT>(value); }
78 template<typename ImagePushedAtT = Aws::Utils::DateTime>
79 LifecyclePolicyPreviewResult& WithImagePushedAt(ImagePushedAtT&& value) { SetImagePushedAt(std::forward<ImagePushedAtT>(value)); return *this;}
81
83
86 inline const LifecyclePolicyRuleAction& GetAction() const { return m_action; }
87 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
88 template<typename ActionT = LifecyclePolicyRuleAction>
89 void SetAction(ActionT&& value) { m_actionHasBeenSet = true; m_action = std::forward<ActionT>(value); }
90 template<typename ActionT = LifecyclePolicyRuleAction>
91 LifecyclePolicyPreviewResult& WithAction(ActionT&& value) { SetAction(std::forward<ActionT>(value)); return *this;}
93
95
98 inline int GetAppliedRulePriority() const { return m_appliedRulePriority; }
99 inline bool AppliedRulePriorityHasBeenSet() const { return m_appliedRulePriorityHasBeenSet; }
100 inline void SetAppliedRulePriority(int value) { m_appliedRulePriorityHasBeenSet = true; m_appliedRulePriority = value; }
103 private:
104
105 Aws::Vector<Aws::String> m_imageTags;
106 bool m_imageTagsHasBeenSet = false;
107
108 Aws::String m_imageDigest;
109 bool m_imageDigestHasBeenSet = false;
110
111 Aws::Utils::DateTime m_imagePushedAt{};
112 bool m_imagePushedAtHasBeenSet = false;
113
114 LifecyclePolicyRuleAction m_action;
115 bool m_actionHasBeenSet = false;
116
117 int m_appliedRulePriority{0};
118 bool m_appliedRulePriorityHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace ECR
123} // namespace Aws
const Aws::Utils::DateTime & GetImagePushedAt() const
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)
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