AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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() = default;
40 AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline Stage GetStage() const { return m_stage; }
48 inline bool StageHasBeenSet() const { return m_stageHasBeenSet; }
49 inline void SetStage(Stage value) { m_stageHasBeenSet = true; m_stage = value; }
50 inline AutoBranchCreationConfig& WithStage(Stage value) { SetStage(value); return *this;}
52
54
57 inline const Aws::String& GetFramework() const { return m_framework; }
58 inline bool FrameworkHasBeenSet() const { return m_frameworkHasBeenSet; }
59 template<typename FrameworkT = Aws::String>
60 void SetFramework(FrameworkT&& value) { m_frameworkHasBeenSet = true; m_framework = std::forward<FrameworkT>(value); }
61 template<typename FrameworkT = Aws::String>
62 AutoBranchCreationConfig& WithFramework(FrameworkT&& value) { SetFramework(std::forward<FrameworkT>(value)); return *this;}
64
66
69 inline bool GetEnableAutoBuild() const { return m_enableAutoBuild; }
70 inline bool EnableAutoBuildHasBeenSet() const { return m_enableAutoBuildHasBeenSet; }
71 inline void SetEnableAutoBuild(bool value) { m_enableAutoBuildHasBeenSet = true; m_enableAutoBuild = value; }
72 inline AutoBranchCreationConfig& WithEnableAutoBuild(bool value) { SetEnableAutoBuild(value); return *this;}
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetEnvironmentVariables() const { return m_environmentVariables; }
80 inline bool EnvironmentVariablesHasBeenSet() const { return m_environmentVariablesHasBeenSet; }
81 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
82 void SetEnvironmentVariables(EnvironmentVariablesT&& value) { m_environmentVariablesHasBeenSet = true; m_environmentVariables = std::forward<EnvironmentVariablesT>(value); }
83 template<typename EnvironmentVariablesT = Aws::Map<Aws::String, Aws::String>>
84 AutoBranchCreationConfig& WithEnvironmentVariables(EnvironmentVariablesT&& value) { SetEnvironmentVariables(std::forward<EnvironmentVariablesT>(value)); return *this;}
85 template<typename EnvironmentVariablesKeyT = Aws::String, typename EnvironmentVariablesValueT = Aws::String>
86 AutoBranchCreationConfig& AddEnvironmentVariables(EnvironmentVariablesKeyT&& key, EnvironmentVariablesValueT&& value) {
87 m_environmentVariablesHasBeenSet = true; m_environmentVariables.emplace(std::forward<EnvironmentVariablesKeyT>(key), std::forward<EnvironmentVariablesValueT>(value)); return *this;
88 }
90
92
97 inline const Aws::String& GetBasicAuthCredentials() const { return m_basicAuthCredentials; }
98 inline bool BasicAuthCredentialsHasBeenSet() const { return m_basicAuthCredentialsHasBeenSet; }
99 template<typename BasicAuthCredentialsT = Aws::String>
100 void SetBasicAuthCredentials(BasicAuthCredentialsT&& value) { m_basicAuthCredentialsHasBeenSet = true; m_basicAuthCredentials = std::forward<BasicAuthCredentialsT>(value); }
101 template<typename BasicAuthCredentialsT = Aws::String>
102 AutoBranchCreationConfig& WithBasicAuthCredentials(BasicAuthCredentialsT&& value) { SetBasicAuthCredentials(std::forward<BasicAuthCredentialsT>(value)); return *this;}
104
106
109 inline bool GetEnableBasicAuth() const { return m_enableBasicAuth; }
110 inline bool EnableBasicAuthHasBeenSet() const { return m_enableBasicAuthHasBeenSet; }
111 inline void SetEnableBasicAuth(bool value) { m_enableBasicAuthHasBeenSet = true; m_enableBasicAuth = value; }
112 inline AutoBranchCreationConfig& WithEnableBasicAuth(bool value) { SetEnableBasicAuth(value); return *this;}
114
116
122 inline bool GetEnablePerformanceMode() const { return m_enablePerformanceMode; }
123 inline bool EnablePerformanceModeHasBeenSet() const { return m_enablePerformanceModeHasBeenSet; }
124 inline void SetEnablePerformanceMode(bool value) { m_enablePerformanceModeHasBeenSet = true; m_enablePerformanceMode = value; }
127
129
132 inline const Aws::String& GetBuildSpec() const { return m_buildSpec; }
133 inline bool BuildSpecHasBeenSet() const { return m_buildSpecHasBeenSet; }
134 template<typename BuildSpecT = Aws::String>
135 void SetBuildSpec(BuildSpecT&& value) { m_buildSpecHasBeenSet = true; m_buildSpec = std::forward<BuildSpecT>(value); }
136 template<typename BuildSpecT = Aws::String>
137 AutoBranchCreationConfig& WithBuildSpec(BuildSpecT&& value) { SetBuildSpec(std::forward<BuildSpecT>(value)); return *this;}
139
141
144 inline bool GetEnablePullRequestPreview() const { return m_enablePullRequestPreview; }
145 inline bool EnablePullRequestPreviewHasBeenSet() const { return m_enablePullRequestPreviewHasBeenSet; }
146 inline void SetEnablePullRequestPreview(bool value) { m_enablePullRequestPreviewHasBeenSet = true; m_enablePullRequestPreview = value; }
149
151
154 inline const Aws::String& GetPullRequestEnvironmentName() const { return m_pullRequestEnvironmentName; }
155 inline bool PullRequestEnvironmentNameHasBeenSet() const { return m_pullRequestEnvironmentNameHasBeenSet; }
156 template<typename PullRequestEnvironmentNameT = Aws::String>
157 void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { m_pullRequestEnvironmentNameHasBeenSet = true; m_pullRequestEnvironmentName = std::forward<PullRequestEnvironmentNameT>(value); }
158 template<typename PullRequestEnvironmentNameT = Aws::String>
159 AutoBranchCreationConfig& WithPullRequestEnvironmentName(PullRequestEnvironmentNameT&& value) { SetPullRequestEnvironmentName(std::forward<PullRequestEnvironmentNameT>(value)); return *this;}
161 private:
162
163 Stage m_stage{Stage::NOT_SET};
164 bool m_stageHasBeenSet = false;
165
166 Aws::String m_framework;
167 bool m_frameworkHasBeenSet = false;
168
169 bool m_enableAutoBuild{false};
170 bool m_enableAutoBuildHasBeenSet = false;
171
172 Aws::Map<Aws::String, Aws::String> m_environmentVariables;
173 bool m_environmentVariablesHasBeenSet = false;
174
175 Aws::String m_basicAuthCredentials;
176 bool m_basicAuthCredentialsHasBeenSet = false;
177
178 bool m_enableBasicAuth{false};
179 bool m_enableBasicAuthHasBeenSet = false;
180
181 bool m_enablePerformanceMode{false};
182 bool m_enablePerformanceModeHasBeenSet = false;
183
184 Aws::String m_buildSpec;
185 bool m_buildSpecHasBeenSet = false;
186
187 bool m_enablePullRequestPreview{false};
188 bool m_enablePullRequestPreviewHasBeenSet = false;
189
190 Aws::String m_pullRequestEnvironmentName;
191 bool m_pullRequestEnvironmentNameHasBeenSet = false;
192 };
193
194} // namespace Model
195} // namespace Amplify
196} // namespace Aws
AWS_AMPLIFY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFY_API AutoBranchCreationConfig()=default
AutoBranchCreationConfig & WithEnableBasicAuth(bool value)
const Aws::Map< Aws::String, Aws::String > & GetEnvironmentVariables() const
AutoBranchCreationConfig & AddEnvironmentVariables(EnvironmentVariablesKeyT &&key, EnvironmentVariablesValueT &&value)
AutoBranchCreationConfig & WithFramework(FrameworkT &&value)
AWS_AMPLIFY_API AutoBranchCreationConfig(Aws::Utils::Json::JsonView jsonValue)
void SetBasicAuthCredentials(BasicAuthCredentialsT &&value)
AutoBranchCreationConfig & WithEnablePullRequestPreview(bool value)
AutoBranchCreationConfig & WithBasicAuthCredentials(BasicAuthCredentialsT &&value)
void SetEnvironmentVariables(EnvironmentVariablesT &&value)
AutoBranchCreationConfig & WithEnablePerformanceMode(bool value)
AutoBranchCreationConfig & WithBuildSpec(BuildSpecT &&value)
AWS_AMPLIFY_API AutoBranchCreationConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
AutoBranchCreationConfig & WithPullRequestEnvironmentName(PullRequestEnvironmentNameT &&value)
AutoBranchCreationConfig & WithEnableAutoBuild(bool value)
AutoBranchCreationConfig & WithEnvironmentVariables(EnvironmentVariablesT &&value)
AutoBranchCreationConfig & WithStage(Stage value)
void SetPullRequestEnvironmentName(PullRequestEnvironmentNameT &&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