AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ImportKeyPairResponse.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11#include <aws/ec2/model/Tag.h>
12#include <utility>
13
14namespace Aws
15{
16template<typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils
20{
21namespace Xml
22{
23 class XmlDocument;
24} // namespace Xml
25} // namespace Utils
26namespace EC2
27{
28namespace Model
29{
31 {
32 public:
33 AWS_EC2_API ImportKeyPairResponse() = default;
36
37
39
46 inline const Aws::String& GetKeyFingerprint() const { return m_keyFingerprint; }
47 template<typename KeyFingerprintT = Aws::String>
48 void SetKeyFingerprint(KeyFingerprintT&& value) { m_keyFingerprintHasBeenSet = true; m_keyFingerprint = std::forward<KeyFingerprintT>(value); }
49 template<typename KeyFingerprintT = Aws::String>
50 ImportKeyPairResponse& WithKeyFingerprint(KeyFingerprintT&& value) { SetKeyFingerprint(std::forward<KeyFingerprintT>(value)); return *this;}
52
54
57 inline const Aws::String& GetKeyName() const { return m_keyName; }
58 template<typename KeyNameT = Aws::String>
59 void SetKeyName(KeyNameT&& value) { m_keyNameHasBeenSet = true; m_keyName = std::forward<KeyNameT>(value); }
60 template<typename KeyNameT = Aws::String>
61 ImportKeyPairResponse& WithKeyName(KeyNameT&& value) { SetKeyName(std::forward<KeyNameT>(value)); return *this;}
63
65
68 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
69 template<typename KeyPairIdT = Aws::String>
70 void SetKeyPairId(KeyPairIdT&& value) { m_keyPairIdHasBeenSet = true; m_keyPairId = std::forward<KeyPairIdT>(value); }
71 template<typename KeyPairIdT = Aws::String>
72 ImportKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) { SetKeyPairId(std::forward<KeyPairIdT>(value)); return *this;}
74
76
79 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
80 template<typename TagsT = Aws::Vector<Tag>>
81 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
82 template<typename TagsT = Aws::Vector<Tag>>
83 ImportKeyPairResponse& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
84 template<typename TagsT = Tag>
85 ImportKeyPairResponse& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
87
89
90 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
91 template<typename ResponseMetadataT = ResponseMetadata>
92 void SetResponseMetadata(ResponseMetadataT&& value) { m_responseMetadataHasBeenSet = true; m_responseMetadata = std::forward<ResponseMetadataT>(value); }
93 template<typename ResponseMetadataT = ResponseMetadata>
94 ImportKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) { SetResponseMetadata(std::forward<ResponseMetadataT>(value)); return *this;}
96 private:
97
98 Aws::String m_keyFingerprint;
99 bool m_keyFingerprintHasBeenSet = false;
100
101 Aws::String m_keyName;
102 bool m_keyNameHasBeenSet = false;
103
104 Aws::String m_keyPairId;
105 bool m_keyPairIdHasBeenSet = false;
106
107 Aws::Vector<Tag> m_tags;
108 bool m_tagsHasBeenSet = false;
109
110 ResponseMetadata m_responseMetadata;
111 bool m_responseMetadataHasBeenSet = false;
112 };
113
114} // namespace Model
115} // namespace EC2
116} // namespace Aws
ImportKeyPairResponse & WithKeyName(KeyNameT &&value)
AWS_EC2_API ImportKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API ImportKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
void SetResponseMetadata(ResponseMetadataT &&value)
void SetKeyFingerprint(KeyFingerprintT &&value)
AWS_EC2_API ImportKeyPairResponse()=default
ImportKeyPairResponse & AddTags(TagsT &&value)
const Aws::String & GetKeyFingerprint() const
ImportKeyPairResponse & WithKeyPairId(KeyPairIdT &&value)
ImportKeyPairResponse & WithResponseMetadata(ResponseMetadataT &&value)
const Aws::Vector< Tag > & GetTags() const
ImportKeyPairResponse & WithKeyFingerprint(KeyFingerprintT &&value)
const ResponseMetadata & GetResponseMetadata() const
ImportKeyPairResponse & WithTags(TagsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Xml::XmlDocument XmlDocument