AWS SDK for C++

AWS SDK for C++ Version 1.11.785

Loading...
Searching...
No Matches
BatchUpdateJobRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/deadline/DeadlineRequest.h>
11#include <aws/deadline/Deadline_EXPORTS.h>
12#include <aws/deadline/model/BatchUpdateJobItem.h>
13
14#include <utility>
15
16namespace Aws {
17namespace deadline {
18namespace Model {
19
23 public:
24 AWS_DEADLINE_API BatchUpdateJobRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "BatchUpdateJob"; }
31
32 AWS_DEADLINE_API Aws::String SerializePayload() const override;
33
35
37
41 inline const Aws::String& GetClientToken() const { return m_clientToken; }
42 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
43 template <typename ClientTokenT = Aws::String>
44 void SetClientToken(ClientTokenT&& value) {
45 m_clientTokenHasBeenSet = true;
46 m_clientToken = std::forward<ClientTokenT>(value);
47 }
48 template <typename ClientTokenT = Aws::String>
49 BatchUpdateJobRequest& WithClientToken(ClientTokenT&& value) {
50 SetClientToken(std::forward<ClientTokenT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<BatchUpdateJobItem>& GetJobs() const { return m_jobs; }
60 inline bool JobsHasBeenSet() const { return m_jobsHasBeenSet; }
61 template <typename JobsT = Aws::Vector<BatchUpdateJobItem>>
62 void SetJobs(JobsT&& value) {
63 m_jobsHasBeenSet = true;
64 m_jobs = std::forward<JobsT>(value);
65 }
66 template <typename JobsT = Aws::Vector<BatchUpdateJobItem>>
68 SetJobs(std::forward<JobsT>(value));
69 return *this;
70 }
71 template <typename JobsT = BatchUpdateJobItem>
73 m_jobsHasBeenSet = true;
74 m_jobs.emplace_back(std::forward<JobsT>(value));
75 return *this;
76 }
78 private:
80
82 bool m_clientTokenHasBeenSet = true;
83 bool m_jobsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace deadline
88} // namespace Aws
static Aws::Utils::UUID PseudoRandomUUID()
AWS_DEADLINE_API BatchUpdateJobRequest()=default
virtual const char * GetServiceRequestName() const override
BatchUpdateJobRequest & AddJobs(JobsT &&value)
BatchUpdateJobRequest & WithClientToken(ClientTokenT &&value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
BatchUpdateJobRequest & WithJobs(JobsT &&value)
const Aws::Vector< BatchUpdateJobItem > & GetJobs() const
AWS_DEADLINE_API Aws::String SerializePayload() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector