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>
44 template <
typename ImageTagsT = Aws::Vector<Aws::String>>
46 m_imageTagsHasBeenSet =
true;
47 m_imageTags = std::forward<ImageTagsT>(value);
49 template <
typename ImageTagsT = Aws::Vector<Aws::String>>
54 template <
typename ImageTagsT = Aws::String>
56 m_imageTagsHasBeenSet =
true;
57 m_imageTags.emplace_back(std::forward<ImageTagsT>(value));
68 template <
typename ImageDigestT = Aws::String>
70 m_imageDigestHasBeenSet =
true;
71 m_imageDigest = std::forward<ImageDigestT>(value);
73 template <
typename ImageDigestT = Aws::String>
87 template <
typename ImagePushedAtT = Aws::Utils::DateTime>
89 m_imagePushedAtHasBeenSet =
true;
90 m_imagePushedAt = std::forward<ImagePushedAtT>(value);
92 template <
typename ImagePushedAtT = Aws::Utils::DateTime>
105 template <
typename ActionT = LifecyclePolicyRuleAction>
107 m_actionHasBeenSet =
true;
108 m_action = std::forward<ActionT>(value);
110 template <
typename ActionT = LifecyclePolicyRuleAction>
124 m_appliedRulePriorityHasBeenSet =
true;
125 m_appliedRulePriority = value;
140 m_storageClassHasBeenSet =
true;
141 m_storageClass = value;
155 LifecyclePolicyRuleAction m_action;
157 int m_appliedRulePriority{0};
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;
const Aws::Utils::DateTime & GetImagePushedAt() const
LifecyclePolicyPreviewResult & WithStorageClass(LifecyclePolicyStorageClass value)
const LifecyclePolicyRuleAction & GetAction() const
LifecyclePolicyPreviewResult & WithImageDigest(ImageDigestT &&value)
LifecyclePolicyPreviewResult & AddImageTags(ImageTagsT &&value)
bool AppliedRulePriorityHasBeenSet() const
bool ImageTagsHasBeenSet() const
AWS_ECR_API LifecyclePolicyPreviewResult & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAppliedRulePriority(int value)
const Aws::Vector< Aws::String > & GetImageTags() const
LifecyclePolicyPreviewResult & WithImagePushedAt(ImagePushedAtT &&value)
AWS_ECR_API LifecyclePolicyPreviewResult()=default
LifecyclePolicyPreviewResult & WithImageTags(ImageTagsT &&value)
void SetImagePushedAt(ImagePushedAtT &&value)
const Aws::String & GetImageDigest() const
bool ImagePushedAtHasBeenSet() const
void SetImageTags(ImageTagsT &&value)
void SetAction(ActionT &&value)
LifecyclePolicyStorageClass GetStorageClass() const
LifecyclePolicyPreviewResult & WithAppliedRulePriority(int value)
bool StorageClassHasBeenSet() const
bool ImageDigestHasBeenSet() const
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
int GetAppliedRulePriority() const
void SetImageDigest(ImageDigestT &&value)
AWS_ECR_API LifecyclePolicyPreviewResult(Aws::Utils::Json::JsonView jsonValue)
void SetStorageClass(LifecyclePolicyStorageClass value)
LifecyclePolicyPreviewResult & WithAction(ActionT &&value)
bool ActionHasBeenSet() const
LifecyclePolicyStorageClass
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue