AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GitConfiguration.h
1
6#pragma once
7#include <aws/codepipeline/CodePipeline_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codepipeline/model/GitPushFilter.h>
11#include <aws/codepipeline/model/GitPullRequestFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodePipeline
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_CODEPIPELINE_API GitConfiguration();
42 AWS_CODEPIPELINE_API GitConfiguration(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEPIPELINE_API GitConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
54 inline const Aws::String& GetSourceActionName() const{ return m_sourceActionName; }
55 inline bool SourceActionNameHasBeenSet() const { return m_sourceActionNameHasBeenSet; }
56 inline void SetSourceActionName(const Aws::String& value) { m_sourceActionNameHasBeenSet = true; m_sourceActionName = value; }
57 inline void SetSourceActionName(Aws::String&& value) { m_sourceActionNameHasBeenSet = true; m_sourceActionName = std::move(value); }
58 inline void SetSourceActionName(const char* value) { m_sourceActionNameHasBeenSet = true; m_sourceActionName.assign(value); }
59 inline GitConfiguration& WithSourceActionName(const Aws::String& value) { SetSourceActionName(value); return *this;}
60 inline GitConfiguration& WithSourceActionName(Aws::String&& value) { SetSourceActionName(std::move(value)); return *this;}
61 inline GitConfiguration& WithSourceActionName(const char* value) { SetSourceActionName(value); return *this;}
63
65
69 inline const Aws::Vector<GitPushFilter>& GetPush() const{ return m_push; }
70 inline bool PushHasBeenSet() const { return m_pushHasBeenSet; }
71 inline void SetPush(const Aws::Vector<GitPushFilter>& value) { m_pushHasBeenSet = true; m_push = value; }
72 inline void SetPush(Aws::Vector<GitPushFilter>&& value) { m_pushHasBeenSet = true; m_push = std::move(value); }
73 inline GitConfiguration& WithPush(const Aws::Vector<GitPushFilter>& value) { SetPush(value); return *this;}
74 inline GitConfiguration& WithPush(Aws::Vector<GitPushFilter>&& value) { SetPush(std::move(value)); return *this;}
75 inline GitConfiguration& AddPush(const GitPushFilter& value) { m_pushHasBeenSet = true; m_push.push_back(value); return *this; }
76 inline GitConfiguration& AddPush(GitPushFilter&& value) { m_pushHasBeenSet = true; m_push.push_back(std::move(value)); return *this; }
78
80
84 inline const Aws::Vector<GitPullRequestFilter>& GetPullRequest() const{ return m_pullRequest; }
85 inline bool PullRequestHasBeenSet() const { return m_pullRequestHasBeenSet; }
86 inline void SetPullRequest(const Aws::Vector<GitPullRequestFilter>& value) { m_pullRequestHasBeenSet = true; m_pullRequest = value; }
87 inline void SetPullRequest(Aws::Vector<GitPullRequestFilter>&& value) { m_pullRequestHasBeenSet = true; m_pullRequest = std::move(value); }
89 inline GitConfiguration& WithPullRequest(Aws::Vector<GitPullRequestFilter>&& value) { SetPullRequest(std::move(value)); return *this;}
90 inline GitConfiguration& AddPullRequest(const GitPullRequestFilter& value) { m_pullRequestHasBeenSet = true; m_pullRequest.push_back(value); return *this; }
91 inline GitConfiguration& AddPullRequest(GitPullRequestFilter&& value) { m_pullRequestHasBeenSet = true; m_pullRequest.push_back(std::move(value)); return *this; }
93 private:
94
95 Aws::String m_sourceActionName;
96 bool m_sourceActionNameHasBeenSet = false;
97
99 bool m_pushHasBeenSet = false;
100
102 bool m_pullRequestHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace CodePipeline
107} // namespace Aws
void SetPullRequest(const Aws::Vector< GitPullRequestFilter > &value)
AWS_CODEPIPELINE_API GitConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPullRequest(Aws::Vector< GitPullRequestFilter > &&value)
const Aws::Vector< GitPushFilter > & GetPush() const
void SetPush(const Aws::Vector< GitPushFilter > &value)
GitConfiguration & AddPush(const GitPushFilter &value)
GitConfiguration & WithPullRequest(Aws::Vector< GitPullRequestFilter > &&value)
GitConfiguration & AddPullRequest(const GitPullRequestFilter &value)
void SetPush(Aws::Vector< GitPushFilter > &&value)
GitConfiguration & WithSourceActionName(Aws::String &&value)
void SetSourceActionName(Aws::String &&value)
AWS_CODEPIPELINE_API Aws::Utils::Json::JsonValue Jsonize() const
GitConfiguration & WithSourceActionName(const Aws::String &value)
GitConfiguration & WithPush(const Aws::Vector< GitPushFilter > &value)
GitConfiguration & WithSourceActionName(const char *value)
const Aws::Vector< GitPullRequestFilter > & GetPullRequest() const
GitConfiguration & WithPush(Aws::Vector< GitPushFilter > &&value)
GitConfiguration & AddPullRequest(GitPullRequestFilter &&value)
GitConfiguration & AddPush(GitPushFilter &&value)
void SetSourceActionName(const Aws::String &value)
const Aws::String & GetSourceActionName() const
AWS_CODEPIPELINE_API GitConfiguration(Aws::Utils::Json::JsonView jsonValue)
GitConfiguration & WithPullRequest(const Aws::Vector< GitPullRequestFilter > &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue