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

Describes a container image that is registered to an Amazon Lightsail * container service.

See Also:

AWS * API Reference

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

The name of the container image.

*/ inline const Aws::String& GetImage() const{ return m_image; } /** *

The name of the container image.

*/ inline bool ImageHasBeenSet() const { return m_imageHasBeenSet; } /** *

The name of the container image.

*/ inline void SetImage(const Aws::String& value) { m_imageHasBeenSet = true; m_image = value; } /** *

The name of the container image.

*/ inline void SetImage(Aws::String&& value) { m_imageHasBeenSet = true; m_image = std::move(value); } /** *

The name of the container image.

*/ inline void SetImage(const char* value) { m_imageHasBeenSet = true; m_image.assign(value); } /** *

The name of the container image.

*/ inline ContainerImage& WithImage(const Aws::String& value) { SetImage(value); return *this;} /** *

The name of the container image.

*/ inline ContainerImage& WithImage(Aws::String&& value) { SetImage(std::move(value)); return *this;} /** *

The name of the container image.

*/ inline ContainerImage& WithImage(const char* value) { SetImage(value); return *this;} /** *

The digest of the container image.

*/ inline const Aws::String& GetDigest() const{ return m_digest; } /** *

The digest of the container image.

*/ inline bool DigestHasBeenSet() const { return m_digestHasBeenSet; } /** *

The digest of the container image.

*/ inline void SetDigest(const Aws::String& value) { m_digestHasBeenSet = true; m_digest = value; } /** *

The digest of the container image.

*/ inline void SetDigest(Aws::String&& value) { m_digestHasBeenSet = true; m_digest = std::move(value); } /** *

The digest of the container image.

*/ inline void SetDigest(const char* value) { m_digestHasBeenSet = true; m_digest.assign(value); } /** *

The digest of the container image.

*/ inline ContainerImage& WithDigest(const Aws::String& value) { SetDigest(value); return *this;} /** *

The digest of the container image.

*/ inline ContainerImage& WithDigest(Aws::String&& value) { SetDigest(std::move(value)); return *this;} /** *

The digest of the container image.

*/ inline ContainerImage& WithDigest(const char* value) { SetDigest(value); return *this;} /** *

The timestamp when the container image was created.

*/ inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } /** *

The timestamp when the container image was created.

*/ inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } /** *

The timestamp when the container image was created.

*/ inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } /** *

The timestamp when the container image was created.

*/ inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } /** *

The timestamp when the container image was created.

*/ inline ContainerImage& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} /** *

The timestamp when the container image was created.

*/ inline ContainerImage& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} private: Aws::String m_image; bool m_imageHasBeenSet = false; Aws::String m_digest; bool m_digestHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws