AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 CodeCommit
22{
23namespace Model
24{
25
32 class Folder
33 {
34 public:
35 AWS_CODECOMMIT_API Folder() = default;
36 AWS_CODECOMMIT_API Folder(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API Folder& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
46 inline const Aws::String& GetTreeId() const { return m_treeId; }
47 inline bool TreeIdHasBeenSet() const { return m_treeIdHasBeenSet; }
48 template<typename TreeIdT = Aws::String>
49 void SetTreeId(TreeIdT&& value) { m_treeIdHasBeenSet = true; m_treeId = std::forward<TreeIdT>(value); }
50 template<typename TreeIdT = Aws::String>
51 Folder& WithTreeId(TreeIdT&& value) { SetTreeId(std::forward<TreeIdT>(value)); return *this;}
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) { m_absolutePathHasBeenSet = true; m_absolutePath = std::forward<AbsolutePathT>(value); }
62 template<typename AbsolutePathT = Aws::String>
63 Folder& WithAbsolutePath(AbsolutePathT&& value) { SetAbsolutePath(std::forward<AbsolutePathT>(value)); return *this;}
65
67
71 inline const Aws::String& GetRelativePath() const { return m_relativePath; }
72 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
73 template<typename RelativePathT = Aws::String>
74 void SetRelativePath(RelativePathT&& value) { m_relativePathHasBeenSet = true; m_relativePath = std::forward<RelativePathT>(value); }
75 template<typename RelativePathT = Aws::String>
76 Folder& WithRelativePath(RelativePathT&& value) { SetRelativePath(std::forward<RelativePathT>(value)); return *this;}
78 private:
79
80 Aws::String m_treeId;
81 bool m_treeIdHasBeenSet = false;
82
83 Aws::String m_absolutePath;
84 bool m_absolutePathHasBeenSet = false;
85
86 Aws::String m_relativePath;
87 bool m_relativePathHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CodeCommit
92} // namespace Aws
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetTreeId() const
Definition Folder.h:46
const Aws::String & GetRelativePath() const
Definition Folder.h:71
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:74
void SetTreeId(TreeIdT &&value)
Definition Folder.h:49
const Aws::String & GetAbsolutePath() const
Definition Folder.h:58
Folder & WithAbsolutePath(AbsolutePathT &&value)
Definition Folder.h:63
bool AbsolutePathHasBeenSet() const
Definition Folder.h:59
AWS_CODECOMMIT_API Folder()=default
Folder & WithRelativePath(RelativePathT &&value)
Definition Folder.h:76
Folder & WithTreeId(TreeIdT &&value)
Definition Folder.h:51
bool RelativePathHasBeenSet() const
Definition Folder.h:72
void SetAbsolutePath(AbsolutePathT &&value)
Definition Folder.h:61
bool TreeIdHasBeenSet() const
Definition Folder.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue