AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
DeleteKeyPairResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ec2/EC2_EXPORTS.h>
9#include <aws/ec2/model/ResponseMetadata.h>
10
11#include <utility>
12
13namespace Aws {
14template <typename RESULT_TYPE>
15class AmazonWebServiceResult;
16
17namespace Utils {
18namespace Xml {
19class XmlDocument;
20} // namespace Xml
21} // namespace Utils
22namespace EC2 {
23namespace Model {
25 public:
26 AWS_EC2_API DeleteKeyPairResponse() = default;
29
31
34 inline bool GetReturn() const { return m_return; }
35 inline void SetReturn(bool value) {
36 m_returnHasBeenSet = true;
37 m_return = value;
38 }
39 inline DeleteKeyPairResponse& WithReturn(bool value) {
40 SetReturn(value);
41 return *this;
42 }
44
46
49 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
50 template <typename KeyPairIdT = Aws::String>
51 void SetKeyPairId(KeyPairIdT&& value) {
52 m_keyPairIdHasBeenSet = true;
53 m_keyPairId = std::forward<KeyPairIdT>(value);
54 }
55 template <typename KeyPairIdT = Aws::String>
56 DeleteKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) {
57 SetKeyPairId(std::forward<KeyPairIdT>(value));
58 return *this;
59 }
61
63
64 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
65 template <typename ResponseMetadataT = ResponseMetadata>
66 void SetResponseMetadata(ResponseMetadataT&& value) {
67 m_responseMetadataHasBeenSet = true;
68 m_responseMetadata = std::forward<ResponseMetadataT>(value);
69 }
70 template <typename ResponseMetadataT = ResponseMetadata>
71 DeleteKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) {
72 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
73 return *this;
74 }
76 private:
77 bool m_return{false};
78
79 Aws::String m_keyPairId;
80
81 ResponseMetadata m_responseMetadata;
82 bool m_returnHasBeenSet = false;
83 bool m_keyPairIdHasBeenSet = false;
84 bool m_responseMetadataHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace EC2
89} // namespace Aws
DeleteKeyPairResponse & WithReturn(bool value)
const ResponseMetadata & GetResponseMetadata() const
AWS_EC2_API DeleteKeyPairResponse & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
DeleteKeyPairResponse & WithResponseMetadata(ResponseMetadataT &&value)
void SetResponseMetadata(ResponseMetadataT &&value)
AWS_EC2_API DeleteKeyPairResponse(const Aws::AmazonWebServiceResult< Aws::Utils::Xml::XmlDocument > &result)
AWS_EC2_API DeleteKeyPairResponse()=default
DeleteKeyPairResponse & WithKeyPairId(KeyPairIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Xml::XmlDocument XmlDocument