AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AssociateTargetsWithJobRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/iot/IoTRequest.h>
10#include <aws/iot/IoT_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Http {
16class URI;
17} // namespace Http
18namespace IoT {
19namespace Model {
20
24 public:
25 AWS_IOT_API AssociateTargetsWithJobRequest() = 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 "AssociateTargetsWithJob"; }
32
33 AWS_IOT_API Aws::String SerializePayload() const override;
34
35 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
36
38
41 inline const Aws::Vector<Aws::String>& GetTargets() const { return m_targets; }
42 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
43 template <typename TargetsT = Aws::Vector<Aws::String>>
44 void SetTargets(TargetsT&& value) {
45 m_targetsHasBeenSet = true;
46 m_targets = std::forward<TargetsT>(value);
47 }
48 template <typename TargetsT = Aws::Vector<Aws::String>>
50 SetTargets(std::forward<TargetsT>(value));
51 return *this;
52 }
53 template <typename TargetsT = Aws::String>
55 m_targetsHasBeenSet = true;
56 m_targets.emplace_back(std::forward<TargetsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetJobId() const { return m_jobId; }
66 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
67 template <typename JobIdT = Aws::String>
68 void SetJobId(JobIdT&& value) {
69 m_jobIdHasBeenSet = true;
70 m_jobId = std::forward<JobIdT>(value);
71 }
72 template <typename JobIdT = Aws::String>
74 SetJobId(std::forward<JobIdT>(value));
75 return *this;
76 }
78
80
84 inline const Aws::String& GetComment() const { return m_comment; }
85 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
86 template <typename CommentT = Aws::String>
87 void SetComment(CommentT&& value) {
88 m_commentHasBeenSet = true;
89 m_comment = std::forward<CommentT>(value);
90 }
91 template <typename CommentT = Aws::String>
93 SetComment(std::forward<CommentT>(value));
94 return *this;
95 }
97
99
110 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
111 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
112 template <typename NamespaceIdT = Aws::String>
113 void SetNamespaceId(NamespaceIdT&& value) {
114 m_namespaceIdHasBeenSet = true;
115 m_namespaceId = std::forward<NamespaceIdT>(value);
116 }
117 template <typename NamespaceIdT = Aws::String>
119 SetNamespaceId(std::forward<NamespaceIdT>(value));
120 return *this;
121 }
123 private:
124 Aws::Vector<Aws::String> m_targets;
125
126 Aws::String m_jobId;
127
128 Aws::String m_comment;
129
130 Aws::String m_namespaceId;
131 bool m_targetsHasBeenSet = false;
132 bool m_jobIdHasBeenSet = false;
133 bool m_commentHasBeenSet = false;
134 bool m_namespaceIdHasBeenSet = false;
135};
136
137} // namespace Model
138} // namespace IoT
139} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
AssociateTargetsWithJobRequest & WithComment(CommentT &&value)
virtual const char * GetServiceRequestName() const override
AssociateTargetsWithJobRequest & WithNamespaceId(NamespaceIdT &&value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AssociateTargetsWithJobRequest & WithTargets(TargetsT &&value)
AssociateTargetsWithJobRequest & WithJobId(JobIdT &&value)
AssociateTargetsWithJobRequest & AddTargets(TargetsT &&value)
const Aws::Vector< Aws::String > & GetTargets() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector