AWS SDK for C++

AWS SDK for C++ Version 1.11.929

Loading...
Searching...
No Matches
StartCodegenJobRequest.h
1
6#pragma once
7#include <aws/amplifyuibuilder/AmplifyUIBuilderRequest.h>
8#include <aws/amplifyuibuilder/AmplifyUIBuilder_EXPORTS.h>
9#include <aws/amplifyuibuilder/model/StartCodegenJobData.h>
10#include <aws/core/utils/UUID.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Http {
17class URI;
18} // namespace Http
19namespace AmplifyUIBuilder {
20namespace Model {
21
25 public:
26 AWS_AMPLIFYUIBUILDER_API StartCodegenJobRequest() = 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 "StartCodegenJob"; }
33
34 AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override;
35
36 AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
37
39
42 inline const Aws::String& GetAppId() const { return m_appId; }
43 inline bool AppIdHasBeenSet() const { return m_appIdHasBeenSet; }
44 template <typename AppIdT = Aws::String>
45 void SetAppId(AppIdT&& value) {
46 m_appIdHasBeenSet = true;
47 m_appId = std::forward<AppIdT>(value);
48 }
49 template <typename AppIdT = Aws::String>
51 SetAppId(std::forward<AppIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetEnvironmentName() const { return m_environmentName; }
61 inline bool EnvironmentNameHasBeenSet() const { return m_environmentNameHasBeenSet; }
62 template <typename EnvironmentNameT = Aws::String>
63 void SetEnvironmentName(EnvironmentNameT&& value) {
64 m_environmentNameHasBeenSet = true;
65 m_environmentName = std::forward<EnvironmentNameT>(value);
66 }
67 template <typename EnvironmentNameT = Aws::String>
68 StartCodegenJobRequest& WithEnvironmentName(EnvironmentNameT&& value) {
69 SetEnvironmentName(std::forward<EnvironmentNameT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetClientToken() const { return m_clientToken; }
80 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
81 template <typename ClientTokenT = Aws::String>
82 void SetClientToken(ClientTokenT&& value) {
83 m_clientTokenHasBeenSet = true;
84 m_clientToken = std::forward<ClientTokenT>(value);
85 }
86 template <typename ClientTokenT = Aws::String>
87 StartCodegenJobRequest& WithClientToken(ClientTokenT&& value) {
88 SetClientToken(std::forward<ClientTokenT>(value));
89 return *this;
90 }
92
94
97 inline const StartCodegenJobData& GetCodegenJobToCreate() const { return m_codegenJobToCreate; }
98 inline bool CodegenJobToCreateHasBeenSet() const { return m_codegenJobToCreateHasBeenSet; }
99 template <typename CodegenJobToCreateT = StartCodegenJobData>
100 void SetCodegenJobToCreate(CodegenJobToCreateT&& value) {
101 m_codegenJobToCreateHasBeenSet = true;
102 m_codegenJobToCreate = std::forward<CodegenJobToCreateT>(value);
103 }
104 template <typename CodegenJobToCreateT = StartCodegenJobData>
105 StartCodegenJobRequest& WithCodegenJobToCreate(CodegenJobToCreateT&& value) {
106 SetCodegenJobToCreate(std::forward<CodegenJobToCreateT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_appId;
112
113 Aws::String m_environmentName;
114
116
117 StartCodegenJobData m_codegenJobToCreate;
118 bool m_appIdHasBeenSet = false;
119 bool m_environmentNameHasBeenSet = false;
120 bool m_clientTokenHasBeenSet = true;
121 bool m_codegenJobToCreateHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace AmplifyUIBuilder
126} // namespace Aws
AWS_AMPLIFYUIBUILDER_API StartCodegenJobRequest()=default
virtual const char * GetServiceRequestName() const override
AWS_AMPLIFYUIBUILDER_API Aws::String SerializePayload() const override
StartCodegenJobRequest & WithCodegenJobToCreate(CodegenJobToCreateT &&value)
AWS_AMPLIFYUIBUILDER_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
StartCodegenJobRequest & WithAppId(AppIdT &&value)
const StartCodegenJobData & GetCodegenJobToCreate() const
StartCodegenJobRequest & WithEnvironmentName(EnvironmentNameT &&value)
StartCodegenJobRequest & WithClientToken(ClientTokenT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String