AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KeyPair.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/lightsail/model/ResourceLocation.h>
11#include <aws/lightsail/model/ResourceType.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/lightsail/model/Tag.h>
14#include <utility>
15
16namespace Aws
17{
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23 class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace Lightsail
27{
28namespace Model
29{
30
36 class KeyPair
37 {
38 public:
39 AWS_LIGHTSAIL_API KeyPair();
40 AWS_LIGHTSAIL_API KeyPair(Aws::Utils::Json::JsonView jsonValue);
41 AWS_LIGHTSAIL_API KeyPair& operator=(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetName() const{ return m_name; }
50 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
51 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
52 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
53 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
54 inline KeyPair& WithName(const Aws::String& value) { SetName(value); return *this;}
55 inline KeyPair& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
56 inline KeyPair& WithName(const char* value) { SetName(value); return *this;}
58
60
64 inline const Aws::String& GetArn() const{ return m_arn; }
65 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
66 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
67 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
68 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
69 inline KeyPair& WithArn(const Aws::String& value) { SetArn(value); return *this;}
70 inline KeyPair& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
71 inline KeyPair& WithArn(const char* value) { SetArn(value); return *this;}
73
75
80 inline const Aws::String& GetSupportCode() const{ return m_supportCode; }
81 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
82 inline void SetSupportCode(const Aws::String& value) { m_supportCodeHasBeenSet = true; m_supportCode = value; }
83 inline void SetSupportCode(Aws::String&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::move(value); }
84 inline void SetSupportCode(const char* value) { m_supportCodeHasBeenSet = true; m_supportCode.assign(value); }
85 inline KeyPair& WithSupportCode(const Aws::String& value) { SetSupportCode(value); return *this;}
86 inline KeyPair& WithSupportCode(Aws::String&& value) { SetSupportCode(std::move(value)); return *this;}
87 inline KeyPair& WithSupportCode(const char* value) { SetSupportCode(value); return *this;}
89
91
95 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
96 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
97 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
98 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
99 inline KeyPair& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
100 inline KeyPair& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
102
104
107 inline const ResourceLocation& GetLocation() const{ return m_location; }
108 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
109 inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; }
110 inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); }
111 inline KeyPair& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;}
112 inline KeyPair& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;}
114
116
119 inline const ResourceType& GetResourceType() const{ return m_resourceType; }
120 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
121 inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
122 inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
123 inline KeyPair& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;}
124 inline KeyPair& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;}
126
128
134 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
135 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
136 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
137 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
138 inline KeyPair& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
139 inline KeyPair& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
140 inline KeyPair& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
141 inline KeyPair& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
143
145
148 inline const Aws::String& GetFingerprint() const{ return m_fingerprint; }
149 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
150 inline void SetFingerprint(const Aws::String& value) { m_fingerprintHasBeenSet = true; m_fingerprint = value; }
151 inline void SetFingerprint(Aws::String&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::move(value); }
152 inline void SetFingerprint(const char* value) { m_fingerprintHasBeenSet = true; m_fingerprint.assign(value); }
153 inline KeyPair& WithFingerprint(const Aws::String& value) { SetFingerprint(value); return *this;}
154 inline KeyPair& WithFingerprint(Aws::String&& value) { SetFingerprint(std::move(value)); return *this;}
155 inline KeyPair& WithFingerprint(const char* value) { SetFingerprint(value); return *this;}
157 private:
158
159 Aws::String m_name;
160 bool m_nameHasBeenSet = false;
161
162 Aws::String m_arn;
163 bool m_arnHasBeenSet = false;
164
165 Aws::String m_supportCode;
166 bool m_supportCodeHasBeenSet = false;
167
168 Aws::Utils::DateTime m_createdAt;
169 bool m_createdAtHasBeenSet = false;
170
171 ResourceLocation m_location;
172 bool m_locationHasBeenSet = false;
173
174 ResourceType m_resourceType;
175 bool m_resourceTypeHasBeenSet = false;
176
177 Aws::Vector<Tag> m_tags;
178 bool m_tagsHasBeenSet = false;
179
180 Aws::String m_fingerprint;
181 bool m_fingerprintHasBeenSet = false;
182 };
183
184} // namespace Model
185} // namespace Lightsail
186} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
Definition KeyPair.h:95
KeyPair & WithCreatedAt(Aws::Utils::DateTime &&value)
Definition KeyPair.h:100
KeyPair & WithLocation(const ResourceLocation &value)
Definition KeyPair.h:111
void SetName(Aws::String &&value)
Definition KeyPair.h:52
const Aws::Vector< Tag > & GetTags() const
Definition KeyPair.h:134
void SetSupportCode(const char *value)
Definition KeyPair.h:84
KeyPair & WithArn(const Aws::String &value)
Definition KeyPair.h:69
KeyPair & WithSupportCode(const char *value)
Definition KeyPair.h:87
void SetFingerprint(const char *value)
Definition KeyPair.h:152
void SetName(const char *value)
Definition KeyPair.h:53
bool LocationHasBeenSet() const
Definition KeyPair.h:108
const Aws::String & GetName() const
Definition KeyPair.h:49
void SetArn(const char *value)
Definition KeyPair.h:68
KeyPair & WithArn(const char *value)
Definition KeyPair.h:71
KeyPair & WithName(const char *value)
Definition KeyPair.h:56
KeyPair & AddTags(Tag &&value)
Definition KeyPair.h:141
KeyPair & WithSupportCode(const Aws::String &value)
Definition KeyPair.h:85
bool FingerprintHasBeenSet() const
Definition KeyPair.h:149
void SetTags(Aws::Vector< Tag > &&value)
Definition KeyPair.h:137
KeyPair & WithFingerprint(Aws::String &&value)
Definition KeyPair.h:154
AWS_LIGHTSAIL_API KeyPair & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetName(const Aws::String &value)
Definition KeyPair.h:51
void SetTags(const Aws::Vector< Tag > &value)
Definition KeyPair.h:136
void SetSupportCode(const Aws::String &value)
Definition KeyPair.h:82
AWS_LIGHTSAIL_API KeyPair()
void SetLocation(ResourceLocation &&value)
Definition KeyPair.h:110
KeyPair & WithName(Aws::String &&value)
Definition KeyPair.h:55
void SetArn(const Aws::String &value)
Definition KeyPair.h:66
const Aws::String & GetSupportCode() const
Definition KeyPair.h:80
KeyPair & WithFingerprint(const Aws::String &value)
Definition KeyPair.h:153
bool ResourceTypeHasBeenSet() const
Definition KeyPair.h:120
KeyPair & WithArn(Aws::String &&value)
Definition KeyPair.h:70
void SetArn(Aws::String &&value)
Definition KeyPair.h:67
KeyPair & WithSupportCode(Aws::String &&value)
Definition KeyPair.h:86
void SetResourceType(const ResourceType &value)
Definition KeyPair.h:121
void SetFingerprint(const Aws::String &value)
Definition KeyPair.h:150
KeyPair & WithLocation(ResourceLocation &&value)
Definition KeyPair.h:112
KeyPair & WithTags(const Aws::Vector< Tag > &value)
Definition KeyPair.h:138
void SetResourceType(ResourceType &&value)
Definition KeyPair.h:122
const Aws::String & GetFingerprint() const
Definition KeyPair.h:148
KeyPair & WithName(const Aws::String &value)
Definition KeyPair.h:54
const ResourceType & GetResourceType() const
Definition KeyPair.h:119
KeyPair & WithResourceType(const ResourceType &value)
Definition KeyPair.h:123
bool CreatedAtHasBeenSet() const
Definition KeyPair.h:96
KeyPair & WithTags(Aws::Vector< Tag > &&value)
Definition KeyPair.h:139
bool SupportCodeHasBeenSet() const
Definition KeyPair.h:81
AWS_LIGHTSAIL_API KeyPair(Aws::Utils::Json::JsonView jsonValue)
KeyPair & WithFingerprint(const char *value)
Definition KeyPair.h:155
const ResourceLocation & GetLocation() const
Definition KeyPair.h:107
const Aws::String & GetArn() const
Definition KeyPair.h:64
KeyPair & WithResourceType(ResourceType &&value)
Definition KeyPair.h:124
KeyPair & WithCreatedAt(const Aws::Utils::DateTime &value)
Definition KeyPair.h:99
KeyPair & AddTags(const Tag &value)
Definition KeyPair.h:140
void SetSupportCode(Aws::String &&value)
Definition KeyPair.h:83
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
void SetLocation(const ResourceLocation &value)
Definition KeyPair.h:109
void SetCreatedAt(Aws::Utils::DateTime &&value)
Definition KeyPair.h:98
void SetFingerprint(Aws::String &&value)
Definition KeyPair.h:151
void SetCreatedAt(const Aws::Utils::DateTime &value)
Definition KeyPair.h:97
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue