AWS SDK for C++

AWS SDK for C++ Version 1.11.690

Loading...
Searching...
No Matches
AssociateSecurityKeyRequest.h
1
6#pragma once
7#include <aws/connect/ConnectRequest.h>
8#include <aws/connect/Connect_EXPORTS.h>
9#include <aws/core/utils/UUID.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Connect {
16namespace Model {
17
21 public:
22 AWS_CONNECT_API AssociateSecurityKeyRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "AssociateSecurityKey"; }
29
30 AWS_CONNECT_API Aws::String SerializePayload() const override;
31
33
38 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
39 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
40 template <typename InstanceIdT = Aws::String>
41 void SetInstanceId(InstanceIdT&& value) {
42 m_instanceIdHasBeenSet = true;
43 m_instanceId = std::forward<InstanceIdT>(value);
44 }
45 template <typename InstanceIdT = Aws::String>
47 SetInstanceId(std::forward<InstanceIdT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetKey() const { return m_key; }
57 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
58 template <typename KeyT = Aws::String>
59 void SetKey(KeyT&& value) {
60 m_keyHasBeenSet = true;
61 m_key = std::forward<KeyT>(value);
62 }
63 template <typename KeyT = Aws::String>
65 SetKey(std::forward<KeyT>(value));
66 return *this;
67 }
69
71
78 inline const Aws::String& GetClientToken() const { return m_clientToken; }
79 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
80 template <typename ClientTokenT = Aws::String>
81 void SetClientToken(ClientTokenT&& value) {
82 m_clientTokenHasBeenSet = true;
83 m_clientToken = std::forward<ClientTokenT>(value);
84 }
85 template <typename ClientTokenT = Aws::String>
87 SetClientToken(std::forward<ClientTokenT>(value));
88 return *this;
89 }
91 private:
92 Aws::String m_instanceId;
93 bool m_instanceIdHasBeenSet = false;
94
95 Aws::String m_key;
96 bool m_keyHasBeenSet = false;
97
99 bool m_clientTokenHasBeenSet = true;
100};
101
102} // namespace Model
103} // namespace Connect
104} // namespace Aws
AWS_CONNECT_API Aws::String SerializePayload() const override
AssociateSecurityKeyRequest & WithClientToken(ClientTokenT &&value)
AssociateSecurityKeyRequest & WithInstanceId(InstanceIdT &&value)
AWS_CONNECT_API AssociateSecurityKeyRequest()=default
virtual const char * GetServiceRequestName() const override
AssociateSecurityKeyRequest & WithKey(KeyT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String