/** * 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 Inspector2 { namespace Model { /** *

Meta data details of an Amazon EC2 instance.

See Also:

AWS * API Reference

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

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline const Aws::String& GetAmiId() const{ return m_amiId; } /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; } /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; } /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); } /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); } /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline Ec2Metadata& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;} /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline Ec2Metadata& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;} /** *

The ID of the Amazon Machine Image (AMI) used to launch the instance.

*/ inline Ec2Metadata& WithAmiId(const char* value) { SetAmiId(value); return *this;} /** *

The platform of the instance.

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

The platform of the instance.

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

The platform of the instance.

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

The platform of the instance.

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

The platform of the instance.

*/ inline Ec2Metadata& WithPlatform(const Ec2Platform& value) { SetPlatform(value); return *this;} /** *

The platform of the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

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

The tags attached to the instance.

*/ inline Ec2Metadata& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; } private: Aws::String m_amiId; bool m_amiIdHasBeenSet = false; Ec2Platform m_platform; bool m_platformHasBeenSet = false; Aws::Map m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Inspector2 } // namespace Aws