AWS SDK for C++

AWS SDK for C++ Version 1.11.783

Loading...
Searching...
No Matches
DeleteKeyPairResponse.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ec2/EC2_EXPORTS.h>
10#include <aws/ec2/model/ResponseMetadata.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Xml {
20class XmlDocument;
21} // namespace Xml
22} // namespace Utils
23namespace EC2 {
24namespace Model {
26 public:
27 AWS_EC2_API DeleteKeyPairResponse() = default;
30
32
35 inline bool GetReturn() const { return m_return; }
36 inline void SetReturn(bool value) {
37 m_returnHasBeenSet = true;
38 m_return = value;
39 }
40 inline DeleteKeyPairResponse& WithReturn(bool value) {
41 SetReturn(value);
42 return *this;
43 }
45
47
50 inline const Aws::String& GetKeyPairId() const { return m_keyPairId; }
51 template <typename KeyPairIdT = Aws::String>
52 void SetKeyPairId(KeyPairIdT&& value) {
53 m_keyPairIdHasBeenSet = true;
54 m_keyPairId = std::forward<KeyPairIdT>(value);
55 }
56 template <typename KeyPairIdT = Aws::String>
57 DeleteKeyPairResponse& WithKeyPairId(KeyPairIdT&& value) {
58 SetKeyPairId(std::forward<KeyPairIdT>(value));
59 return *this;
60 }
62
64
65 inline const ResponseMetadata& GetResponseMetadata() const { return m_responseMetadata; }
66 template <typename ResponseMetadataT = ResponseMetadata>
67 void SetResponseMetadata(ResponseMetadataT&& value) {
68 m_responseMetadataHasBeenSet = true;
69 m_responseMetadata = std::forward<ResponseMetadataT>(value);
70 }
71 template <typename ResponseMetadataT = ResponseMetadata>
72 DeleteKeyPairResponse& WithResponseMetadata(ResponseMetadataT&& value) {
73 SetResponseMetadata(std::forward<ResponseMetadataT>(value));
74 return *this;
75 }
77 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
78
79 private:
80 bool m_return{false};
81
82 Aws::String m_keyPairId;
83
84 ResponseMetadata m_responseMetadata;
85 Aws::Http::HttpResponseCode m_HttpResponseCode;
86 bool m_returnHasBeenSet = false;
87 bool m_keyPairIdHasBeenSet = false;
88 bool m_responseMetadataHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace EC2
93} // namespace Aws
Aws::Http::HttpResponseCode GetHttpResponseCode() const
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