AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateAccountAssociationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
11#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
12#include <aws/iot-managed-integrations/model/GeneralAuthorizationName.h>
13
14#include <utility>
15
16namespace Aws {
17namespace IoTManagedIntegrations {
18namespace Model {
19
23 public:
24 AWS_IOTMANAGEDINTEGRATIONS_API CreateAccountAssociationRequest() = default;
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 "CreateAccountAssociation"; }
31
32 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
33
35
40 inline const Aws::String& GetClientToken() const { return m_clientToken; }
41 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
42 template <typename ClientTokenT = Aws::String>
43 void SetClientToken(ClientTokenT&& value) {
44 m_clientTokenHasBeenSet = true;
45 m_clientToken = std::forward<ClientTokenT>(value);
46 }
47 template <typename ClientTokenT = Aws::String>
49 SetClientToken(std::forward<ClientTokenT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetConnectorDestinationId() const { return m_connectorDestinationId; }
59 inline bool ConnectorDestinationIdHasBeenSet() const { return m_connectorDestinationIdHasBeenSet; }
60 template <typename ConnectorDestinationIdT = Aws::String>
61 void SetConnectorDestinationId(ConnectorDestinationIdT&& value) {
62 m_connectorDestinationIdHasBeenSet = true;
63 m_connectorDestinationId = std::forward<ConnectorDestinationIdT>(value);
64 }
65 template <typename ConnectorDestinationIdT = Aws::String>
67 SetConnectorDestinationId(std::forward<ConnectorDestinationIdT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::String& GetName() const { return m_name; }
77 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
78 template <typename NameT = Aws::String>
79 void SetName(NameT&& value) {
80 m_nameHasBeenSet = true;
81 m_name = std::forward<NameT>(value);
82 }
83 template <typename NameT = Aws::String>
85 SetName(std::forward<NameT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
113 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
114 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
115 void SetTags(TagsT&& value) {
116 m_tagsHasBeenSet = true;
117 m_tags = std::forward<TagsT>(value);
118 }
119 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
121 SetTags(std::forward<TagsT>(value));
122 return *this;
123 }
124 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
125 CreateAccountAssociationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
126 m_tagsHasBeenSet = true;
127 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
128 return *this;
129 }
131
133
136 inline const GeneralAuthorizationName& GetGeneralAuthorization() const { return m_generalAuthorization; }
137 inline bool GeneralAuthorizationHasBeenSet() const { return m_generalAuthorizationHasBeenSet; }
138 template <typename GeneralAuthorizationT = GeneralAuthorizationName>
139 void SetGeneralAuthorization(GeneralAuthorizationT&& value) {
140 m_generalAuthorizationHasBeenSet = true;
141 m_generalAuthorization = std::forward<GeneralAuthorizationT>(value);
142 }
143 template <typename GeneralAuthorizationT = GeneralAuthorizationName>
145 SetGeneralAuthorization(std::forward<GeneralAuthorizationT>(value));
146 return *this;
147 }
149 private:
151
152 Aws::String m_connectorDestinationId;
153
154 Aws::String m_name;
155
156 Aws::String m_description;
157
159
160 GeneralAuthorizationName m_generalAuthorization;
161 bool m_clientTokenHasBeenSet = true;
162 bool m_connectorDestinationIdHasBeenSet = false;
163 bool m_nameHasBeenSet = false;
164 bool m_descriptionHasBeenSet = false;
165 bool m_tagsHasBeenSet = false;
166 bool m_generalAuthorizationHasBeenSet = false;
167};
168
169} // namespace Model
170} // namespace IoTManagedIntegrations
171} // namespace Aws
CreateAccountAssociationRequest & WithGeneralAuthorization(GeneralAuthorizationT &&value)
CreateAccountAssociationRequest & WithConnectorDestinationId(ConnectorDestinationIdT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API CreateAccountAssociationRequest()=default
CreateAccountAssociationRequest & WithClientToken(ClientTokenT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
CreateAccountAssociationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateAccountAssociationRequest & WithDescription(DescriptionT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String