AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWorkerRequest.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/deadline/model/UpdatedWorkerStatus.h>
11#include <aws/deadline/model/WorkerCapabilities.h>
12#include <aws/deadline/model/HostPropertiesRequest.h>
13#include <utility>
14
15namespace Aws
16{
17namespace deadline
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_DEADLINE_API UpdateWorkerRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorker"; }
34
35 AWS_DEADLINE_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetFarmId() const{ return m_farmId; }
43 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
44 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
45 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
46 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
47 inline UpdateWorkerRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
48 inline UpdateWorkerRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
49 inline UpdateWorkerRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
51
53
56 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
57 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
58 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
59 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
60 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
61 inline UpdateWorkerRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
62 inline UpdateWorkerRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
63 inline UpdateWorkerRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
65
67
70 inline const Aws::String& GetWorkerId() const{ return m_workerId; }
71 inline bool WorkerIdHasBeenSet() const { return m_workerIdHasBeenSet; }
72 inline void SetWorkerId(const Aws::String& value) { m_workerIdHasBeenSet = true; m_workerId = value; }
73 inline void SetWorkerId(Aws::String&& value) { m_workerIdHasBeenSet = true; m_workerId = std::move(value); }
74 inline void SetWorkerId(const char* value) { m_workerIdHasBeenSet = true; m_workerId.assign(value); }
75 inline UpdateWorkerRequest& WithWorkerId(const Aws::String& value) { SetWorkerId(value); return *this;}
76 inline UpdateWorkerRequest& WithWorkerId(Aws::String&& value) { SetWorkerId(std::move(value)); return *this;}
77 inline UpdateWorkerRequest& WithWorkerId(const char* value) { SetWorkerId(value); return *this;}
79
81
84 inline const UpdatedWorkerStatus& GetStatus() const{ return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(const UpdatedWorkerStatus& value) { m_statusHasBeenSet = true; m_status = value; }
87 inline void SetStatus(UpdatedWorkerStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
88 inline UpdateWorkerRequest& WithStatus(const UpdatedWorkerStatus& value) { SetStatus(value); return *this;}
89 inline UpdateWorkerRequest& WithStatus(UpdatedWorkerStatus&& value) { SetStatus(std::move(value)); return *this;}
91
93
96 inline const WorkerCapabilities& GetCapabilities() const{ return m_capabilities; }
97 inline bool CapabilitiesHasBeenSet() const { return m_capabilitiesHasBeenSet; }
98 inline void SetCapabilities(const WorkerCapabilities& value) { m_capabilitiesHasBeenSet = true; m_capabilities = value; }
99 inline void SetCapabilities(WorkerCapabilities&& value) { m_capabilitiesHasBeenSet = true; m_capabilities = std::move(value); }
100 inline UpdateWorkerRequest& WithCapabilities(const WorkerCapabilities& value) { SetCapabilities(value); return *this;}
101 inline UpdateWorkerRequest& WithCapabilities(WorkerCapabilities&& value) { SetCapabilities(std::move(value)); return *this;}
103
105
108 inline const HostPropertiesRequest& GetHostProperties() const{ return m_hostProperties; }
109 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
110 inline void SetHostProperties(const HostPropertiesRequest& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = value; }
111 inline void SetHostProperties(HostPropertiesRequest&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::move(value); }
113 inline UpdateWorkerRequest& WithHostProperties(HostPropertiesRequest&& value) { SetHostProperties(std::move(value)); return *this;}
115 private:
116
117 Aws::String m_farmId;
118 bool m_farmIdHasBeenSet = false;
119
120 Aws::String m_fleetId;
121 bool m_fleetIdHasBeenSet = false;
122
123 Aws::String m_workerId;
124 bool m_workerIdHasBeenSet = false;
125
126 UpdatedWorkerStatus m_status;
127 bool m_statusHasBeenSet = false;
128
129 WorkerCapabilities m_capabilities;
130 bool m_capabilitiesHasBeenSet = false;
131
132 HostPropertiesRequest m_hostProperties;
133 bool m_hostPropertiesHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace deadline
138} // namespace Aws
UpdateWorkerRequest & WithHostProperties(const HostPropertiesRequest &value)
const HostPropertiesRequest & GetHostProperties() const
UpdateWorkerRequest & WithFarmId(const Aws::String &value)
void SetFleetId(const Aws::String &value)
UpdateWorkerRequest & WithFarmId(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
UpdateWorkerRequest & WithFarmId(const char *value)
void SetCapabilities(WorkerCapabilities &&value)
UpdateWorkerRequest & WithHostProperties(HostPropertiesRequest &&value)
UpdateWorkerRequest & WithFleetId(Aws::String &&value)
UpdateWorkerRequest & WithWorkerId(const char *value)
UpdateWorkerRequest & WithFleetId(const char *value)
const UpdatedWorkerStatus & GetStatus() const
void SetHostProperties(HostPropertiesRequest &&value)
void SetHostProperties(const HostPropertiesRequest &value)
UpdateWorkerRequest & WithStatus(const UpdatedWorkerStatus &value)
UpdateWorkerRequest & WithCapabilities(const WorkerCapabilities &value)
void SetFarmId(const Aws::String &value)
void SetWorkerId(const Aws::String &value)
void SetStatus(UpdatedWorkerStatus &&value)
UpdateWorkerRequest & WithWorkerId(Aws::String &&value)
void SetCapabilities(const WorkerCapabilities &value)
UpdateWorkerRequest & WithWorkerId(const Aws::String &value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
UpdateWorkerRequest & WithFleetId(const Aws::String &value)
UpdateWorkerRequest & WithCapabilities(WorkerCapabilities &&value)
const WorkerCapabilities & GetCapabilities() const
UpdateWorkerRequest & WithStatus(UpdatedWorkerStatus &&value)
void SetStatus(const UpdatedWorkerStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String