AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
UpdateWorkerScheduleRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/deadline/DeadlineRequest.h>
10#include <aws/deadline/Deadline_EXPORTS.h>
11#include <aws/deadline/model/UpdatedSessionActionInfo.h>
12
13#include <utility>
14
15namespace Aws {
16namespace deadline {
17namespace Model {
18
22 public:
23 AWS_DEADLINE_API UpdateWorkerScheduleRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkerSchedule"; }
30
31 AWS_DEADLINE_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetFarmId() const { return m_farmId; }
38 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
39 template <typename FarmIdT = Aws::String>
40 void SetFarmId(FarmIdT&& value) {
41 m_farmIdHasBeenSet = true;
42 m_farmId = std::forward<FarmIdT>(value);
43 }
44 template <typename FarmIdT = Aws::String>
46 SetFarmId(std::forward<FarmIdT>(value));
47 return *this;
48 }
50
52
55 inline const Aws::String& GetFleetId() const { return m_fleetId; }
56 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
57 template <typename FleetIdT = Aws::String>
58 void SetFleetId(FleetIdT&& value) {
59 m_fleetIdHasBeenSet = true;
60 m_fleetId = std::forward<FleetIdT>(value);
61 }
62 template <typename FleetIdT = Aws::String>
64 SetFleetId(std::forward<FleetIdT>(value));
65 return *this;
66 }
68
70
73 inline const Aws::String& GetWorkerId() const { return m_workerId; }
74 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
75 template <typename WorkerIdT = Aws::String>
76 void SetWorkerId(WorkerIdT&& value) {
77 m_workerIdHasBeenSet = true;
78 m_workerId = std::forward<WorkerIdT>(value);
79 }
80 template <typename WorkerIdT = Aws::String>
82 SetWorkerId(std::forward<WorkerIdT>(value));
83 return *this;
84 }
86
88
91 inline const Aws::Map<Aws::String, UpdatedSessionActionInfo>& GetUpdatedSessionActions() const { return m_updatedSessionActions; }
92 inline bool UpdatedSessionActionsHasBeenSet() const { return m_updatedSessionActionsHasBeenSet; }
93 template <typename UpdatedSessionActionsT = Aws::Map<Aws::String, UpdatedSessionActionInfo>>
94 void SetUpdatedSessionActions(UpdatedSessionActionsT&& value) {
95 m_updatedSessionActionsHasBeenSet = true;
96 m_updatedSessionActions = std::forward<UpdatedSessionActionsT>(value);
97 }
98 template <typename UpdatedSessionActionsT = Aws::Map<Aws::String, UpdatedSessionActionInfo>>
99 UpdateWorkerScheduleRequest& WithUpdatedSessionActions(UpdatedSessionActionsT&& value) {
100 SetUpdatedSessionActions(std::forward<UpdatedSessionActionsT>(value));
101 return *this;
102 }
103 template <typename UpdatedSessionActionsKeyT = Aws::String, typename UpdatedSessionActionsValueT = UpdatedSessionActionInfo>
104 UpdateWorkerScheduleRequest& AddUpdatedSessionActions(UpdatedSessionActionsKeyT&& key, UpdatedSessionActionsValueT&& value) {
105 m_updatedSessionActionsHasBeenSet = true;
106 m_updatedSessionActions.emplace(std::forward<UpdatedSessionActionsKeyT>(key), std::forward<UpdatedSessionActionsValueT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_farmId;
112
113 Aws::String m_fleetId;
114
115 Aws::String m_workerId;
116
118 bool m_farmIdHasBeenSet = false;
119 bool m_fleetIdHasBeenSet = false;
120 bool m_workerIdHasBeenSet = false;
121 bool m_updatedSessionActionsHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace deadline
126} // namespace Aws
UpdateWorkerScheduleRequest & WithUpdatedSessionActions(UpdatedSessionActionsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateWorkerScheduleRequest & WithFleetId(FleetIdT &&value)
void SetUpdatedSessionActions(UpdatedSessionActionsT &&value)
UpdateWorkerScheduleRequest & WithFarmId(FarmIdT &&value)
UpdateWorkerScheduleRequest & WithWorkerId(WorkerIdT &&value)
AWS_DEADLINE_API UpdateWorkerScheduleRequest()=default
UpdateWorkerScheduleRequest & AddUpdatedSessionActions(UpdatedSessionActionsKeyT &&key, UpdatedSessionActionsValueT &&value)
const Aws::Map< Aws::String, UpdatedSessionActionInfo > & GetUpdatedSessionActions() const
AWS_DEADLINE_API Aws::String SerializePayload() const override
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String