AWS SDK for C++  1.9.161
AWS SDK for C++
AssociateSecurityKeyRequest.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Connect
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 "AssociateSecurityKey"; }
31 
32  Aws::String SerializePayload() const override;
33 
34 
39  inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
40 
45  inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
46 
51  inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
52 
57  inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
58 
63  inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
64 
69  inline AssociateSecurityKeyRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
70 
75  inline AssociateSecurityKeyRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
76 
81  inline AssociateSecurityKeyRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
82 
83 
87  inline const Aws::String& GetKey() const{ return m_key; }
88 
92  inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
93 
97  inline void SetKey(const Aws::String& value) { m_keyHasBeenSet = true; m_key = value; }
98 
102  inline void SetKey(Aws::String&& value) { m_keyHasBeenSet = true; m_key = std::move(value); }
103 
107  inline void SetKey(const char* value) { m_keyHasBeenSet = true; m_key.assign(value); }
108 
112  inline AssociateSecurityKeyRequest& WithKey(const Aws::String& value) { SetKey(value); return *this;}
113 
117  inline AssociateSecurityKeyRequest& WithKey(Aws::String&& value) { SetKey(std::move(value)); return *this;}
118 
122  inline AssociateSecurityKeyRequest& WithKey(const char* value) { SetKey(value); return *this;}
123 
124  private:
125 
126  Aws::String m_instanceId;
127  bool m_instanceIdHasBeenSet;
128 
129  Aws::String m_key;
130  bool m_keyHasBeenSet;
131  };
132 
133 } // namespace Model
134 } // namespace Connect
135 } // namespace Aws
Aws::Connect::Model::AssociateSecurityKeyRequest::WithInstanceId
AssociateSecurityKeyRequest & WithInstanceId(const char *value)
Definition: AssociateSecurityKeyRequest.h:81
Aws::Connect::Model::AssociateSecurityKeyRequest::WithKey
AssociateSecurityKeyRequest & WithKey(Aws::String &&value)
Definition: AssociateSecurityKeyRequest.h:117
Aws::Connect::Model::AssociateSecurityKeyRequest::WithKey
AssociateSecurityKeyRequest & WithKey(const char *value)
Definition: AssociateSecurityKeyRequest.h:122
Aws::Connect::Model::AssociateSecurityKeyRequest::AssociateSecurityKeyRequest
AssociateSecurityKeyRequest()
Aws::Connect::Model::AssociateSecurityKeyRequest::SetInstanceId
void SetInstanceId(const Aws::String &value)
Definition: AssociateSecurityKeyRequest.h:51
Aws::Connect::Model::AssociateSecurityKeyRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Connect::Model::AssociateSecurityKeyRequest::WithInstanceId
AssociateSecurityKeyRequest & WithInstanceId(Aws::String &&value)
Definition: AssociateSecurityKeyRequest.h:75
Aws::Connect::Model::AssociateSecurityKeyRequest::SetInstanceId
void SetInstanceId(const char *value)
Definition: AssociateSecurityKeyRequest.h:63
Aws::Connect::Model::AssociateSecurityKeyRequest::InstanceIdHasBeenSet
bool InstanceIdHasBeenSet() const
Definition: AssociateSecurityKeyRequest.h:45
Aws::Connect::Model::AssociateSecurityKeyRequest::SetKey
void SetKey(const Aws::String &value)
Definition: AssociateSecurityKeyRequest.h:97
Aws::Connect::Model::AssociateSecurityKeyRequest::SetKey
void SetKey(Aws::String &&value)
Definition: AssociateSecurityKeyRequest.h:102
Aws::Connect::Model::AssociateSecurityKeyRequest::SetKey
void SetKey(const char *value)
Definition: AssociateSecurityKeyRequest.h:107
Aws::Connect::Model::AssociateSecurityKeyRequest::WithInstanceId
AssociateSecurityKeyRequest & WithInstanceId(const Aws::String &value)
Definition: AssociateSecurityKeyRequest.h:69
Aws::Connect::Model::AssociateSecurityKeyRequest::GetInstanceId
const Aws::String & GetInstanceId() const
Definition: AssociateSecurityKeyRequest.h:39
Aws::Connect::Model::AssociateSecurityKeyRequest::SetInstanceId
void SetInstanceId(Aws::String &&value)
Definition: AssociateSecurityKeyRequest.h:57
Aws::Connect::ConnectRequest
Definition: ConnectRequest.h:17
Aws::Connect::Model::AssociateSecurityKeyRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateSecurityKeyRequest.h:30
AWSString.h
Aws::Connect::Model::AssociateSecurityKeyRequest
Definition: AssociateSecurityKeyRequest.h:22
Aws::Connect::Model::AssociateSecurityKeyRequest::GetKey
const Aws::String & GetKey() const
Definition: AssociateSecurityKeyRequest.h:87
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Connect::Model::AssociateSecurityKeyRequest::KeyHasBeenSet
bool KeyHasBeenSet() const
Definition: AssociateSecurityKeyRequest.h:92
AWS_CONNECT_API
#define AWS_CONNECT_API
Definition: Connect_EXPORTS.h:28
Connect_EXPORTS.h
ConnectRequest.h
Aws::Connect::Model::AssociateSecurityKeyRequest::WithKey
AssociateSecurityKeyRequest & WithKey(const Aws::String &value)
Definition: AssociateSecurityKeyRequest.h:112