AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename NameT = Aws::String>
52 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
53 template<typename NameT = Aws::String>
54 KeyPair& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
56
58
62 inline const Aws::String& GetArn() const { return m_arn; }
63 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
64 template<typename ArnT = Aws::String>
65 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
66 template<typename ArnT = Aws::String>
67 KeyPair& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
69
71
76 inline const Aws::String& GetSupportCode() const { return m_supportCode; }
77 inline bool SupportCodeHasBeenSet() const { return m_supportCodeHasBeenSet; }
78 template<typename SupportCodeT = Aws::String>
79 void SetSupportCode(SupportCodeT&& value) { m_supportCodeHasBeenSet = true; m_supportCode = std::forward<SupportCodeT>(value); }
80 template<typename SupportCodeT = Aws::String>
81 KeyPair& WithSupportCode(SupportCodeT&& value) { SetSupportCode(std::forward<SupportCodeT>(value)); return *this;}
83
85
89 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
90 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
91 template<typename CreatedAtT = Aws::Utils::DateTime>
92 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
93 template<typename CreatedAtT = Aws::Utils::DateTime>
94 KeyPair& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
96
98
101 inline const ResourceLocation& GetLocation() const { return m_location; }
102 inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; }
103 template<typename LocationT = ResourceLocation>
104 void SetLocation(LocationT&& value) { m_locationHasBeenSet = true; m_location = std::forward<LocationT>(value); }
105 template<typename LocationT = ResourceLocation>
106 KeyPair& WithLocation(LocationT&& value) { SetLocation(std::forward<LocationT>(value)); return *this;}
108
110
113 inline ResourceType GetResourceType() const { return m_resourceType; }
114 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
115 inline void SetResourceType(ResourceType value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
116 inline KeyPair& WithResourceType(ResourceType value) { SetResourceType(value); return *this;}
118
120
126 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template<typename TagsT = Aws::Vector<Tag>>
129 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
130 template<typename TagsT = Aws::Vector<Tag>>
131 KeyPair& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
132 template<typename TagsT = Tag>
133 KeyPair& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
135
137
140 inline const Aws::String& GetFingerprint() const { return m_fingerprint; }
141 inline bool FingerprintHasBeenSet() const { return m_fingerprintHasBeenSet; }
142 template<typename FingerprintT = Aws::String>
143 void SetFingerprint(FingerprintT&& value) { m_fingerprintHasBeenSet = true; m_fingerprint = std::forward<FingerprintT>(value); }
144 template<typename FingerprintT = Aws::String>
145 KeyPair& WithFingerprint(FingerprintT&& value) { SetFingerprint(std::forward<FingerprintT>(value)); return *this;}
147 private:
148
149 Aws::String m_name;
150 bool m_nameHasBeenSet = false;
151
152 Aws::String m_arn;
153 bool m_arnHasBeenSet = false;
154
155 Aws::String m_supportCode;
156 bool m_supportCodeHasBeenSet = false;
157
158 Aws::Utils::DateTime m_createdAt{};
159 bool m_createdAtHasBeenSet = false;
160
161 ResourceLocation m_location;
162 bool m_locationHasBeenSet = false;
163
164 ResourceType m_resourceType{ResourceType::NOT_SET};
165 bool m_resourceTypeHasBeenSet = false;
166
167 Aws::Vector<Tag> m_tags;
168 bool m_tagsHasBeenSet = false;
169
170 Aws::String m_fingerprint;
171 bool m_fingerprintHasBeenSet = false;
172 };
173
174} // namespace Model
175} // namespace Lightsail
176} // namespace Aws
const Aws::Utils::DateTime & GetCreatedAt() const
Definition KeyPair.h:89
const Aws::Vector< Tag > & GetTags() const
Definition KeyPair.h:126
bool LocationHasBeenSet() const
Definition KeyPair.h:102
KeyPair & WithArn(ArnT &&value)
Definition KeyPair.h:67
const Aws::String & GetName() const
Definition KeyPair.h:49
AWS_LIGHTSAIL_API KeyPair()=default
KeyPair & WithName(NameT &&value)
Definition KeyPair.h:54
void SetFingerprint(FingerprintT &&value)
Definition KeyPair.h:143
ResourceType GetResourceType() const
Definition KeyPair.h:113
bool FingerprintHasBeenSet() const
Definition KeyPair.h:141
AWS_LIGHTSAIL_API KeyPair & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
Definition KeyPair.h:92
KeyPair & AddTags(TagsT &&value)
Definition KeyPair.h:133
void SetTags(TagsT &&value)
Definition KeyPair.h:129
void SetSupportCode(SupportCodeT &&value)
Definition KeyPair.h:79
KeyPair & WithLocation(LocationT &&value)
Definition KeyPair.h:106
const Aws::String & GetSupportCode() const
Definition KeyPair.h:76
bool ResourceTypeHasBeenSet() const
Definition KeyPair.h:114
KeyPair & WithTags(TagsT &&value)
Definition KeyPair.h:131
KeyPair & WithSupportCode(SupportCodeT &&value)
Definition KeyPair.h:81
void SetName(NameT &&value)
Definition KeyPair.h:52
KeyPair & WithResourceType(ResourceType value)
Definition KeyPair.h:116
const Aws::String & GetFingerprint() const
Definition KeyPair.h:140
KeyPair & WithCreatedAt(CreatedAtT &&value)
Definition KeyPair.h:94
void SetResourceType(ResourceType value)
Definition KeyPair.h:115
void SetLocation(LocationT &&value)
Definition KeyPair.h:104
bool CreatedAtHasBeenSet() const
Definition KeyPair.h:90
bool SupportCodeHasBeenSet() const
Definition KeyPair.h:77
void SetArn(ArnT &&value)
Definition KeyPair.h:65
AWS_LIGHTSAIL_API KeyPair(Aws::Utils::Json::JsonView jsonValue)
const ResourceLocation & GetLocation() const
Definition KeyPair.h:101
const Aws::String & GetArn() const
Definition KeyPair.h:62
KeyPair & WithFingerprint(FingerprintT &&value)
Definition KeyPair.h:145
AWS_LIGHTSAIL_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue