AWS SDK for C++

AWS SDK for C++ Version 1.11.554

All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Pages
Loading...
Searching...
No Matches
AssociateSecurityKeyRequest.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/connect/ConnectRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11#include <aws/core/utils/UUID.h>
12
13namespace Aws
14{
15namespace Connect
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_CONNECT_API AssociateSecurityKeyRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "AssociateSecurityKey"; }
32
33 AWS_CONNECT_API Aws::String SerializePayload() const override;
34
35
37
42 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
43 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
44 template<typename InstanceIdT = Aws::String>
45 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
46 template<typename InstanceIdT = Aws::String>
47 AssociateSecurityKeyRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
49
51
54 inline const Aws::String& GetKey() const { return m_key; }
55 inline bool KeyHasBeenSet() const { return m_keyHasBeenSet; }
56 template<typename KeyT = Aws::String>
57 void SetKey(KeyT&& value) { m_keyHasBeenSet = true; m_key = std::forward<KeyT>(value); }
58 template<typename KeyT = Aws::String>
59 AssociateSecurityKeyRequest& WithKey(KeyT&& value) { SetKey(std::forward<KeyT>(value)); return *this;}
61
63
70 inline const Aws::String& GetClientToken() const { return m_clientToken; }
71 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
72 template<typename ClientTokenT = Aws::String>
73 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
74 template<typename ClientTokenT = Aws::String>
75 AssociateSecurityKeyRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
77 private:
78
79 Aws::String m_instanceId;
80 bool m_instanceIdHasBeenSet = false;
81
82 Aws::String m_key;
83 bool m_keyHasBeenSet = false;
84
85 Aws::String m_clientToken;
86 bool m_clientTokenHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace Connect
91} // 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)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String