AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
EnvironmentGitSourceRequest.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
31 public:
32 AWS_AMPLIFYGEN3_API EnvironmentGitSourceRequest() = default;
35 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetBranchMatchPatterns() const { return m_branchMatchPatterns; }
42 inline bool BranchMatchPatternsHasBeenSet() const { return m_branchMatchPatternsHasBeenSet; }
43 template <typename BranchMatchPatternsT = Aws::Vector<Aws::String>>
44 void SetBranchMatchPatterns(BranchMatchPatternsT&& value) {
45 m_branchMatchPatternsHasBeenSet = true;
46 m_branchMatchPatterns = std::forward<BranchMatchPatternsT>(value);
47 }
48 template <typename BranchMatchPatternsT = Aws::Vector<Aws::String>>
50 SetBranchMatchPatterns(std::forward<BranchMatchPatternsT>(value));
51 return *this;
52 }
53 template <typename BranchMatchPatternsT = Aws::String>
54 EnvironmentGitSourceRequest& AddBranchMatchPatterns(BranchMatchPatternsT&& value) {
55 m_branchMatchPatternsHasBeenSet = true;
56 m_branchMatchPatterns.emplace_back(std::forward<BranchMatchPatternsT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::Vector<DeploymentTriggerEvent>& GetDeploymentTriggerEvents() const { return m_deploymentTriggerEvents; }
66 inline bool DeploymentTriggerEventsHasBeenSet() const { return m_deploymentTriggerEventsHasBeenSet; }
67 template <typename DeploymentTriggerEventsT = Aws::Vector<DeploymentTriggerEvent>>
68 void SetDeploymentTriggerEvents(DeploymentTriggerEventsT&& value) {
69 m_deploymentTriggerEventsHasBeenSet = true;
70 m_deploymentTriggerEvents = std::forward<DeploymentTriggerEventsT>(value);
71 }
72 template <typename DeploymentTriggerEventsT = Aws::Vector<DeploymentTriggerEvent>>
73 EnvironmentGitSourceRequest& WithDeploymentTriggerEvents(DeploymentTriggerEventsT&& value) {
74 SetDeploymentTriggerEvents(std::forward<DeploymentTriggerEventsT>(value));
75 return *this;
76 }
78 m_deploymentTriggerEventsHasBeenSet = true;
79 m_deploymentTriggerEvents.push_back(value);
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_branchMatchPatterns;
85
86 Aws::Vector<DeploymentTriggerEvent> m_deploymentTriggerEvents;
87 bool m_branchMatchPatternsHasBeenSet = false;
88 bool m_deploymentTriggerEventsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace AmplifyGen3
93} // namespace Aws
AWS_AMPLIFYGEN3_API EnvironmentGitSourceRequest()=default
AWS_AMPLIFYGEN3_API EnvironmentGitSourceRequest & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetDeploymentTriggerEvents(DeploymentTriggerEventsT &&value)
EnvironmentGitSourceRequest & WithBranchMatchPatterns(BranchMatchPatternsT &&value)
AWS_AMPLIFYGEN3_API EnvironmentGitSourceRequest(Aws::Utils::Json::JsonView jsonValue)
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Vector< DeploymentTriggerEvent > & GetDeploymentTriggerEvents() const
const Aws::Vector< Aws::String > & GetBranchMatchPatterns() const
EnvironmentGitSourceRequest & AddBranchMatchPatterns(BranchMatchPatternsT &&value)
EnvironmentGitSourceRequest & WithDeploymentTriggerEvents(DeploymentTriggerEventsT &&value)
EnvironmentGitSourceRequest & AddDeploymentTriggerEvents(DeploymentTriggerEvent value)
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue