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

A summary of an image recipe.

See Also:

AWS * API Reference

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

The Amazon Resource Name (ARN) of the image recipe.

*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *

The Amazon Resource Name (ARN) of the image recipe.

*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the image recipe.

*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *

The Amazon Resource Name (ARN) of the image recipe.

*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the image recipe.

*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *

The Amazon Resource Name (ARN) of the image recipe.

*/ inline ImageRecipeSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the image recipe.

*/ inline ImageRecipeSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the image recipe.

*/ inline ImageRecipeSummary& WithArn(const char* value) { SetArn(value); return *this;} /** *

The name of the image recipe.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the image recipe.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the image recipe.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the image recipe.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the image recipe.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the image recipe.

*/ inline ImageRecipeSummary& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the image recipe.

*/ inline ImageRecipeSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the image recipe.

*/ inline ImageRecipeSummary& WithName(const char* value) { SetName(value); return *this;} /** *

The platform of the image recipe.

*/ inline const Platform& GetPlatform() const{ return m_platform; } /** *

The platform of the image recipe.

*/ inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; } /** *

The platform of the image recipe.

*/ inline void SetPlatform(const Platform& value) { m_platformHasBeenSet = true; m_platform = value; } /** *

The platform of the image recipe.

*/ inline void SetPlatform(Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); } /** *

The platform of the image recipe.

*/ inline ImageRecipeSummary& WithPlatform(const Platform& value) { SetPlatform(value); return *this;} /** *

The platform of the image recipe.

*/ inline ImageRecipeSummary& WithPlatform(Platform&& value) { SetPlatform(std::move(value)); return *this;} /** *

The owner of the image recipe.

*/ inline const Aws::String& GetOwner() const{ return m_owner; } /** *

The owner of the image recipe.

*/ inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; } /** *

The owner of the image recipe.

*/ inline void SetOwner(const Aws::String& value) { m_ownerHasBeenSet = true; m_owner = value; } /** *

The owner of the image recipe.

*/ inline void SetOwner(Aws::String&& value) { m_ownerHasBeenSet = true; m_owner = std::move(value); } /** *

The owner of the image recipe.

*/ inline void SetOwner(const char* value) { m_ownerHasBeenSet = true; m_owner.assign(value); } /** *

The owner of the image recipe.

*/ inline ImageRecipeSummary& WithOwner(const Aws::String& value) { SetOwner(value); return *this;} /** *

The owner of the image recipe.

*/ inline ImageRecipeSummary& WithOwner(Aws::String&& value) { SetOwner(std::move(value)); return *this;} /** *

The owner of the image recipe.

*/ inline ImageRecipeSummary& WithOwner(const char* value) { SetOwner(value); return *this;} /** *

The base image of the image recipe.

*/ inline const Aws::String& GetParentImage() const{ return m_parentImage; } /** *

The base image of the image recipe.

*/ inline bool ParentImageHasBeenSet() const { return m_parentImageHasBeenSet; } /** *

The base image of the image recipe.

*/ inline void SetParentImage(const Aws::String& value) { m_parentImageHasBeenSet = true; m_parentImage = value; } /** *

The base image of the image recipe.

*/ inline void SetParentImage(Aws::String&& value) { m_parentImageHasBeenSet = true; m_parentImage = std::move(value); } /** *

The base image of the image recipe.

*/ inline void SetParentImage(const char* value) { m_parentImageHasBeenSet = true; m_parentImage.assign(value); } /** *

The base image of the image recipe.

*/ inline ImageRecipeSummary& WithParentImage(const Aws::String& value) { SetParentImage(value); return *this;} /** *

The base image of the image recipe.

*/ inline ImageRecipeSummary& WithParentImage(Aws::String&& value) { SetParentImage(std::move(value)); return *this;} /** *

The base image of the image recipe.

*/ inline ImageRecipeSummary& WithParentImage(const char* value) { SetParentImage(value); return *this;} /** *

The date on which this image recipe was created.

*/ inline const Aws::String& GetDateCreated() const{ return m_dateCreated; } /** *

The date on which this image recipe was created.

*/ inline bool DateCreatedHasBeenSet() const { return m_dateCreatedHasBeenSet; } /** *

The date on which this image recipe was created.

*/ inline void SetDateCreated(const Aws::String& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = value; } /** *

The date on which this image recipe was created.

*/ inline void SetDateCreated(Aws::String&& value) { m_dateCreatedHasBeenSet = true; m_dateCreated = std::move(value); } /** *

The date on which this image recipe was created.

*/ inline void SetDateCreated(const char* value) { m_dateCreatedHasBeenSet = true; m_dateCreated.assign(value); } /** *

The date on which this image recipe was created.

*/ inline ImageRecipeSummary& WithDateCreated(const Aws::String& value) { SetDateCreated(value); return *this;} /** *

The date on which this image recipe was created.

*/ inline ImageRecipeSummary& WithDateCreated(Aws::String&& value) { SetDateCreated(std::move(value)); return *this;} /** *

The date on which this image recipe was created.

*/ inline ImageRecipeSummary& WithDateCreated(const char* value) { SetDateCreated(value); return *this;} /** *

The tags of the image recipe.

*/ inline const Aws::Map& GetTags() const{ return m_tags; } /** *

The tags of the image recipe.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

The tags of the image recipe.

*/ inline void SetTags(const Aws::Map& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

The tags of the image recipe.

*/ inline void SetTags(Aws::Map&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& WithTags(const Aws::Map& value) { SetTags(value); return *this;} /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& WithTags(Aws::Map&& value) { SetTags(std::move(value)); return *this;} /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; } /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; } /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; } /** *

The tags of the image recipe.

*/ inline ImageRecipeSummary& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_arn; bool m_arnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; Platform m_platform; bool m_platformHasBeenSet = false; Aws::String m_owner; bool m_ownerHasBeenSet = false; Aws::String m_parentImage; bool m_parentImageHasBeenSet = false; Aws::String m_dateCreated; bool m_dateCreatedHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace imagebuilder } // namespace Aws