AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateCommandRequest.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/CommandNamespace.h>
11#include <aws/iot/model/CommandPayload.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/iot/model/CommandParameter.h>
14#include <aws/iot/model/Tag.h>
15#include <utility>
16
17namespace Aws
18{
19namespace IoT
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOT_API CreateCommandRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateCommand"; }
36
37 AWS_IOT_API Aws::String SerializePayload() const override;
38
39
41
45 inline const Aws::String& GetCommandId() const { return m_commandId; }
46 inline bool CommandIdHasBeenSet() const { return m_commandIdHasBeenSet; }
47 template<typename CommandIdT = Aws::String>
48 void SetCommandId(CommandIdT&& value) { m_commandIdHasBeenSet = true; m_commandId = std::forward<CommandIdT>(value); }
49 template<typename CommandIdT = Aws::String>
50 CreateCommandRequest& WithCommandId(CommandIdT&& value) { SetCommandId(std::forward<CommandIdT>(value)); return *this;}
52
54
58 inline CommandNamespace GetNamespace() const { return m_namespace; }
59 inline bool NamespaceHasBeenSet() const { return m_namespaceHasBeenSet; }
60 inline void SetNamespace(CommandNamespace value) { m_namespaceHasBeenSet = true; m_namespace = value; }
61 inline CreateCommandRequest& WithNamespace(CommandNamespace value) { SetNamespace(value); return *this;}
63
65
69 inline const Aws::String& GetDisplayName() const { return m_displayName; }
70 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
71 template<typename DisplayNameT = Aws::String>
72 void SetDisplayName(DisplayNameT&& value) { m_displayNameHasBeenSet = true; m_displayName = std::forward<DisplayNameT>(value); }
73 template<typename DisplayNameT = Aws::String>
74 CreateCommandRequest& WithDisplayName(DisplayNameT&& value) { SetDisplayName(std::forward<DisplayNameT>(value)); return *this;}
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template<typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
85 template<typename DescriptionT = Aws::String>
86 CreateCommandRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
88
90
98 inline const CommandPayload& GetPayload() const { return m_payload; }
99 inline bool PayloadHasBeenSet() const { return m_payloadHasBeenSet; }
100 template<typename PayloadT = CommandPayload>
101 void SetPayload(PayloadT&& value) { m_payloadHasBeenSet = true; m_payload = std::forward<PayloadT>(value); }
102 template<typename PayloadT = CommandPayload>
103 CreateCommandRequest& WithPayload(PayloadT&& value) { SetPayload(std::forward<PayloadT>(value)); return *this;}
105
107
114 inline const Aws::Vector<CommandParameter>& GetMandatoryParameters() const { return m_mandatoryParameters; }
115 inline bool MandatoryParametersHasBeenSet() const { return m_mandatoryParametersHasBeenSet; }
116 template<typename MandatoryParametersT = Aws::Vector<CommandParameter>>
117 void SetMandatoryParameters(MandatoryParametersT&& value) { m_mandatoryParametersHasBeenSet = true; m_mandatoryParameters = std::forward<MandatoryParametersT>(value); }
118 template<typename MandatoryParametersT = Aws::Vector<CommandParameter>>
119 CreateCommandRequest& WithMandatoryParameters(MandatoryParametersT&& value) { SetMandatoryParameters(std::forward<MandatoryParametersT>(value)); return *this;}
120 template<typename MandatoryParametersT = CommandParameter>
121 CreateCommandRequest& AddMandatoryParameters(MandatoryParametersT&& value) { m_mandatoryParametersHasBeenSet = true; m_mandatoryParameters.emplace_back(std::forward<MandatoryParametersT>(value)); return *this; }
123
125
132 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
133 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
134 template<typename RoleArnT = Aws::String>
135 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
136 template<typename RoleArnT = Aws::String>
137 CreateCommandRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
139
141
144 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template<typename TagsT = Aws::Vector<Tag>>
147 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
148 template<typename TagsT = Aws::Vector<Tag>>
149 CreateCommandRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
150 template<typename TagsT = Tag>
151 CreateCommandRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
153 private:
154
155 Aws::String m_commandId;
156 bool m_commandIdHasBeenSet = false;
157
159 bool m_namespaceHasBeenSet = false;
160
161 Aws::String m_displayName;
162 bool m_displayNameHasBeenSet = false;
163
164 Aws::String m_description;
165 bool m_descriptionHasBeenSet = false;
166
167 CommandPayload m_payload;
168 bool m_payloadHasBeenSet = false;
169
170 Aws::Vector<CommandParameter> m_mandatoryParameters;
171 bool m_mandatoryParametersHasBeenSet = false;
172
173 Aws::String m_roleArn;
174 bool m_roleArnHasBeenSet = false;
175
176 Aws::Vector<Tag> m_tags;
177 bool m_tagsHasBeenSet = false;
178 };
179
180} // namespace Model
181} // namespace IoT
182} // namespace Aws
void SetMandatoryParameters(MandatoryParametersT &&value)
CreateCommandRequest & WithMandatoryParameters(MandatoryParametersT &&value)
CreateCommandRequest & AddMandatoryParameters(MandatoryParametersT &&value)
const Aws::Vector< Tag > & GetTags() const
CreateCommandRequest & WithDescription(DescriptionT &&value)
const Aws::String & GetDisplayName() const
const Aws::Vector< CommandParameter > & GetMandatoryParameters() const
const CommandPayload & GetPayload() const
void SetDisplayName(DisplayNameT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
CreateCommandRequest & WithDisplayName(DisplayNameT &&value)
CreateCommandRequest & WithRoleArn(RoleArnT &&value)
CreateCommandRequest & WithNamespace(CommandNamespace value)
void SetNamespace(CommandNamespace value)
CreateCommandRequest & WithPayload(PayloadT &&value)
CreateCommandRequest & WithTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetCommandId() const
CreateCommandRequest & AddTags(TagsT &&value)
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API CreateCommandRequest()=default
CreateCommandRequest & WithCommandId(CommandIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector