AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkerRequest.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/HostPropertiesRequest.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace deadline
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_DEADLINE_API CreateWorkerRequest();
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 "CreateWorker"; }
33
34 AWS_DEADLINE_API Aws::String SerializePayload() const override;
35
37
38
40
43 inline const Aws::String& GetFarmId() const{ return m_farmId; }
44 inline bool FarmIdHasBeenSet() const { return m_farmIdHasBeenSet; }
45 inline void SetFarmId(const Aws::String& value) { m_farmIdHasBeenSet = true; m_farmId = value; }
46 inline void SetFarmId(Aws::String&& value) { m_farmIdHasBeenSet = true; m_farmId = std::move(value); }
47 inline void SetFarmId(const char* value) { m_farmIdHasBeenSet = true; m_farmId.assign(value); }
48 inline CreateWorkerRequest& WithFarmId(const Aws::String& value) { SetFarmId(value); return *this;}
49 inline CreateWorkerRequest& WithFarmId(Aws::String&& value) { SetFarmId(std::move(value)); return *this;}
50 inline CreateWorkerRequest& WithFarmId(const char* value) { SetFarmId(value); return *this;}
52
54
57 inline const Aws::String& GetFleetId() const{ return m_fleetId; }
58 inline bool FleetIdHasBeenSet() const { return m_fleetIdHasBeenSet; }
59 inline void SetFleetId(const Aws::String& value) { m_fleetIdHasBeenSet = true; m_fleetId = value; }
60 inline void SetFleetId(Aws::String&& value) { m_fleetIdHasBeenSet = true; m_fleetId = std::move(value); }
61 inline void SetFleetId(const char* value) { m_fleetIdHasBeenSet = true; m_fleetId.assign(value); }
62 inline CreateWorkerRequest& WithFleetId(const Aws::String& value) { SetFleetId(value); return *this;}
63 inline CreateWorkerRequest& WithFleetId(Aws::String&& value) { SetFleetId(std::move(value)); return *this;}
64 inline CreateWorkerRequest& WithFleetId(const char* value) { SetFleetId(value); return *this;}
66
68
71 inline const HostPropertiesRequest& GetHostProperties() const{ return m_hostProperties; }
72 inline bool HostPropertiesHasBeenSet() const { return m_hostPropertiesHasBeenSet; }
73 inline void SetHostProperties(const HostPropertiesRequest& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = value; }
74 inline void SetHostProperties(HostPropertiesRequest&& value) { m_hostPropertiesHasBeenSet = true; m_hostProperties = std::move(value); }
76 inline CreateWorkerRequest& WithHostProperties(HostPropertiesRequest&& value) { SetHostProperties(std::move(value)); return *this;}
78
80
84 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
85 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
86 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
87 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
88 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
89 inline CreateWorkerRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
90 inline CreateWorkerRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
91 inline CreateWorkerRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
93 private:
94
95 Aws::String m_farmId;
96 bool m_farmIdHasBeenSet = false;
97
98 Aws::String m_fleetId;
99 bool m_fleetIdHasBeenSet = false;
100
101 HostPropertiesRequest m_hostProperties;
102 bool m_hostPropertiesHasBeenSet = false;
103
104 Aws::String m_clientToken;
105 bool m_clientTokenHasBeenSet = false;
106 };
107
108} // namespace Model
109} // namespace deadline
110} // namespace Aws
void SetFleetId(const Aws::String &value)
const HostPropertiesRequest & GetHostProperties() const
CreateWorkerRequest & WithClientToken(const Aws::String &value)
CreateWorkerRequest & WithFarmId(Aws::String &&value)
CreateWorkerRequest & WithFarmId(const Aws::String &value)
CreateWorkerRequest & WithClientToken(const char *value)
AWS_DEADLINE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateWorkerRequest & WithFleetId(const char *value)
CreateWorkerRequest & WithFarmId(const char *value)
void SetHostProperties(HostPropertiesRequest &&value)
CreateWorkerRequest & WithHostProperties(const HostPropertiesRequest &value)
void SetClientToken(const Aws::String &value)
CreateWorkerRequest & WithClientToken(Aws::String &&value)
void SetFarmId(const Aws::String &value)
AWS_DEADLINE_API Aws::String SerializePayload() const override
CreateWorkerRequest & WithFleetId(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateWorkerRequest & WithFleetId(Aws::String &&value)
void SetHostProperties(const HostPropertiesRequest &value)
CreateWorkerRequest & WithHostProperties(HostPropertiesRequest &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String