AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Ec2Metadata.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/inspector2/model/Ec2Platform.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API Ec2Metadata();
37 AWS_INSPECTOR2_API Ec2Metadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API Ec2Metadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAmiId() const{ return m_amiId; }
47 inline bool AmiIdHasBeenSet() const { return m_amiIdHasBeenSet; }
48 inline void SetAmiId(const Aws::String& value) { m_amiIdHasBeenSet = true; m_amiId = value; }
49 inline void SetAmiId(Aws::String&& value) { m_amiIdHasBeenSet = true; m_amiId = std::move(value); }
50 inline void SetAmiId(const char* value) { m_amiIdHasBeenSet = true; m_amiId.assign(value); }
51 inline Ec2Metadata& WithAmiId(const Aws::String& value) { SetAmiId(value); return *this;}
52 inline Ec2Metadata& WithAmiId(Aws::String&& value) { SetAmiId(std::move(value)); return *this;}
53 inline Ec2Metadata& WithAmiId(const char* value) { SetAmiId(value); return *this;}
55
57
60 inline const Ec2Platform& GetPlatform() const{ return m_platform; }
61 inline bool PlatformHasBeenSet() const { return m_platformHasBeenSet; }
62 inline void SetPlatform(const Ec2Platform& value) { m_platformHasBeenSet = true; m_platform = value; }
63 inline void SetPlatform(Ec2Platform&& value) { m_platformHasBeenSet = true; m_platform = std::move(value); }
64 inline Ec2Metadata& WithPlatform(const Ec2Platform& value) { SetPlatform(value); return *this;}
65 inline Ec2Metadata& WithPlatform(Ec2Platform&& value) { SetPlatform(std::move(value)); return *this;}
67
69
72 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
73 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
74 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
75 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
76 inline Ec2Metadata& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
77 inline Ec2Metadata& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
78 inline Ec2Metadata& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
79 inline Ec2Metadata& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
80 inline Ec2Metadata& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
81 inline Ec2Metadata& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
82 inline Ec2Metadata& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
83 inline Ec2Metadata& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
84 inline Ec2Metadata& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
86 private:
87
88 Aws::String m_amiId;
89 bool m_amiIdHasBeenSet = false;
90
91 Ec2Platform m_platform;
92 bool m_platformHasBeenSet = false;
93
95 bool m_tagsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace Inspector2
100} // namespace Aws
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Ec2Metadata.h:74
Ec2Metadata & AddTags(Aws::String &&key, const Aws::String &value)
Definition Ec2Metadata.h:79
Ec2Metadata & AddTags(Aws::String &&key, Aws::String &&value)
Definition Ec2Metadata.h:81
Ec2Metadata & AddTags(const Aws::String &key, const Aws::String &value)
Definition Ec2Metadata.h:78
void SetAmiId(const Aws::String &value)
Definition Ec2Metadata.h:48
void SetAmiId(Aws::String &&value)
Definition Ec2Metadata.h:49
void SetAmiId(const char *value)
Definition Ec2Metadata.h:50
Ec2Metadata & AddTags(const char *key, const char *value)
Definition Ec2Metadata.h:84
Ec2Metadata & WithAmiId(const char *value)
Definition Ec2Metadata.h:53
AWS_INSPECTOR2_API Ec2Metadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Ec2Metadata & AddTags(const char *key, Aws::String &&value)
Definition Ec2Metadata.h:82
Ec2Metadata & AddTags(const Aws::String &key, Aws::String &&value)
Definition Ec2Metadata.h:80
Ec2Metadata & WithAmiId(const Aws::String &value)
Definition Ec2Metadata.h:51
Ec2Metadata & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Ec2Metadata.h:77
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Ec2Metadata.h:72
Ec2Metadata & AddTags(Aws::String &&key, const char *value)
Definition Ec2Metadata.h:83
Ec2Metadata & WithPlatform(const Ec2Platform &value)
Definition Ec2Metadata.h:64
const Ec2Platform & GetPlatform() const
Definition Ec2Metadata.h:60
const Aws::String & GetAmiId() const
Definition Ec2Metadata.h:46
void SetPlatform(const Ec2Platform &value)
Definition Ec2Metadata.h:62
Ec2Metadata & WithPlatform(Ec2Platform &&value)
Definition Ec2Metadata.h:65
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition Ec2Metadata.h:75
AWS_INSPECTOR2_API Ec2Metadata()
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_INSPECTOR2_API Ec2Metadata(Aws::Utils::Json::JsonView jsonValue)
void SetPlatform(Ec2Platform &&value)
Definition Ec2Metadata.h:63
Ec2Metadata & WithAmiId(Aws::String &&value)
Definition Ec2Metadata.h:52
Ec2Metadata & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition Ec2Metadata.h:76
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue