AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
StartTaskRequest.h
1
6#pragma once
7#include <aws/context/ContextRequest.h>
8#include <aws/context/Context_EXPORTS.h>
9#include <aws/context/model/AccessControlConfig.h>
10#include <aws/context/model/TaskInputConfiguration.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Context {
18namespace Model {
19
23 public:
24 AWS_CONTEXT_API StartTaskRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartTask"; }
31
32 AWS_CONTEXT_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetAgentContextId() const { return m_agentContextId; }
41 inline bool AgentContextIdHasBeenSet() const { return m_agentContextIdHasBeenSet; }
42 template <typename AgentContextIdT = Aws::String>
43 void SetAgentContextId(AgentContextIdT&& value) {
44 m_agentContextIdHasBeenSet = true;
45 m_agentContextId = std::forward<AgentContextIdT>(value);
46 }
47 template <typename AgentContextIdT = Aws::String>
48 StartTaskRequest& WithAgentContextId(AgentContextIdT&& value) {
49 SetAgentContextId(std::forward<AgentContextIdT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetClientToken() const { return m_clientToken; }
62 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 template <typename ClientTokenT = Aws::String>
64 void SetClientToken(ClientTokenT&& value) {
65 m_clientTokenHasBeenSet = true;
66 m_clientToken = std::forward<ClientTokenT>(value);
67 }
68 template <typename ClientTokenT = Aws::String>
69 StartTaskRequest& WithClientToken(ClientTokenT&& value) {
70 SetClientToken(std::forward<ClientTokenT>(value));
71 return *this;
72 }
74
76
80 inline const Aws::String& GetDescription() const { return m_description; }
81 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
82 template <typename DescriptionT = Aws::String>
83 void SetDescription(DescriptionT&& value) {
84 m_descriptionHasBeenSet = true;
85 m_description = std::forward<DescriptionT>(value);
86 }
87 template <typename DescriptionT = Aws::String>
88 StartTaskRequest& WithDescription(DescriptionT&& value) {
89 SetDescription(std::forward<DescriptionT>(value));
90 return *this;
91 }
93
95
99 inline const TaskInputConfiguration& GetInputConfiguration() const { return m_inputConfiguration; }
100 inline bool InputConfigurationHasBeenSet() const { return m_inputConfigurationHasBeenSet; }
101 template <typename InputConfigurationT = TaskInputConfiguration>
102 void SetInputConfiguration(InputConfigurationT&& value) {
103 m_inputConfigurationHasBeenSet = true;
104 m_inputConfiguration = std::forward<InputConfigurationT>(value);
105 }
106 template <typename InputConfigurationT = TaskInputConfiguration>
107 StartTaskRequest& WithInputConfiguration(InputConfigurationT&& value) {
108 SetInputConfiguration(std::forward<InputConfigurationT>(value));
109 return *this;
110 }
112
114
122 inline const AccessControlConfig& GetAccessControlConfig() const { return m_accessControlConfig; }
123 inline bool AccessControlConfigHasBeenSet() const { return m_accessControlConfigHasBeenSet; }
124 template <typename AccessControlConfigT = AccessControlConfig>
125 void SetAccessControlConfig(AccessControlConfigT&& value) {
126 m_accessControlConfigHasBeenSet = true;
127 m_accessControlConfig = std::forward<AccessControlConfigT>(value);
128 }
129 template <typename AccessControlConfigT = AccessControlConfig>
130 StartTaskRequest& WithAccessControlConfig(AccessControlConfigT&& value) {
131 SetAccessControlConfig(std::forward<AccessControlConfigT>(value));
132 return *this;
133 }
135 private:
136 Aws::String m_agentContextId;
137
139
140 Aws::String m_description;
141
142 TaskInputConfiguration m_inputConfiguration;
143
144 AccessControlConfig m_accessControlConfig;
145 bool m_agentContextIdHasBeenSet = false;
146 bool m_clientTokenHasBeenSet = true;
147 bool m_descriptionHasBeenSet = false;
148 bool m_inputConfigurationHasBeenSet = false;
149 bool m_accessControlConfigHasBeenSet = false;
150};
151
152} // namespace Model
153} // namespace Context
154} // namespace Aws
const TaskInputConfiguration & GetInputConfiguration() const
AWS_CONTEXT_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_CONTEXT_API StartTaskRequest()=default
void SetAgentContextId(AgentContextIdT &&value)
const Aws::String & GetDescription() const
StartTaskRequest & WithInputConfiguration(InputConfigurationT &&value)
const Aws::String & GetClientToken() const
StartTaskRequest & WithAgentContextId(AgentContextIdT &&value)
void SetAccessControlConfig(AccessControlConfigT &&value)
StartTaskRequest & WithDescription(DescriptionT &&value)
void SetDescription(DescriptionT &&value)
void SetClientToken(ClientTokenT &&value)
virtual const char * GetServiceRequestName() const override
const AccessControlConfig & GetAccessControlConfig() const
StartTaskRequest & WithClientToken(ClientTokenT &&value)
void SetInputConfiguration(InputConfigurationT &&value)
AWS_CONTEXT_API Aws::String SerializePayload() const override
StartTaskRequest & WithAccessControlConfig(AccessControlConfigT &&value)
const Aws::String & GetAgentContextId() const
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String