AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
RepositorySyncDefinition.h
1
6#pragma once
7#include <aws/codestar-connections/CodeStarconnections_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeStarconnections {
20namespace Model {
21
29 public:
30 AWS_CODESTARCONNECTIONS_API RepositorySyncDefinition() = default;
31 AWS_CODESTARCONNECTIONS_API RepositorySyncDefinition(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODESTARCONNECTIONS_API RepositorySyncDefinition& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBranch() const { return m_branch; }
40 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
41 template <typename BranchT = Aws::String>
42 void SetBranch(BranchT&& value) {
43 m_branchHasBeenSet = true;
44 m_branch = std::forward<BranchT>(value);
45 }
46 template <typename BranchT = Aws::String>
48 SetBranch(std::forward<BranchT>(value));
49 return *this;
50 }
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) {
63 m_directoryHasBeenSet = true;
64 m_directory = std::forward<DirectoryT>(value);
65 }
66 template <typename DirectoryT = Aws::String>
68 SetDirectory(std::forward<DirectoryT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetParent() const { return m_parent; }
78 inline bool ParentHasBeenSet() const { return m_parentHasBeenSet; }
79 template <typename ParentT = Aws::String>
80 void SetParent(ParentT&& value) {
81 m_parentHasBeenSet = true;
82 m_parent = std::forward<ParentT>(value);
83 }
84 template <typename ParentT = Aws::String>
86 SetParent(std::forward<ParentT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetTarget() const { return m_target; }
97 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
98 template <typename TargetT = Aws::String>
99 void SetTarget(TargetT&& value) {
100 m_targetHasBeenSet = true;
101 m_target = std::forward<TargetT>(value);
102 }
103 template <typename TargetT = Aws::String>
105 SetTarget(std::forward<TargetT>(value));
106 return *this;
107 }
109 private:
110 Aws::String m_branch;
111
112 Aws::String m_directory;
113
114 Aws::String m_parent;
115
116 Aws::String m_target;
117 bool m_branchHasBeenSet = false;
118 bool m_directoryHasBeenSet = false;
119 bool m_parentHasBeenSet = false;
120 bool m_targetHasBeenSet = false;
121};
122
123} // namespace Model
124} // namespace CodeStarconnections
125} // namespace Aws
RepositorySyncDefinition & WithDirectory(DirectoryT &&value)
AWS_CODESTARCONNECTIONS_API RepositorySyncDefinition()=default
AWS_CODESTARCONNECTIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODESTARCONNECTIONS_API RepositorySyncDefinition(Aws::Utils::Json::JsonView jsonValue)
AWS_CODESTARCONNECTIONS_API RepositorySyncDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue