AWS SDK for C++  1.9.104
AWS SDK for C++
CancelHandshakeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Organizations
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "CancelHandshake"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
43  inline const Aws::String& GetHandshakeId() const{ return m_handshakeId; }
44 
51  inline bool HandshakeIdHasBeenSet() const { return m_handshakeIdHasBeenSet; }
52 
59  inline void SetHandshakeId(const Aws::String& value) { m_handshakeIdHasBeenSet = true; m_handshakeId = value; }
60 
67  inline void SetHandshakeId(Aws::String&& value) { m_handshakeIdHasBeenSet = true; m_handshakeId = std::move(value); }
68 
75  inline void SetHandshakeId(const char* value) { m_handshakeIdHasBeenSet = true; m_handshakeId.assign(value); }
76 
83  inline CancelHandshakeRequest& WithHandshakeId(const Aws::String& value) { SetHandshakeId(value); return *this;}
84 
91  inline CancelHandshakeRequest& WithHandshakeId(Aws::String&& value) { SetHandshakeId(std::move(value)); return *this;}
92 
99  inline CancelHandshakeRequest& WithHandshakeId(const char* value) { SetHandshakeId(value); return *this;}
100 
101  private:
102 
103  Aws::String m_handshakeId;
104  bool m_handshakeIdHasBeenSet;
105  };
106 
107 } // namespace Model
108 } // namespace Organizations
109 } // namespace Aws
Aws::Organizations::Model::CancelHandshakeRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Organizations::Model::CancelHandshakeRequest::WithHandshakeId
CancelHandshakeRequest & WithHandshakeId(Aws::String &&value)
Definition: CancelHandshakeRequest.h:91
Aws::Organizations::Model::CancelHandshakeRequest::CancelHandshakeRequest
CancelHandshakeRequest()
Aws::Organizations::Model::CancelHandshakeRequest::SetHandshakeId
void SetHandshakeId(const Aws::String &value)
Definition: CancelHandshakeRequest.h:59
Aws::Organizations::Model::CancelHandshakeRequest::HandshakeIdHasBeenSet
bool HandshakeIdHasBeenSet() const
Definition: CancelHandshakeRequest.h:51
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Organizations::Model::CancelHandshakeRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Organizations::Model::CancelHandshakeRequest::SetHandshakeId
void SetHandshakeId(Aws::String &&value)
Definition: CancelHandshakeRequest.h:67
Aws::Organizations::Model::CancelHandshakeRequest
Definition: CancelHandshakeRequest.h:22
AWS_ORGANIZATIONS_API
#define AWS_ORGANIZATIONS_API
Definition: Organizations_EXPORTS.h:28
Aws::Organizations::Model::CancelHandshakeRequest::GetHandshakeId
const Aws::String & GetHandshakeId() const
Definition: CancelHandshakeRequest.h:43
Aws::Organizations::OrganizationsRequest
Definition: OrganizationsRequest.h:17
Aws::Organizations::Model::CancelHandshakeRequest::WithHandshakeId
CancelHandshakeRequest & WithHandshakeId(const Aws::String &value)
Definition: CancelHandshakeRequest.h:83
AWSString.h
Aws
Definition: AccessManagementClient.h:15
Aws::Organizations::Model::CancelHandshakeRequest::WithHandshakeId
CancelHandshakeRequest & WithHandshakeId(const char *value)
Definition: CancelHandshakeRequest.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Organizations_EXPORTS.h
Aws::Organizations::Model::CancelHandshakeRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CancelHandshakeRequest.h:30
Aws::Organizations::Model::CancelHandshakeRequest::SetHandshakeId
void SetHandshakeId(const char *value)
Definition: CancelHandshakeRequest.h:75
OrganizationsRequest.h