AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateDestinationRequest.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/iotwireless/IoTWirelessRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iotwireless/model/ExpressionType.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/iotwireless/model/Tag.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace IoTWireless
19{
20namespace Model
21{
22
26 {
27 public:
28 AWS_IOTWIRELESS_API CreateDestinationRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateDestination"; }
35
36 AWS_IOTWIRELESS_API Aws::String SerializePayload() const override;
37
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template<typename NameT = Aws::String>
46 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
47 template<typename NameT = Aws::String>
48 CreateDestinationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
50
52
55 inline ExpressionType GetExpressionType() const { return m_expressionType; }
56 inline bool ExpressionTypeHasBeenSet() const { return m_expressionTypeHasBeenSet; }
57 inline void SetExpressionType(ExpressionType value) { m_expressionTypeHasBeenSet = true; m_expressionType = value; }
60
62
65 inline const Aws::String& GetExpression() const { return m_expression; }
66 inline bool ExpressionHasBeenSet() const { return m_expressionHasBeenSet; }
67 template<typename ExpressionT = Aws::String>
68 void SetExpression(ExpressionT&& value) { m_expressionHasBeenSet = true; m_expression = std::forward<ExpressionT>(value); }
69 template<typename ExpressionT = Aws::String>
70 CreateDestinationRequest& WithExpression(ExpressionT&& value) { SetExpression(std::forward<ExpressionT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
79 template<typename DescriptionT = Aws::String>
80 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
81 template<typename DescriptionT = Aws::String>
82 CreateDestinationRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
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) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
93 template<typename RoleArnT = Aws::String>
94 CreateDestinationRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
96
98
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template<typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
106 template<typename TagsT = Aws::Vector<Tag>>
107 CreateDestinationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
108 template<typename TagsT = Tag>
109 CreateDestinationRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
111
113
124 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
125 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
126 template<typename ClientRequestTokenT = Aws::String>
127 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
128 template<typename ClientRequestTokenT = Aws::String>
129 CreateDestinationRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
131 private:
132
133 Aws::String m_name;
134 bool m_nameHasBeenSet = false;
135
136 ExpressionType m_expressionType{ExpressionType::NOT_SET};
137 bool m_expressionTypeHasBeenSet = false;
138
139 Aws::String m_expression;
140 bool m_expressionHasBeenSet = false;
141
142 Aws::String m_description;
143 bool m_descriptionHasBeenSet = false;
144
145 Aws::String m_roleArn;
146 bool m_roleArnHasBeenSet = false;
147
148 Aws::Vector<Tag> m_tags;
149 bool m_tagsHasBeenSet = false;
150
151 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
152 bool m_clientRequestTokenHasBeenSet = true;
153 };
154
155} // namespace Model
156} // namespace IoTWireless
157} // 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