AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetTargets(const Aws::Vector<Aws::String>& value) { m_targetsHasBeenSet = true; m_targets = value; }
49 inline void SetTargets(Aws::Vector<Aws::String>&& value) { m_targetsHasBeenSet = true; m_targets = std::move(value); }
51 inline AssociateTargetsWithJobRequest& WithTargets(Aws::Vector<Aws::String>&& value) { SetTargets(std::move(value)); return *this;}
52 inline AssociateTargetsWithJobRequest& AddTargets(const Aws::String& value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
53 inline AssociateTargetsWithJobRequest& AddTargets(Aws::String&& value) { m_targetsHasBeenSet = true; m_targets.push_back(std::move(value)); return *this; }
54 inline AssociateTargetsWithJobRequest& AddTargets(const char* value) { m_targetsHasBeenSet = true; m_targets.push_back(value); return *this; }
56
58
61 inline const Aws::String& GetJobId() const{ return m_jobId; }
62 inline bool JobIdHasBeenSet() const { return m_jobIdHasBeenSet; }
63 inline void SetJobId(const Aws::String& value) { m_jobIdHasBeenSet = true; m_jobId = value; }
64 inline void SetJobId(Aws::String&& value) { m_jobIdHasBeenSet = true; m_jobId = std::move(value); }
65 inline void SetJobId(const char* value) { m_jobIdHasBeenSet = true; m_jobId.assign(value); }
66 inline AssociateTargetsWithJobRequest& WithJobId(const Aws::String& value) { SetJobId(value); return *this;}
67 inline AssociateTargetsWithJobRequest& WithJobId(Aws::String&& value) { SetJobId(std::move(value)); return *this;}
68 inline AssociateTargetsWithJobRequest& WithJobId(const char* value) { SetJobId(value); return *this;}
70
72
76 inline const Aws::String& GetComment() const{ return m_comment; }
77 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
78 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
79 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
80 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
81 inline AssociateTargetsWithJobRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
82 inline AssociateTargetsWithJobRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
83 inline AssociateTargetsWithJobRequest& WithComment(const char* value) { SetComment(value); return *this;}
85
87
98 inline const Aws::String& GetNamespaceId() const{ return m_namespaceId; }
99 inline bool NamespaceIdHasBeenSet() const { return m_namespaceIdHasBeenSet; }
100 inline void SetNamespaceId(const Aws::String& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = value; }
101 inline void SetNamespaceId(Aws::String&& value) { m_namespaceIdHasBeenSet = true; m_namespaceId = std::move(value); }
102 inline void SetNamespaceId(const char* value) { m_namespaceIdHasBeenSet = true; m_namespaceId.assign(value); }
103 inline AssociateTargetsWithJobRequest& WithNamespaceId(const Aws::String& value) { SetNamespaceId(value); return *this;}
104 inline AssociateTargetsWithJobRequest& WithNamespaceId(Aws::String&& value) { SetNamespaceId(std::move(value)); return *this;}
105 inline AssociateTargetsWithJobRequest& WithNamespaceId(const char* value) { SetNamespaceId(value); return *this;}
107 private:
108
109 Aws::Vector<Aws::String> m_targets;
110 bool m_targetsHasBeenSet = false;
111
112 Aws::String m_jobId;
113 bool m_jobIdHasBeenSet = false;
114
115 Aws::String m_comment;
116 bool m_commentHasBeenSet = false;
117
118 Aws::String m_namespaceId;
119 bool m_namespaceIdHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace IoT
124} // namespace Aws
AssociateTargetsWithJobRequest & AddTargets(const char *value)
AWS_IOT_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
void SetTargets(const Aws::Vector< Aws::String > &value)
AssociateTargetsWithJobRequest & WithNamespaceId(const char *value)
AssociateTargetsWithJobRequest & WithTargets(Aws::Vector< Aws::String > &&value)
AssociateTargetsWithJobRequest & WithNamespaceId(const Aws::String &value)
AssociateTargetsWithJobRequest & WithComment(Aws::String &&value)
AssociateTargetsWithJobRequest & WithTargets(const Aws::Vector< Aws::String > &value)
AssociateTargetsWithJobRequest & WithComment(const char *value)
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AssociateTargetsWithJobRequest & WithComment(const Aws::String &value)
AssociateTargetsWithJobRequest & WithJobId(const char *value)
AssociateTargetsWithJobRequest & AddTargets(Aws::String &&value)
AssociateTargetsWithJobRequest & AddTargets(const Aws::String &value)
AssociateTargetsWithJobRequest & WithNamespaceId(Aws::String &&value)
const Aws::Vector< Aws::String > & GetTargets() const
AssociateTargetsWithJobRequest & WithJobId(Aws::String &&value)
AssociateTargetsWithJobRequest & WithJobId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector