AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
CreateDestinationRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot-managed-integrations/IoTManagedIntegrationsRequest.h>
10#include <aws/iot-managed-integrations/IoTManagedIntegrations_EXPORTS.h>
11#include <aws/iot-managed-integrations/model/DeliveryDestinationType.h>
12
13#include <utility>
14
15namespace Aws {
16namespace IoTManagedIntegrations {
17namespace Model {
18
22 public:
23 AWS_IOTMANAGEDINTEGRATIONS_API CreateDestinationRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "CreateDestination"; }
30
31 AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDeliveryDestinationArn() const { return m_deliveryDestinationArn; }
38 inline bool DeliveryDestinationArnHasBeenSet() const { return m_deliveryDestinationArnHasBeenSet; }
39 template <typename DeliveryDestinationArnT = Aws::String>
40 void SetDeliveryDestinationArn(DeliveryDestinationArnT&& value) {
41 m_deliveryDestinationArnHasBeenSet = true;
42 m_deliveryDestinationArn = std::forward<DeliveryDestinationArnT>(value);
43 }
44 template <typename DeliveryDestinationArnT = Aws::String>
45 CreateDestinationRequest& WithDeliveryDestinationArn(DeliveryDestinationArnT&& value) {
46 SetDeliveryDestinationArn(std::forward<DeliveryDestinationArnT>(value));
47 return *this;
48 }
50
52
55 inline DeliveryDestinationType GetDeliveryDestinationType() const { return m_deliveryDestinationType; }
56 inline bool DeliveryDestinationTypeHasBeenSet() const { return m_deliveryDestinationTypeHasBeenSet; }
58 m_deliveryDestinationTypeHasBeenSet = true;
59 m_deliveryDestinationType = value;
60 }
66
68
71 inline const Aws::String& GetName() const { return m_name; }
72 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
73 template <typename NameT = Aws::String>
74 void SetName(NameT&& value) {
75 m_nameHasBeenSet = true;
76 m_name = std::forward<NameT>(value);
77 }
78 template <typename NameT = Aws::String>
80 SetName(std::forward<NameT>(value));
81 return *this;
82 }
84
86
89 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
90 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
91 template <typename RoleArnT = Aws::String>
92 void SetRoleArn(RoleArnT&& value) {
93 m_roleArnHasBeenSet = true;
94 m_roleArn = std::forward<RoleArnT>(value);
95 }
96 template <typename RoleArnT = Aws::String>
98 SetRoleArn(std::forward<RoleArnT>(value));
99 return *this;
100 }
102
104
109 inline const Aws::String& GetClientToken() const { return m_clientToken; }
110 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
111 template <typename ClientTokenT = Aws::String>
112 void SetClientToken(ClientTokenT&& value) {
113 m_clientTokenHasBeenSet = true;
114 m_clientToken = std::forward<ClientTokenT>(value);
115 }
116 template <typename ClientTokenT = Aws::String>
118 SetClientToken(std::forward<ClientTokenT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::String& GetDescription() const { return m_description; }
128 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
129 template <typename DescriptionT = Aws::String>
130 void SetDescription(DescriptionT&& value) {
131 m_descriptionHasBeenSet = true;
132 m_description = std::forward<DescriptionT>(value);
133 }
134 template <typename DescriptionT = Aws::String>
136 SetDescription(std::forward<DescriptionT>(value));
137 return *this;
138 }
140 private:
141 Aws::String m_deliveryDestinationArn;
142
144
145 Aws::String m_name;
146
147 Aws::String m_roleArn;
148
150
151 Aws::String m_description;
152 bool m_deliveryDestinationArnHasBeenSet = false;
153 bool m_deliveryDestinationTypeHasBeenSet = false;
154 bool m_nameHasBeenSet = false;
155 bool m_roleArnHasBeenSet = false;
156 bool m_clientTokenHasBeenSet = true;
157 bool m_descriptionHasBeenSet = false;
158};
159
160} // namespace Model
161} // namespace IoTManagedIntegrations
162} // namespace Aws
CreateDestinationRequest & WithClientToken(ClientTokenT &&value)
AWS_IOTMANAGEDINTEGRATIONS_API CreateDestinationRequest()=default
AWS_IOTMANAGEDINTEGRATIONS_API Aws::String SerializePayload() const override
CreateDestinationRequest & WithDescription(DescriptionT &&value)
CreateDestinationRequest & WithDeliveryDestinationArn(DeliveryDestinationArnT &&value)
CreateDestinationRequest & WithDeliveryDestinationType(DeliveryDestinationType value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String