AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AutoBranchCreationConfig.h
1
6#pragma once
7#include <aws/amplify/Amplify_EXPORTS.h>
8#include <aws/amplify/model/Stage.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Amplify
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_AMPLIFY_API AutoBranchCreationConfig();
40 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Stage& GetStage() const{ return m_stage; }
48 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
49 inline void SetStage(const Stage& value) { m_stageHasBeenSet = true; m_stage = value; }
50 inline void SetStage(Stage&& value) { m_stageHasBeenSet = true; m_stage = std::move(value); }
51 inline AutoBranchCreationConfig& WithStage(const Stage& value) { SetStage(value); return *this;}
52 inline AutoBranchCreationConfig& WithStage(Stage&& value) { SetStage(std::move(value)); return *this;}
54
56
59 inline const Aws::String& GetFramework() const{ return m_framework; }
60 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
61 inline void SetFramework(const Aws::String& value) { m_frameworkHasBeenSet = true; m_framework = value; }
62 inline void SetFramework(Aws::String&& value) { m_frameworkHasBeenSet = true; m_framework = std::move(value); }
63 inline void SetFramework(const char* value) { m_frameworkHasBeenSet = true; m_framework.assign(value); }
64 inline AutoBranchCreationConfig& WithFramework(const Aws::String& value) { SetFramework(value); return *this;}
65 inline AutoBranchCreationConfig& WithFramework(Aws::String&& value) { SetFramework(std::move(value)); return *this;}
66 inline AutoBranchCreationConfig& WithFramework(const char* value) { SetFramework(value); return *this;}
68
70
73 inline bool GetEnableAutoBuild() const{ return m_enableAutoBuild; }
74 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
75 inline void SetEnableAutoBuild(bool value) { m_enableAutoBuildHasBeenSet = true; m_enableAutoBuild = value; }
76 inline AutoBranchCreationConfig& WithEnableAutoBuild(bool value) { SetEnableAutoBuild(value); return *this;}
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const{ return m_environmentVariables; }
84 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
85 inline void SetEnvironmentVariables(const Aws::Map<Aws::String, Aws::String>& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = value; }
86 inline void SetEnvironmentVariables(Aws::Map<Aws::String, Aws::String>&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::move(value); }
89 inline AutoBranchCreationConfig& AddEnvironmentVariables(const Aws::String& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
90 inline AutoBranchCreationConfig& AddEnvironmentVariables(Aws::String&& key, const Aws::String& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
91 inline AutoBranchCreationConfig& AddEnvironmentVariables(const Aws::String& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
92 inline AutoBranchCreationConfig& AddEnvironmentVariables(Aws::String&& key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), std::move(value)); return *this; }
93 inline AutoBranchCreationConfig& AddEnvironmentVariables(const char* key, Aws::String&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, std::move(value)); return *this; }
94 inline AutoBranchCreationConfig& AddEnvironmentVariables(Aws::String&& key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::move(key), value); return *this; }
95 inline AutoBranchCreationConfig& AddEnvironmentVariables(const char* key, const char* value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(key, value); return *this; }
97
99
104 inline const Aws::String& GetBasicAuthCredentials() const{ return m_basicAuthCredentials; }
105 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
106 inline void SetBasicAuthCredentials(const Aws::String& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = value; }
107 inline void SetBasicAuthCredentials(Aws::String&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::move(value); }
108 inline void SetBasicAuthCredentials(const char* value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials.assign(value); }
111 inline AutoBranchCreationConfig& WithBasicAuthCredentials(const char* value) { SetBasicAuthCredentials(value); return *this;}
113
115
118 inline bool GetEnableBasicAuth() const{ return m_enableBasicAuth; }
119 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
120 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
121 inline AutoBranchCreationConfig& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
123
125
131 inline bool GetEnablePerformanceMode() const{ return m_enablePerformanceMode; }
132 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
133 inline void SetEnablePerformanceMode(bool value) { m_enablePerformanceModeHasBeenSet = true; m_enablePerformanceMode = value; }
136
138
141 inline const Aws::String& GetBuildSpec() const{ return m_buildSpec; }
142 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
143 inline void SetBuildSpec(const Aws::String& value) { m_buildSpecHasBeenSet = true; m_buildSpec = value; }
144 inline void SetBuildSpec(Aws::String&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::move(value); }
145 inline void SetBuildSpec(const char* value) { m_buildSpecHasBeenSet = true; m_buildSpec.assign(value); }
146 inline AutoBranchCreationConfig& WithBuildSpec(const Aws::String& value) { SetBuildSpec(value); return *this;}
147 inline AutoBranchCreationConfig& WithBuildSpec(Aws::String&& value) { SetBuildSpec(std::move(value)); return *this;}
148 inline AutoBranchCreationConfig& WithBuildSpec(const char* value) { SetBuildSpec(value); return *this;}
150
152
155 inline bool GetEnablePullRequestPreview() const{ return m_enablePullRequestPreview; }
156 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
157 inline void SetEnablePullRequestPreview(bool value) { m_enablePullRequestPreviewHasBeenSet = true; m_enablePullRequestPreview = value; }
160
162
165 inline const Aws::String& GetPullRequestEnvironmentName() const{ return m_pullRequestEnvironmentName; }
166 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
167 inline void SetPullRequestEnvironmentName(const Aws::String& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = value; }
168 inline void SetPullRequestEnvironmentName(Aws::String&& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = std::move(value); }
169 inline void SetPullRequestEnvironmentName(const char* value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName.assign(value); }
174 private:
175
176 Stage m_stage;
177 bool m_stageHasBeenSet = false;
178
179 Aws::String m_framework;
180 bool m_frameworkHasBeenSet = false;
181
182 bool m_enableAutoBuild;
183 bool m_enableAutoBuildHasBeenSet = false;
184
185 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
186 bool m_environmentVariablesHasBeenSet = false;
187
188 Aws::String m_basicAuthCredentials;
189 bool m_basicAuthCredentialsHasBeenSet = false;
190
191 bool m_enableBasicAuth;
192 bool m_enableBasicAuthHasBeenSet = false;
193
194 bool m_enablePerformanceMode;
195 bool m_enablePerformanceModeHasBeenSet = false;
196
197 Aws::String m_buildSpec;
198 bool m_buildSpecHasBeenSet = false;
199
200 bool m_enablePullRequestPreview;
201 bool m_enablePullRequestPreviewHasBeenSet = false;
202
203 Aws::String m_pullRequestEnvironmentName;
204 bool m_pullRequestEnvironmentNameHasBeenSet = false;
205 };
206
207} // namespace Model
208} // namespace Amplify
209} // namespace Aws
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
AutoBranchCreationConfig & AddEnvironmentVariables(Aws::String &&key, Aws::String &&value)
AutoBranchCreationConfig & WithEnableBasicAuth(bool value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
void SetEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
AutoBranchCreationConfig & WithBasicAuthCredentials(Aws::String &&value)
AutoBranchCreationConfig & WithEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
AutoBranchCreationConfig & WithFramework(const Aws::String &value)
AutoBranchCreationConfig & WithStage(const Stage &value)
AutoBranchCreationConfig & WithBasicAuthCredentials(const Aws::String &value)
AutoBranchCreationConfig & WithPullRequestEnvironmentName(Aws::String &&value)
AutoBranchCreationConfig & AddEnvironmentVariables(const char *key, const char *value)
AWS_AMPLIFY_API AutoBranchCreationConfig(Aws::Utils::Json::JsonView jsonValue)
AutoBranchCreationConfig & WithPullRequestEnvironmentName(const char *value)
AutoBranchCreationConfig & AddEnvironmentVariables(const Aws::String &key, const Aws::String &value)
AutoBranchCreationConfig & WithEnablePullRequestPreview(bool value)
AutoBranchCreationConfig & AddEnvironmentVariables(Aws::String &&key, const Aws::String &value)
AutoBranchCreationConfig & WithBuildSpec(Aws::String &&value)
AutoBranchCreationConfig & WithFramework(const char *value)
AutoBranchCreationConfig & AddEnvironmentVariables(const Aws::String &key, Aws::String &&value)
void SetEnvironmentVariables(const Aws::Map< Aws::String, Aws::String > &value)
AutoBranchCreationConfig & WithEnablePerformanceMode(bool value)
AutoBranchCreationConfig & WithBuildSpec(const char *value)
AWS_AMPLIFY_API AutoBranchCreationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoBranchCreationConfig & WithBasicAuthCredentials(const char *value)
AutoBranchCreationConfig & AddEnvironmentVariables(const char *key, Aws::String &&value)
AutoBranchCreationConfig & WithEnvironmentVariables(Aws::Map< Aws::String, Aws::String > &&value)
AutoBranchCreationConfig & WithEnableAutoBuild(bool value)
AutoBranchCreationConfig & AddEnvironmentVariables(Aws::String &&key, const char *value)
AutoBranchCreationConfig & WithPullRequestEnvironmentName(const Aws::String &value)
AutoBranchCreationConfig & WithFramework(Aws::String &&value)
void SetPullRequestEnvironmentName(const Aws::String &value)
AutoBranchCreationConfig & WithBuildSpec(const Aws::String &value)
AutoBranchCreationConfig & WithStage(Stage &&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
Aws::Utils::Json::JsonValue JsonValue