AWS SDK for C++

AWS SDK for C++ Version 1.11.714

Loading...
Searching...
No Matches
CancelConnectionRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/partnercentral-account/PartnerCentralAccountRequest.h>
10#include <aws/partnercentral-account/PartnerCentralAccount_EXPORTS.h>
11#include <aws/partnercentral-account/model/ConnectionType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace PartnerCentralAccount {
17namespace Model {
18
22 public:
23 AWS_PARTNERCENTRALACCOUNT_API CancelConnectionRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CancelConnection"; }
30
31 AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override;
32
33 AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
34
36
39 inline const Aws::String& GetCatalog() const { return m_catalog; }
40 inline bool CatalogHasBeenSet() const { return m_catalogHasBeenSet; }
41 template <typename CatalogT = Aws::String>
42 void SetCatalog(CatalogT&& value) {
43 m_catalogHasBeenSet = true;
44 m_catalog = std::forward<CatalogT>(value);
45 }
46 template <typename CatalogT = Aws::String>
48 SetCatalog(std::forward<CatalogT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetIdentifier() const { return m_identifier; }
58 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
59 template <typename IdentifierT = Aws::String>
60 void SetIdentifier(IdentifierT&& value) {
61 m_identifierHasBeenSet = true;
62 m_identifier = std::forward<IdentifierT>(value);
63 }
64 template <typename IdentifierT = Aws::String>
66 SetIdentifier(std::forward<IdentifierT>(value));
67 return *this;
68 }
70
72
76 inline ConnectionType GetConnectionType() const { return m_connectionType; }
77 inline bool ConnectionTypeHasBeenSet() const { return m_connectionTypeHasBeenSet; }
78 inline void SetConnectionType(ConnectionType value) {
79 m_connectionTypeHasBeenSet = true;
80 m_connectionType = value;
81 }
83 SetConnectionType(value);
84 return *this;
85 }
87
89
93 inline const Aws::String& GetReason() const { return m_reason; }
94 inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; }
95 template <typename ReasonT = Aws::String>
96 void SetReason(ReasonT&& value) {
97 m_reasonHasBeenSet = true;
98 m_reason = std::forward<ReasonT>(value);
99 }
100 template <typename ReasonT = Aws::String>
102 SetReason(std::forward<ReasonT>(value));
103 return *this;
104 }
106
108
112 inline const Aws::String& GetClientToken() const { return m_clientToken; }
113 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
114 template <typename ClientTokenT = Aws::String>
115 void SetClientToken(ClientTokenT&& value) {
116 m_clientTokenHasBeenSet = true;
117 m_clientToken = std::forward<ClientTokenT>(value);
118 }
119 template <typename ClientTokenT = Aws::String>
121 SetClientToken(std::forward<ClientTokenT>(value));
122 return *this;
123 }
125 private:
126 Aws::String m_catalog;
127
128 Aws::String m_identifier;
129
130 ConnectionType m_connectionType{ConnectionType::NOT_SET};
131
132 Aws::String m_reason;
133
135 bool m_catalogHasBeenSet = false;
136 bool m_identifierHasBeenSet = false;
137 bool m_connectionTypeHasBeenSet = false;
138 bool m_reasonHasBeenSet = false;
139 bool m_clientTokenHasBeenSet = true;
140};
141
142} // namespace Model
143} // namespace PartnerCentralAccount
144} // namespace Aws
CancelConnectionRequest & WithClientToken(ClientTokenT &&value)
AWS_PARTNERCENTRALACCOUNT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CancelConnectionRequest & WithConnectionType(ConnectionType value)
CancelConnectionRequest & WithIdentifier(IdentifierT &&value)
CancelConnectionRequest & WithCatalog(CatalogT &&value)
AWS_PARTNERCENTRALACCOUNT_API CancelConnectionRequest()=default
AWS_PARTNERCENTRALACCOUNT_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String