AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
AssociateTargetsWithJobRequest.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/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoT
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_IOT_API AssociateTargetsWithJobRequest() = 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 "AssociateTargetsWithJob"; }
36
37 AWS_IOT_API Aws::String SerializePayload() const override;
38
39 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetTargets() const { return m_targets; }
47 inline bool TargetsHasBeenSet() const { return m_targetsHasBeenSet; }
48 template<typename TargetsT = Aws::Vector<Aws::String>>
49 void SetTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets = std::forward<TargetsT>(value); }
50 template<typename TargetsT = Aws::Vector<Aws::String>>
51 AssociateTargetsWithJobRequest& WithTargets(TargetsT&& value) { SetTargets(std::forward<TargetsT>(value)); return *this;}
52 template<typename TargetsT = Aws::String>
53 AssociateTargetsWithJobRequest& AddTargets(TargetsT&& value) { m_targetsHasBeenSet = true; m_targets.emplace_back(std::forward<TargetsT>(value)); return *this; }
55
57
60 inline const Aws::String& GetJobId() const { return m_jobId; }
61 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
62 template<typename JobIdT = Aws::String>
63 void SetJobId(JobIdT&& value) { m_jobIdHasBeenSet = true; m_jobId = std::forward<JobIdT>(value); }
64 template<typename JobIdT = Aws::String>
65 AssociateTargetsWithJobRequest& WithJobId(JobIdT&& value) { SetJobId(std::forward<JobIdT>(value)); return *this;}
67
69
73 inline const Aws::String& GetComment() const { return m_comment; }
74 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
75 template<typename CommentT = Aws::String>
76 void SetComment(CommentT&& value) { m_commentHasBeenSet = true; m_comment = std::forward<CommentT>(value); }
77 template<typename CommentT = Aws::String>
78 AssociateTargetsWithJobRequest& WithComment(CommentT&& value) { SetComment(std::forward<CommentT>(value)); return *this;}
80
82
93 inline const Aws::String& GetNamespaceId() const { return m_namespaceId; }
94 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
95 template<typename NamespaceIdT = Aws::String>
96 void SetNamespaceId(NamespaceIdT&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::forward<NamespaceIdT>(value); }
97 template<typename NamespaceIdT = Aws::String>
98 AssociateTargetsWithJobRequest& WithNamespaceId(NamespaceIdT&& value) { SetNamespaceId(std::forward<NamespaceIdT>(value)); return *this;}
100 private:
101
102 Aws::Vector<Aws::String> m_targets;
103 bool m_targetsHasBeenSet = false;
104
105 Aws::String m_jobId;
106 bool m_jobIdHasBeenSet = false;
107
108 Aws::String m_comment;
109 bool m_commentHasBeenSet = false;
110
111 Aws::String m_namespaceId;
112 bool m_namespaceIdHasBeenSet = false;
113 };
114
115} // namespace Model
116} // namespace IoT
117} // 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