/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Meta data details of an Amazon EC2 instance.See Also:
AWS
* API Reference
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::MapThe tags attached to the instance.
*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *The tags attached to the instance.
*/ inline void SetTags(const Aws::MapThe tags attached to the instance.
*/ inline void SetTags(Aws::MapThe tags attached to the instance.
*/ inline Ec2Metadata& WithTags(const Aws::MapThe tags attached to the instance.
*/ inline Ec2Metadata& WithTags(Aws::MapThe 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