AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
44 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
45 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
46 inline UpdateWorkerScheduleRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
47 inline UpdateWorkerScheduleRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
48 inline UpdateWorkerScheduleRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
50
52
55 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
56 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
57 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
58 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
59 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
60 inline UpdateWorkerScheduleRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
61 inline UpdateWorkerScheduleRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
62 inline UpdateWorkerScheduleRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
64
66
69 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
70 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
71 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
72 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
73 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
74 inline UpdateWorkerScheduleRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
75 inline UpdateWorkerScheduleRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
76 inline UpdateWorkerScheduleRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
78
80
83 inline const Aws::Map<Aws::String, UpdatedSessionActionInfo>& GetUpdatedSessionActions() const{ return m_updatedSessionActions; }
84 inline bool UpdatedSessionActionsHasBeenSet() const { return m_updatedSessionActionsHasBeenSet; }
85 inline void SetUpdatedSessionActions(const Aws::Map<Aws::String, UpdatedSessionActionInfo>& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions = value; }
86 inline void SetUpdatedSessionActions(Aws::Map<Aws::String, UpdatedSessionActionInfo>&& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions = std::move(value); }
89 inline UpdateWorkerScheduleRequest& AddUpdatedSessionActions(const Aws::String& key, const UpdatedSessionActionInfo& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions.emplace(key, value); return *this; }
90 inline UpdateWorkerScheduleRequest& AddUpdatedSessionActions(Aws::String&& key, const UpdatedSessionActionInfo& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions.emplace(std::move(key), value); return *this; }
91 inline UpdateWorkerScheduleRequest& AddUpdatedSessionActions(const Aws::String& key, UpdatedSessionActionInfo&& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions.emplace(key, std::move(value)); return *this; }
92 inline UpdateWorkerScheduleRequest& AddUpdatedSessionActions(Aws::String&& key, UpdatedSessionActionInfo&& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions.emplace(std::move(key), std::move(value)); return *this; }
93 inline UpdateWorkerScheduleRequest& AddUpdatedSessionActions(const char* key, UpdatedSessionActionInfo&& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions.emplace(key, std::move(value)); return *this; }
94 inline UpdateWorkerScheduleRequest& AddUpdatedSessionActions(const char* key, const UpdatedSessionActionInfo& value) { m_updatedSessionActionsHasBeenSet = true; m_updatedSessionActions.emplace(key, value); return *this; }
96 private:
97
98 Aws::String m_farmId;
99 bool m_farmIdHasBeenSet = false;
100
101 Aws::String m_fleetId;
102 bool m_fleetIdHasBeenSet = false;
103
104 Aws::String m_workerId;
105 bool m_workerIdHasBeenSet = false;
106
108 bool m_updatedSessionActionsHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace deadline
113} // namespace Aws
UpdateWorkerScheduleRequest & WithFarmId(const Aws::String &value)
UpdateWorkerScheduleRequest & WithUpdatedSessionActions(Aws::Map< Aws::String, UpdatedSessionActionInfo > &&value)
UpdateWorkerScheduleRequest & WithWorkerId(Aws::String &&value)
UpdateWorkerScheduleRequest & WithWorkerId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateWorkerScheduleRequest & AddUpdatedSessionActions(const char *key, const UpdatedSessionActionInfo &value)
UpdateWorkerScheduleRequest & WithFleetId(const Aws::String &value)
UpdateWorkerScheduleRequest & AddUpdatedSessionActions(const Aws::String &key, UpdatedSessionActionInfo &&value)
UpdateWorkerScheduleRequest & AddUpdatedSessionActions(const char *key, UpdatedSessionActionInfo &&value)
UpdateWorkerScheduleRequest & AddUpdatedSessionActions(Aws::String &&key, const UpdatedSessionActionInfo &value)
void SetUpdatedSessionActions(Aws::Map< Aws::String, UpdatedSessionActionInfo > &&value)
void SetUpdatedSessionActions(const Aws::Map< Aws::String, UpdatedSessionActionInfo > &value)
UpdateWorkerScheduleRequest & WithFleetId(Aws::String &&value)
UpdateWorkerScheduleRequest & WithFarmId(Aws::String &&value)
const Aws::Map< Aws::String, UpdatedSessionActionInfo > & GetUpdatedSessionActions() const
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateWorkerScheduleRequest & AddUpdatedSessionActions(const Aws::String &key, const UpdatedSessionActionInfo &value)
UpdateWorkerScheduleRequest & AddUpdatedSessionActions(Aws::String &&key, UpdatedSessionActionInfo &&value)
UpdateWorkerScheduleRequest & WithFleetId(const char *value)
UpdateWorkerScheduleRequest & WithUpdatedSessionActions(const Aws::Map< Aws::String, UpdatedSessionActionInfo > &value)
UpdateWorkerScheduleRequest & WithWorkerId(const char *value)
UpdateWorkerScheduleRequest & WithFarmId(const char *value)
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