AWS SDK for C++

AWS SDK for C++ Version 1.11.788

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/core/utils/memory/stl/AWSVector.h>
10#include <aws/iotwireless/IoTWirelessRequest.h>
11#include <aws/iotwireless/IoTWireless_EXPORTS.h>
12#include <aws/iotwireless/model/ExpressionType.h>
13#include <aws/iotwireless/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace IoTWireless {
19namespace Model {
20
24 public:
25 AWS_IOTWIRELESS_API CreateDestinationRequest() = 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 "CreateDestination"; }
32
33 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
34
36
39 inline const Aws::String& GetName() const { return m_name; }
40 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
41 template <typename NameT = Aws::String>
42 void SetName(NameT&& value) {
43 m_nameHasBeenSet = true;
44 m_name = std::forward<NameT>(value);
45 }
46 template <typename NameT = Aws::String>
48 SetName(std::forward<NameT>(value));
49 return *this;
50 }
52
54
57 inline ExpressionType GetExpressionType() const { return m_expressionType; }
58 inline bool ExpressionTypeHasBeenSet() const { return m_expressionTypeHasBeenSet; }
59 inline void SetExpressionType(ExpressionType value) {
60 m_expressionTypeHasBeenSet = true;
61 m_expressionType = value;
62 }
64 SetExpressionType(value);
65 return *this;
66 }
68
70
73 inline const Aws::String& GetExpression() const { return m_expression; }
74 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
75 template <typename ExpressionT = Aws::String>
76 void SetExpression(ExpressionT&& value) {
77 m_expressionHasBeenSet = true;
78 m_expression = std::forward<ExpressionT>(value);
79 }
80 template <typename ExpressionT = Aws::String>
82 SetExpression(std::forward<ExpressionT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::String& GetDescription() const { return m_description; }
92 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
93 template <typename DescriptionT = Aws::String>
94 void SetDescription(DescriptionT&& value) {
95 m_descriptionHasBeenSet = true;
96 m_description = std::forward<DescriptionT>(value);
97 }
98 template <typename DescriptionT = Aws::String>
100 SetDescription(std::forward<DescriptionT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
110 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
111 template <typename RoleArnT = Aws::String>
112 void SetRoleArn(RoleArnT&& value) {
113 m_roleArnHasBeenSet = true;
114 m_roleArn = std::forward<RoleArnT>(value);
115 }
116 template <typename RoleArnT = Aws::String>
118 SetRoleArn(std::forward<RoleArnT>(value));
119 return *this;
120 }
122
124
128 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
129 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
130 template <typename TagsT = Aws::Vector<Tag>>
131 void SetTags(TagsT&& value) {
132 m_tagsHasBeenSet = true;
133 m_tags = std::forward<TagsT>(value);
134 }
135 template <typename TagsT = Aws::Vector<Tag>>
137 SetTags(std::forward<TagsT>(value));
138 return *this;
139 }
140 template <typename TagsT = Tag>
142 m_tagsHasBeenSet = true;
143 m_tags.emplace_back(std::forward<TagsT>(value));
144 return *this;
145 }
147
149
160 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
161 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
162 template <typename ClientRequestTokenT = Aws::String>
163 void SetClientRequestToken(ClientRequestTokenT&& value) {
164 m_clientRequestTokenHasBeenSet = true;
165 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
166 }
167 template <typename ClientRequestTokenT = Aws::String>
168 CreateDestinationRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
169 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
170 return *this;
171 }
173 private:
174 Aws::String m_name;
175
176 ExpressionType m_expressionType{ExpressionType::NOT_SET};
177
178 Aws::String m_expression;
179
180 Aws::String m_description;
181
182 Aws::String m_roleArn;
183
184 Aws::Vector<Tag> m_tags;
185
186 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
187 bool m_nameHasBeenSet = false;
188 bool m_expressionTypeHasBeenSet = false;
189 bool m_expressionHasBeenSet = false;
190 bool m_descriptionHasBeenSet = false;
191 bool m_roleArnHasBeenSet = false;
192 bool m_tagsHasBeenSet = false;
193 bool m_clientRequestTokenHasBeenSet = true;
194};
195
196} // namespace Model
197} // namespace IoTWireless
198} // namespace Aws
AWS_IOTWIRELESS_API CreateDestinationRequest()=default
CreateDestinationRequest & WithName(NameT &&value)
virtual const char * GetServiceRequestName() const override
CreateDestinationRequest & WithExpressionType(ExpressionType value)
CreateDestinationRequest & WithTags(TagsT &&value)
AWS_IOTWIRELESS_API Aws::String SerializePayload() const override
CreateDestinationRequest & WithDescription(DescriptionT &&value)
CreateDestinationRequest & WithRoleArn(RoleArnT &&value)
CreateDestinationRequest & WithExpression(ExpressionT &&value)
CreateDestinationRequest & AddTags(TagsT &&value)
CreateDestinationRequest & WithClientRequestToken(ClientRequestTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector