AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
EnvironmentGitSource.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/amplifygen3/model/DeploymentTriggerEvent.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AmplifyGen3 {
22namespace Model {
23
30 public:
31 AWS_AMPLIFYGEN3_API EnvironmentGitSource() = default;
32 AWS_AMPLIFYGEN3_API EnvironmentGitSource(Aws::Utils::Json::JsonView jsonValue);
34 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetBranchMatchPatterns() const { return m_branchMatchPatterns; }
41 inline bool BranchMatchPatternsHasBeenSet() const { return m_branchMatchPatternsHasBeenSet; }
42 template <typename BranchMatchPatternsT = Aws::Vector<Aws::String>>
43 void SetBranchMatchPatterns(BranchMatchPatternsT&& value) {
44 m_branchMatchPatternsHasBeenSet = true;
45 m_branchMatchPatterns = std::forward<BranchMatchPatternsT>(value);
46 }
47 template <typename BranchMatchPatternsT = Aws::Vector<Aws::String>>
48 EnvironmentGitSource& WithBranchMatchPatterns(BranchMatchPatternsT&& value) {
49 SetBranchMatchPatterns(std::forward<BranchMatchPatternsT>(value));
50 return *this;
51 }
52 template <typename BranchMatchPatternsT = Aws::String>
53 EnvironmentGitSource& AddBranchMatchPatterns(BranchMatchPatternsT&& value) {
54 m_branchMatchPatternsHasBeenSet = true;
55 m_branchMatchPatterns.emplace_back(std::forward<BranchMatchPatternsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Vector<DeploymentTriggerEvent>& GetDeploymentTriggerEvents() const { return m_deploymentTriggerEvents; }
65 inline bool DeploymentTriggerEventsHasBeenSet() const { return m_deploymentTriggerEventsHasBeenSet; }
66 template <typename DeploymentTriggerEventsT = Aws::Vector<DeploymentTriggerEvent>>
67 void SetDeploymentTriggerEvents(DeploymentTriggerEventsT&& value) {
68 m_deploymentTriggerEventsHasBeenSet = true;
69 m_deploymentTriggerEvents = std::forward<DeploymentTriggerEventsT>(value);
70 }
71 template <typename DeploymentTriggerEventsT = Aws::Vector<DeploymentTriggerEvent>>
72 EnvironmentGitSource& WithDeploymentTriggerEvents(DeploymentTriggerEventsT&& value) {
73 SetDeploymentTriggerEvents(std::forward<DeploymentTriggerEventsT>(value));
74 return *this;
75 }
77 m_deploymentTriggerEventsHasBeenSet = true;
78 m_deploymentTriggerEvents.push_back(value);
79 return *this;
80 }
82 private:
83 Aws::Vector<Aws::String> m_branchMatchPatterns;
84
85 Aws::Vector<DeploymentTriggerEvent> m_deploymentTriggerEvents;
86 bool m_branchMatchPatternsHasBeenSet = false;
87 bool m_deploymentTriggerEventsHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace AmplifyGen3
92} // namespace Aws
EnvironmentGitSource & AddBranchMatchPatterns(BranchMatchPatternsT &&value)
AWS_AMPLIFYGEN3_API EnvironmentGitSource()=default
EnvironmentGitSource & WithDeploymentTriggerEvents(DeploymentTriggerEventsT &&value)
EnvironmentGitSource & WithBranchMatchPatterns(BranchMatchPatternsT &&value)
void SetBranchMatchPatterns(BranchMatchPatternsT &&value)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_AMPLIFYGEN3_API EnvironmentGitSource & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DeploymentTriggerEvent > & GetDeploymentTriggerEvents() const
EnvironmentGitSource & AddDeploymentTriggerEvents(DeploymentTriggerEvent value)
void SetDeploymentTriggerEvents(DeploymentTriggerEventsT &&value)
const Aws::Vector< Aws::String > & GetBranchMatchPatterns() const
AWS_AMPLIFYGEN3_API EnvironmentGitSource(Aws::Utils::Json::JsonView jsonValue)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue