AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
Folder.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_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 CodeCommit {
20namespace Model {
21
28class Folder {
29 public:
30 AWS_CODECOMMIT_API Folder() = default;
31 AWS_CODECOMMIT_API Folder(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODECOMMIT_API Folder& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline const Aws::String& GetTreeId() const { return m_treeId; }
41 inline bool TreeIdHasBeenSet() const { return m_treeIdHasBeenSet; }
42 template <typename TreeIdT = Aws::String>
43 void SetTreeId(TreeIdT&& value) {
44 m_treeIdHasBeenSet = true;
45 m_treeId = std::forward<TreeIdT>(value);
46 }
47 template <typename TreeIdT = Aws::String>
48 Folder& WithTreeId(TreeIdT&& value) {
49 SetTreeId(std::forward<TreeIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetAbsolutePath() const { return m_absolutePath; }
59 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
60 template <typename AbsolutePathT = Aws::String>
61 void SetAbsolutePath(AbsolutePathT&& value) {
62 m_absolutePathHasBeenSet = true;
63 m_absolutePath = std::forward<AbsolutePathT>(value);
64 }
65 template <typename AbsolutePathT = Aws::String>
66 Folder& WithAbsolutePath(AbsolutePathT&& value) {
67 SetAbsolutePath(std::forward<AbsolutePathT>(value));
68 return *this;
69 }
71
73
77 inline const Aws::String& GetRelativePath() const { return m_relativePath; }
78 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
79 template <typename RelativePathT = Aws::String>
80 void SetRelativePath(RelativePathT&& value) {
81 m_relativePathHasBeenSet = true;
82 m_relativePath = std::forward<RelativePathT>(value);
83 }
84 template <typename RelativePathT = Aws::String>
85 Folder& WithRelativePath(RelativePathT&& value) {
86 SetRelativePath(std::forward<RelativePathT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_treeId;
92
93 Aws::String m_absolutePath;
94
95 Aws::String m_relativePath;
96 bool m_treeIdHasBeenSet = false;
97 bool m_absolutePathHasBeenSet = false;
98 bool m_relativePathHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace CodeCommit
103} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTreeId() const
Definition Folder.h:40
const Aws::String & GetRelativePath() const
Definition Folder.h:77
AWS_CODECOMMIT_API Folder & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API Folder(Aws::Utils::Json::JsonView jsonValue)
void SetRelativePath(RelativePathT &&value)
Definition Folder.h:80
void SetTreeId(TreeIdT &&value)
Definition Folder.h:43
const Aws::String & GetAbsolutePath() const
Definition Folder.h:58
Folder & WithAbsolutePath(AbsolutePathT &&value)
Definition Folder.h:66
bool AbsolutePathHasBeenSet() const
Definition Folder.h:59
AWS_CODECOMMIT_API Folder()=default
Folder & WithRelativePath(RelativePathT &&value)
Definition Folder.h:85
Folder & WithTreeId(TreeIdT &&value)
Definition Folder.h:48
bool RelativePathHasBeenSet() const
Definition Folder.h:78
void SetAbsolutePath(AbsolutePathT &&value)
Definition Folder.h:61
bool TreeIdHasBeenSet() const
Definition Folder.h:41
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue