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

An object with identifying information for an Amazon ECR image.

See * Also:

AWS * API Reference

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

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 ImageIdentifier& WithImageDigest(const Aws::String& value) { SetImageDigest(value); return *this;} /** *

The sha256 digest of the image manifest.

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

The sha256 digest of the image manifest.

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

The tag that's used for the image.

*/ inline const Aws::String& GetImageTag() const{ return m_imageTag; } /** *

The tag that's used for the image.

*/ inline bool ImageTagHasBeenSet() const { return m_imageTagHasBeenSet; } /** *

The tag that's used for the image.

*/ inline void SetImageTag(const Aws::String& value) { m_imageTagHasBeenSet = true; m_imageTag = value; } /** *

The tag that's used for the image.

*/ inline void SetImageTag(Aws::String&& value) { m_imageTagHasBeenSet = true; m_imageTag = std::move(value); } /** *

The tag that's used for the image.

*/ inline void SetImageTag(const char* value) { m_imageTagHasBeenSet = true; m_imageTag.assign(value); } /** *

The tag that's used for the image.

*/ inline ImageIdentifier& WithImageTag(const Aws::String& value) { SetImageTag(value); return *this;} /** *

The tag that's used for the image.

*/ inline ImageIdentifier& WithImageTag(Aws::String&& value) { SetImageTag(std::move(value)); return *this;} /** *

The tag that's used for the image.

*/ inline ImageIdentifier& WithImageTag(const char* value) { SetImageTag(value); return *this;} private: Aws::String m_imageDigest; bool m_imageDigestHasBeenSet = false; Aws::String m_imageTag; bool m_imageTagHasBeenSet = false; }; } // namespace Model } // namespace ECRPublic } // namespace Aws