AWS SDK for C++  1.9.124
AWS SDK for C++
AssociateTargetsWithJobRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
27  {
28  public:
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 "AssociateTargetsWithJob"; }
36 
37  Aws::String SerializePayload() const override;
38 
39  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40 
41 
45  inline const Aws::Vector<Aws::String>& GetTargets() const{ return m_targets; }
46 
50  inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
51 
55  inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
56 
60  inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
61 
65  inline AssociateTargetsWithJobRequest& WithTargets(const Aws::Vector<Aws::String>& value) { SetTargets(value); return *this;}
66 
70  inline AssociateTargetsWithJobRequest& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
71 
75  inline AssociateTargetsWithJobRequest& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
76 
80  inline AssociateTargetsWithJobRequest& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
81 
85  inline AssociateTargetsWithJobRequest& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
86 
87 
91  inline const Aws::String& GetJobId() const{ return m_jobId; }
92 
96  inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
97 
101  inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
102 
106  inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
107 
111  inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
112 
116  inline AssociateTargetsWithJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
117 
121  inline AssociateTargetsWithJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
122 
126  inline AssociateTargetsWithJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
127 
128 
133  inline const Aws::String& GetComment() const{ return m_comment; }
134 
139  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
140 
145  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
146 
151  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
152 
157  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
158 
163  inline AssociateTargetsWithJobRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
164 
169  inline AssociateTargetsWithJobRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
170 
175  inline AssociateTargetsWithJobRequest& WithComment(const char* value) { SetComment(value); return *this;}
176 
177 
187  inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
188 
198  inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
199 
209  inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
210 
220  inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
221 
231  inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
232 
242  inline AssociateTargetsWithJobRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
243 
253  inline AssociateTargetsWithJobRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
254 
264  inline AssociateTargetsWithJobRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
265 
266  private:
267 
268  Aws::Vector<Aws::String> m_targets;
269  bool m_targetsHasBeenSet;
270 
271  Aws::String m_jobId;
272  bool m_jobIdHasBeenSet;
273 
274  Aws::String m_comment;
275  bool m_commentHasBeenSet;
276 
277  Aws::String m_namespaceId;
278  bool m_namespaceIdHasBeenSet;
279  };
280 
281 } // namespace Model
282 } // namespace IoT
283 } // namespace Aws
Aws::IoT::Model::AssociateTargetsWithJobRequest::GetTargets
const Aws::Vector< Aws::String > & GetTargets() const
Definition: AssociateTargetsWithJobRequest.h:45
Aws::IoT::Model::AssociateTargetsWithJobRequest::NamespaceIdHasBeenSet
bool NamespaceIdHasBeenSet() const
Definition: AssociateTargetsWithJobRequest.h:198
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetComment
void SetComment(const char *value)
Definition: AssociateTargetsWithJobRequest.h:157
Aws::IoT::Model::AssociateTargetsWithJobRequest
Definition: AssociateTargetsWithJobRequest.h:27
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithNamespaceId
AssociateTargetsWithJobRequest & WithNamespaceId(Aws::String &&value)
Definition: AssociateTargetsWithJobRequest.h:253
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithTargets
AssociateTargetsWithJobRequest & WithTargets(Aws::Vector< Aws::String > &&value)
Definition: AssociateTargetsWithJobRequest.h:70
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithComment
AssociateTargetsWithJobRequest & WithComment(Aws::String &&value)
Definition: AssociateTargetsWithJobRequest.h:169
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetNamespaceId
void SetNamespaceId(const Aws::String &value)
Definition: AssociateTargetsWithJobRequest.h:209
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::IoT::Model::AssociateTargetsWithJobRequest::GetJobId
const Aws::String & GetJobId() const
Definition: AssociateTargetsWithJobRequest.h:91
AWSVector.h
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithJobId
AssociateTargetsWithJobRequest & WithJobId(const Aws::String &value)
Definition: AssociateTargetsWithJobRequest.h:116
Aws::IoT::Model::AssociateTargetsWithJobRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::AssociateTargetsWithJobRequest::JobIdHasBeenSet
bool JobIdHasBeenSet() const
Definition: AssociateTargetsWithJobRequest.h:96
Aws::IoT::Model::AssociateTargetsWithJobRequest::GetNamespaceId
const Aws::String & GetNamespaceId() const
Definition: AssociateTargetsWithJobRequest.h:187
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithNamespaceId
AssociateTargetsWithJobRequest & WithNamespaceId(const char *value)
Definition: AssociateTargetsWithJobRequest.h:264
Aws::IoT::Model::AssociateTargetsWithJobRequest::GetComment
const Aws::String & GetComment() const
Definition: AssociateTargetsWithJobRequest.h:133
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetTargets
void SetTargets(Aws::Vector< Aws::String > &&value)
Definition: AssociateTargetsWithJobRequest.h:60
Aws::IoT::Model::AssociateTargetsWithJobRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AssociateTargetsWithJobRequest.h:35
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetComment
void SetComment(Aws::String &&value)
Definition: AssociateTargetsWithJobRequest.h:151
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithNamespaceId
AssociateTargetsWithJobRequest & WithNamespaceId(const Aws::String &value)
Definition: AssociateTargetsWithJobRequest.h:242
Aws::IoT::Model::AssociateTargetsWithJobRequest::TargetsHasBeenSet
bool TargetsHasBeenSet() const
Definition: AssociateTargetsWithJobRequest.h:50
Aws::IoT::Model::AssociateTargetsWithJobRequest::AddTargets
AssociateTargetsWithJobRequest & AddTargets(const char *value)
Definition: AssociateTargetsWithJobRequest.h:85
Aws::IoT::Model::AssociateTargetsWithJobRequest::AddTargets
AssociateTargetsWithJobRequest & AddTargets(const Aws::String &value)
Definition: AssociateTargetsWithJobRequest.h:75
AWSString.h
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithComment
AssociateTargetsWithJobRequest & WithComment(const char *value)
Definition: AssociateTargetsWithJobRequest.h:175
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetJobId
void SetJobId(Aws::String &&value)
Definition: AssociateTargetsWithJobRequest.h:106
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithComment
AssociateTargetsWithJobRequest & WithComment(const Aws::String &value)
Definition: AssociateTargetsWithJobRequest.h:163
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetNamespaceId
void SetNamespaceId(Aws::String &&value)
Definition: AssociateTargetsWithJobRequest.h:220
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetJobId
void SetJobId(const Aws::String &value)
Definition: AssociateTargetsWithJobRequest.h:101
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithJobId
AssociateTargetsWithJobRequest & WithJobId(Aws::String &&value)
Definition: AssociateTargetsWithJobRequest.h:121
Aws::IoT::Model::AssociateTargetsWithJobRequest::AssociateTargetsWithJobRequest
AssociateTargetsWithJobRequest()
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithJobId
AssociateTargetsWithJobRequest & WithJobId(const char *value)
Definition: AssociateTargetsWithJobRequest.h:126
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetJobId
void SetJobId(const char *value)
Definition: AssociateTargetsWithJobRequest.h:111
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetComment
void SetComment(const Aws::String &value)
Definition: AssociateTargetsWithJobRequest.h:145
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetNamespaceId
void SetNamespaceId(const char *value)
Definition: AssociateTargetsWithJobRequest.h:231
Aws::IoT::Model::AssociateTargetsWithJobRequest::WithTargets
AssociateTargetsWithJobRequest & WithTargets(const Aws::Vector< Aws::String > &value)
Definition: AssociateTargetsWithJobRequest.h:65
Aws::IoT::Model::AssociateTargetsWithJobRequest::AddTargets
AssociateTargetsWithJobRequest & AddTargets(Aws::String &&value)
Definition: AssociateTargetsWithJobRequest.h:80
IoTRequest.h
Aws::IoT::Model::AssociateTargetsWithJobRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::AssociateTargetsWithJobRequest::SetTargets
void SetTargets(const Aws::Vector< Aws::String > &value)
Definition: AssociateTargetsWithJobRequest.h:55
Aws::IoT::Model::AssociateTargetsWithJobRequest::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: AssociateTargetsWithJobRequest.h:139
IoT_EXPORTS.h