/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace ECR { namespace Model { /** *

The result of the lifecycle policy preview.

See Also:

AWS * API Reference

*/ class LifecyclePolicyPreviewResult { public: AWS_ECR_API LifecyclePolicyPreviewResult(); AWS_ECR_API LifecyclePolicyPreviewResult(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API LifecyclePolicyPreviewResult& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The list of tags associated with this image.

*/ inline const Aws::Vector& GetImageTags() const{ return m_imageTags; } /** *

The list of tags associated with this image.

*/ inline bool ImageTagsHasBeenSet() const { return m_imageTagsHasBeenSet; } /** *

The list of tags associated with this image.

*/ inline void SetImageTags(const Aws::Vector& value) { m_imageTagsHasBeenSet = true; m_imageTags = value; } /** *

The list of tags associated with this image.

*/ inline void SetImageTags(Aws::Vector&& value) { m_imageTagsHasBeenSet = true; m_imageTags = std::move(value); } /** *

The list of tags associated with this image.

*/ inline LifecyclePolicyPreviewResult& WithImageTags(const Aws::Vector& value) { SetImageTags(value); return *this;} /** *

The list of tags associated with this image.

*/ inline LifecyclePolicyPreviewResult& WithImageTags(Aws::Vector&& value) { SetImageTags(std::move(value)); return *this;} /** *

The list of tags associated with this image.

*/ inline LifecyclePolicyPreviewResult& AddImageTags(const Aws::String& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The list of tags associated with this image.

*/ inline LifecyclePolicyPreviewResult& AddImageTags(Aws::String&& value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(std::move(value)); return *this; } /** *

The list of tags associated with this image.

*/ inline LifecyclePolicyPreviewResult& AddImageTags(const char* value) { m_imageTagsHasBeenSet = true; m_imageTags.push_back(value); return *this; } /** *

The sha256 digest of the image manifest.

*/ inline const Aws::String& GetImageDigest() const{ return m_imageDigest; } /** *

The sha256 digest of the image manifest.

*/ inline bool ImageDigestHasBeenSet() const { return m_imageDigestHasBeenSet; } /** *

The sha256 digest of the image manifest.

*/ inline void SetImageDigest(const Aws::String& value) { m_imageDigestHasBeenSet = true; m_imageDigest = value; } /** *

The sha256 digest of the image manifest.

*/ inline void SetImageDigest(Aws::String&& value) { m_imageDigestHasBeenSet = true; m_imageDigest = std::move(value); } /** *

The sha256 digest of the image manifest.

*/ inline void SetImageDigest(const char* value) { m_imageDigestHasBeenSet = true; m_imageDigest.assign(value); } /** *

The sha256 digest of the image manifest.

*/ inline LifecyclePolicyPreviewResult& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;} /** *

The sha256 digest of the image manifest.

*/ inline LifecyclePolicyPreviewResult& WithImageDigest(Aws::String&& value) { SetImageDigest(std::move(value)); return *this;} /** *

The sha256 digest of the image manifest.

*/ inline LifecyclePolicyPreviewResult& WithImageDigest(const char* value) { SetImageDigest(value); return *this;} /** *

The date and time, expressed in standard JavaScript date format, at which the * current image was pushed to the repository.

*/ inline const Aws::Utils::DateTime& GetImagePushedAt() const{ return m_imagePushedAt; } /** *

The date and time, expressed in standard JavaScript date format, at which the * current image was pushed to the repository.

*/ inline bool ImagePushedAtHasBeenSet() const { return m_imagePushedAtHasBeenSet; } /** *

The date and time, expressed in standard JavaScript date format, at which the * current image was pushed to the repository.

*/ inline void SetImagePushedAt(const Aws::Utils::DateTime& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = value; } /** *

The date and time, expressed in standard JavaScript date format, at which the * current image was pushed to the repository.

*/ inline void SetImagePushedAt(Aws::Utils::DateTime&& value) { m_imagePushedAtHasBeenSet = true; m_imagePushedAt = std::move(value); } /** *

The date and time, expressed in standard JavaScript date format, at which the * current image was pushed to the repository.

*/ inline LifecyclePolicyPreviewResult& WithImagePushedAt(const Aws::Utils::DateTime& value) { SetImagePushedAt(value); return *this;} /** *

The date and time, expressed in standard JavaScript date format, at which the * current image was pushed to the repository.

*/ inline LifecyclePolicyPreviewResult& WithImagePushedAt(Aws::Utils::DateTime&& value) { SetImagePushedAt(std::move(value)); return *this;} /** *

The type of action to be taken.

*/ inline const LifecyclePolicyRuleAction& GetAction() const{ return m_action; } /** *

The type of action to be taken.

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

The type of action to be taken.

*/ inline void SetAction(const LifecyclePolicyRuleAction& value) { m_actionHasBeenSet = true; m_action = value; } /** *

The type of action to be taken.

*/ inline void SetAction(LifecyclePolicyRuleAction&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

The type of action to be taken.

*/ inline LifecyclePolicyPreviewResult& WithAction(const LifecyclePolicyRuleAction& value) { SetAction(value); return *this;} /** *

The type of action to be taken.

*/ inline LifecyclePolicyPreviewResult& WithAction(LifecyclePolicyRuleAction&& value) { SetAction(std::move(value)); return *this;} /** *

The priority of the applied rule.

*/ inline int GetAppliedRulePriority() const{ return m_appliedRulePriority; } /** *

The priority of the applied rule.

*/ inline bool AppliedRulePriorityHasBeenSet() const { return m_appliedRulePriorityHasBeenSet; } /** *

The priority of the applied rule.

*/ inline void SetAppliedRulePriority(int value) { m_appliedRulePriorityHasBeenSet = true; m_appliedRulePriority = value; } /** *

The priority of the applied rule.

*/ inline LifecyclePolicyPreviewResult& WithAppliedRulePriority(int value) { SetAppliedRulePriority(value); return *this;} private: Aws::Vector m_imageTags; bool m_imageTagsHasBeenSet = false; Aws::String m_imageDigest; bool m_imageDigestHasBeenSet = false; Aws::Utils::DateTime m_imagePushedAt; bool m_imagePushedAtHasBeenSet = false; LifecyclePolicyRuleAction m_action; bool m_actionHasBeenSet = false; int m_appliedRulePriority; bool m_appliedRulePriorityHasBeenSet = false; }; } // namespace Model } // namespace ECR } // namespace Aws