AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateWorkerScheduleRequest.h
1
6#pragma once
7#include <aws/deadline/Deadline_EXPORTS.h>
8#include <aws/deadline/DeadlineRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/deadline/model/UpdatedSessionActionInfo.h>
12#include <utility>
13
14namespace Aws
15{
16namespace deadline
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DEADLINE_API UpdateWorkerScheduleRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkerSchedule"; }
33
34 AWS_DEADLINE_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetFarmId() const { return m_farmId; }
42 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
43 template<typename FarmIdT = Aws::String>
44 void SetFarmId(FarmIdT&& value) { m_farmIdHasBeenSet = true; m_farmId = std::forward<FarmIdT>(value); }
45 template<typename FarmIdT = Aws::String>
46 UpdateWorkerScheduleRequest& WithFarmId(FarmIdT&& value) { SetFarmId(std::forward<FarmIdT>(value)); return *this;}
48
50
53 inline const Aws::String& GetFleetId() const { return m_fleetId; }
54 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
55 template<typename FleetIdT = Aws::String>
56 void SetFleetId(FleetIdT&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::forward<FleetIdT>(value); }
57 template<typename FleetIdT = Aws::String>
58 UpdateWorkerScheduleRequest& WithFleetId(FleetIdT&& value) { SetFleetId(std::forward<FleetIdT>(value)); return *this;}
60
62
65 inline const Aws::String& GetWorkerId() const { return m_workerId; }
66 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
67 template<typename WorkerIdT = Aws::String>
68 void SetWorkerId(WorkerIdT&& value) { m_workerIdHasBeenSet = true; m_workerId = std::forward<WorkerIdT>(value); }
69 template<typename WorkerIdT = Aws::String>
70 UpdateWorkerScheduleRequest& WithWorkerId(WorkerIdT&& value) { SetWorkerId(std::forward<WorkerIdT>(value)); return *this;}
72
74
77 inline const Aws::Map<Aws::String, UpdatedSessionActionInfo>& GetUpdatedSessionActions() const { return m_updatedSessionActions; }
78 inline bool UpdatedSessionActionsHasBeenSet() const { return m_updatedSessionActionsHasBeenSet; }
79 template<typename UpdatedSessionActionsT = Aws::Map<Aws::String, UpdatedSessionActionInfo>>
80 void SetUpdatedSessionActions(UpdatedSessionActionsT&& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions = std::forward<UpdatedSessionActionsT>(value); }
81 template<typename UpdatedSessionActionsT = Aws::Map<Aws::String, UpdatedSessionActionInfo>>
82 UpdateWorkerScheduleRequest& WithUpdatedSessionActions(UpdatedSessionActionsT&& value) { SetUpdatedSessionActions(std::forward<UpdatedSessionActionsT>(value)); return *this;}
83 template<typename UpdatedSessionActionsKeyT = Aws::String, typename UpdatedSessionActionsValueT = UpdatedSessionActionInfo>
84 UpdateWorkerScheduleRequest& AddUpdatedSessionActions(UpdatedSessionActionsKeyT&& key, UpdatedSessionActionsValueT&& value) {
85 m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions.emplace(std::forward<UpdatedSessionActionsKeyT>(key), std::forward<UpdatedSessionActionsValueT>(value)); return *this;
86 }
88 private:
89
90 Aws::String m_farmId;
91 bool m_farmIdHasBeenSet = false;
92
93 Aws::String m_fleetId;
94 bool m_fleetIdHasBeenSet = false;
95
96 Aws::String m_workerId;
97 bool m_workerIdHasBeenSet = false;
98
100 bool m_updatedSessionActionsHasBeenSet = false;
101 };
102
103} // namespace Model
104} // namespace deadline
105} // 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