AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
RepositorySyncDefinition.h
1
6#pragma once
7#include <aws/codeconnections/CodeConnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeConnections
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_CODECONNECTIONS_API RepositorySyncDefinition() = default;
36 AWS_CODECONNECTIONS_API RepositorySyncDefinition(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBranch() const { return m_branch; }
46 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
47 template<typename BranchT = Aws::String>
48 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
49 template<typename BranchT = Aws::String>
50 RepositorySyncDefinition& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
52
54
59 inline const Aws::String& GetDirectory() const { return m_directory; }
60 inline bool DirectoryHasBeenSet() const { return m_directoryHasBeenSet; }
61 template<typename DirectoryT = Aws::String>
62 void SetDirectory(DirectoryT&& value) { m_directoryHasBeenSet = true; m_directory = std::forward<DirectoryT>(value); }
63 template<typename DirectoryT = Aws::String>
64 RepositorySyncDefinition& WithDirectory(DirectoryT&& value) { SetDirectory(std::forward<DirectoryT>(value)); return *this;}
66
68
71 inline const Aws::String& GetParent() const { return m_parent; }
72 inline bool ParentHasBeenSet() const { return m_parentHasBeenSet; }
73 template<typename ParentT = Aws::String>
74 void SetParent(ParentT&& value) { m_parentHasBeenSet = true; m_parent = std::forward<ParentT>(value); }
75 template<typename ParentT = Aws::String>
76 RepositorySyncDefinition& WithParent(ParentT&& value) { SetParent(std::forward<ParentT>(value)); return *this;}
78
80
84 inline const Aws::String& GetTarget() const { return m_target; }
85 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
86 template<typename TargetT = Aws::String>
87 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
88 template<typename TargetT = Aws::String>
89 RepositorySyncDefinition& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
91 private:
92
93 Aws::String m_branch;
94 bool m_branchHasBeenSet = false;
95
96 Aws::String m_directory;
97 bool m_directoryHasBeenSet = false;
98
99 Aws::String m_parent;
100 bool m_parentHasBeenSet = false;
101
102 Aws::String m_target;
103 bool m_targetHasBeenSet = false;
104 };
105
106} // namespace Model
107} // namespace CodeConnections
108} // namespace Aws
RepositorySyncDefinition & WithBranch(BranchT &&value)
AWS_CODECONNECTIONS_API RepositorySyncDefinition()=default
AWS_CODECONNECTIONS_API RepositorySyncDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncDefinition & WithTarget(TargetT &&value)
RepositorySyncDefinition & WithParent(ParentT &&value)
AWS_CODECONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
RepositorySyncDefinition & WithDirectory(DirectoryT &&value)
AWS_CODECONNECTIONS_API RepositorySyncDefinition(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue