AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
41
42
44
47 inline const Aws::Vector<Aws::String>& GetImageTags() const{ return m_imageTags; }
48 inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; }
49 inline void SetImageTags(const Aws::Vector<Aws::String>& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; }
50 inline void SetImageTags(Aws::Vector<Aws::String>&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); }
52 inline LifecyclePolicyPreviewResult& WithImageTags(Aws::Vector<Aws::String>&& value) { SetImageTags(std::move(value)); return *this;}
53 inline LifecyclePolicyPreviewResult& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
54 inline LifecyclePolicyPreviewResult& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; }
55 inline LifecyclePolicyPreviewResult& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; }
57
59
62 inline const Aws::String& GetImageDigest() const{ return m_imageDigest; }
63 inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; }
64 inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; }
65 inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); }
66 inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); }
67 inline LifecyclePolicyPreviewResult& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;}
68 inline LifecyclePolicyPreviewResult& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;}
69 inline LifecyclePolicyPreviewResult& WithImageDigest(const char* value) { SetImageDigest(value); return *this;}
71
73
77 inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; }
78 inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; }
79 inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; }
80 inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); }
82 inline LifecyclePolicyPreviewResult& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;}
84
86
89 inline const LifecyclePolicyRuleAction& GetAction() const{ return m_action; }
90 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
91 inline void SetAction(const LifecyclePolicyRuleAction& value) { m_actionHasBeenSet = true; m_action = value; }
92 inline void SetAction(LifecyclePolicyRuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); }
93 inline LifecyclePolicyPreviewResult& WithAction(const LifecyclePolicyRuleAction& value) { SetAction(value); return *this;}
94 inline LifecyclePolicyPreviewResult& WithAction(LifecyclePolicyRuleAction&& value) { SetAction(std::move(value)); return *this;}
96
98
101 inline int GetAppliedRulePriority() const{ return m_appliedRulePriority; }
102 inline bool AppliedRulePriorityHasBeenSet() const { return m_appliedRulePriorityHasBeenSet; }
103 inline void SetAppliedRulePriority(int value) { m_appliedRulePriorityHasBeenSet = true; m_appliedRulePriority = value; }
106 private:
107
108 Aws::Vector<Aws::String> m_imageTags;
109 bool m_imageTagsHasBeenSet = false;
110
111 Aws::String m_imageDigest;
112 bool m_imageDigestHasBeenSet = false;
113
114 Aws::Utils::DateTime m_imagePushedAt;
115 bool m_imagePushedAtHasBeenSet = false;
116
118 bool m_actionHasBeenSet = false;
119
120 int m_appliedRulePriority;
121 bool m_appliedRulePriorityHasBeenSet = false;
122 };
123
124} // namespace Model
125} // namespace ECR
126} // namespace Aws
const Aws::Utils::DateTime & GetImagePushedAt() const
void SetImageTags(Aws::Vector< Aws::String > &&value)
const LifecyclePolicyRuleAction & GetAction() const
LifecyclePolicyPreviewResult & WithImageDigest(Aws::String &&value)
LifecyclePolicyPreviewResult & WithAction(LifecyclePolicyRuleAction &&value)
AWS_ECR_API LifecyclePolicyPreviewResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetImageTags(const Aws::Vector< Aws::String > &value)
void SetAction(const LifecyclePolicyRuleAction &value)
LifecyclePolicyPreviewResult & WithImageTags(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetImageTags() const
void SetImagePushedAt(const Aws::Utils::DateTime &value)
LifecyclePolicyPreviewResult & WithImagePushedAt(Aws::Utils::DateTime &&value)
LifecyclePolicyPreviewResult & WithAppliedRulePriority(int value)
void SetAction(LifecyclePolicyRuleAction &&value)
LifecyclePolicyPreviewResult & WithImageTags(const Aws::Vector< Aws::String > &value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
LifecyclePolicyPreviewResult & WithImageDigest(const Aws::String &value)
AWS_ECR_API LifecyclePolicyPreviewResult(Aws::Utils::Json::JsonView jsonValue)
LifecyclePolicyPreviewResult & AddImageTags(Aws::String &&value)
LifecyclePolicyPreviewResult & WithImageDigest(const char *value)
LifecyclePolicyPreviewResult & AddImageTags(const char *value)
LifecyclePolicyPreviewResult & WithAction(const LifecyclePolicyRuleAction &value)
LifecyclePolicyPreviewResult & WithImagePushedAt(const Aws::Utils::DateTime &value)
LifecyclePolicyPreviewResult & AddImageTags(const Aws::String &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