AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositorySyncDefinition.h
1
6#pragma once
7#include <aws/proton/Proton_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 Proton
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_PROTON_API RepositorySyncDefinition() = default;
37 AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetBranch() const { return m_branch; }
45 inline bool BranchHasBeenSet() const { return m_branchHasBeenSet; }
46 template<typename BranchT = Aws::String>
47 void SetBranch(BranchT&& value) { m_branchHasBeenSet = true; m_branch = std::forward<BranchT>(value); }
48 template<typename BranchT = Aws::String>
49 RepositorySyncDefinition& WithBranch(BranchT&& value) { SetBranch(std::forward<BranchT>(value)); return *this;}
51
53
56 inline const Aws::String& GetDirectory() const { return m_directory; }
57 inline bool DirectoryHasBeenSet() const { return m_directoryHasBeenSet; }
58 template<typename DirectoryT = Aws::String>
59 void SetDirectory(DirectoryT&& value) { m_directoryHasBeenSet = true; m_directory = std::forward<DirectoryT>(value); }
60 template<typename DirectoryT = Aws::String>
61 RepositorySyncDefinition& WithDirectory(DirectoryT&& value) { SetDirectory(std::forward<DirectoryT>(value)); return *this;}
63
65
68 inline const Aws::String& GetParent() const { return m_parent; }
69 inline bool ParentHasBeenSet() const { return m_parentHasBeenSet; }
70 template<typename ParentT = Aws::String>
71 void SetParent(ParentT&& value) { m_parentHasBeenSet = true; m_parent = std::forward<ParentT>(value); }
72 template<typename ParentT = Aws::String>
73 RepositorySyncDefinition& WithParent(ParentT&& value) { SetParent(std::forward<ParentT>(value)); return *this;}
75
77
80 inline const Aws::String& GetTarget() const { return m_target; }
81 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
82 template<typename TargetT = Aws::String>
83 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
84 template<typename TargetT = Aws::String>
85 RepositorySyncDefinition& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
87 private:
88
89 Aws::String m_branch;
90 bool m_branchHasBeenSet = false;
91
92 Aws::String m_directory;
93 bool m_directoryHasBeenSet = false;
94
95 Aws::String m_parent;
96 bool m_parentHasBeenSet = false;
97
98 Aws::String m_target;
99 bool m_targetHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace Proton
104} // namespace Aws
AWS_PROTON_API RepositorySyncDefinition()=default
AWS_PROTON_API Aws::Utils::Json::JsonValue Jsonize() const
RepositorySyncDefinition & WithDirectory(DirectoryT &&value)
AWS_PROTON_API RepositorySyncDefinition & operator=(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncDefinition & WithTarget(TargetT &&value)
AWS_PROTON_API RepositorySyncDefinition(Aws::Utils::Json::JsonView jsonValue)
RepositorySyncDefinition & WithParent(ParentT &&value)
RepositorySyncDefinition & WithBranch(BranchT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue