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>
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>
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>
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>
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>
103 template<
typename LocationT = ResourceLocation>
104 void SetLocation(LocationT&& value) { m_locationHasBeenSet =
true; m_location = std::forward<LocationT>(value); }
105 template<
typename LocationT = ResourceLocation>
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>>
132 template<
typename TagsT = Tag>
133 KeyPair&
AddTags(TagsT&& value) { m_tagsHasBeenSet =
true; m_tags.emplace_back(std::forward<TagsT>(value));
return *
this; }
142 template<
typename Fingerpr
intT = Aws::String>
143 void SetFingerprint(FingerprintT&& value) { m_fingerprintHasBeenSet =
true; m_fingerprint = std::forward<FingerprintT>(value); }
144 template<
typename Fingerpr
intT = Aws::String>
150 bool m_nameHasBeenSet =
false;
153 bool m_arnHasBeenSet =
false;
156 bool m_supportCodeHasBeenSet =
false;
159 bool m_createdAtHasBeenSet =
false;
161 ResourceLocation m_location;
162 bool m_locationHasBeenSet =
false;
165 bool m_resourceTypeHasBeenSet =
false;
168 bool m_tagsHasBeenSet =
false;
171 bool m_fingerprintHasBeenSet =
false;
const Aws::Utils::DateTime & GetCreatedAt() const
const Aws::Vector< Tag > & GetTags() const
bool LocationHasBeenSet() const
KeyPair & WithArn(ArnT &&value)
const Aws::String & GetName() const
AWS_LIGHTSAIL_API KeyPair()=default
KeyPair & WithName(NameT &&value)
void SetFingerprint(FingerprintT &&value)
bool NameHasBeenSet() const
ResourceType GetResourceType() const
bool FingerprintHasBeenSet() const
AWS_LIGHTSAIL_API KeyPair & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCreatedAt(CreatedAtT &&value)
KeyPair & AddTags(TagsT &&value)
void SetTags(TagsT &&value)
void SetSupportCode(SupportCodeT &&value)
KeyPair & WithLocation(LocationT &&value)
const Aws::String & GetSupportCode() const
bool ResourceTypeHasBeenSet() const
KeyPair & WithTags(TagsT &&value)
KeyPair & WithSupportCode(SupportCodeT &&value)
void SetName(NameT &&value)
KeyPair & WithResourceType(ResourceType value)
const Aws::String & GetFingerprint() const
KeyPair & WithCreatedAt(CreatedAtT &&value)
void SetResourceType(ResourceType value)
bool TagsHasBeenSet() const
void SetLocation(LocationT &&value)
bool CreatedAtHasBeenSet() const
bool SupportCodeHasBeenSet() const
void SetArn(ArnT &&value)
AWS_LIGHTSAIL_API KeyPair(Aws::Utils::Json::JsonView jsonValue)
const ResourceLocation & GetLocation() const
const Aws::String & GetArn() const
bool ArnHasBeenSet() const
KeyPair & WithFingerprint(FingerprintT &&value)
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