AWS SDK for C++  1.8.152
AWS SDK for C++
Folder.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace CodeCommit
22 {
23 namespace Model
24 {
25 
33  {
34  public:
35  Folder();
39 
40 
45  inline const Aws::String& GetTreeId() const{ return m_treeId; }
46 
51  inline bool TreeIdHasBeenSet() const { return m_treeIdHasBeenSet; }
52 
57  inline void SetTreeId(const Aws::String& value) { m_treeIdHasBeenSet = true; m_treeId = value; }
58 
63  inline void SetTreeId(Aws::String&& value) { m_treeIdHasBeenSet = true; m_treeId = std::move(value); }
64 
69  inline void SetTreeId(const char* value) { m_treeIdHasBeenSet = true; m_treeId.assign(value); }
70 
75  inline Folder& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
76 
81  inline Folder& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
82 
87  inline Folder& WithTreeId(const char* value) { SetTreeId(value); return *this;}
88 
89 
93  inline const Aws::String& GetAbsolutePath() const{ return m_absolutePath; }
94 
98  inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
99 
103  inline void SetAbsolutePath(const Aws::String& value) { m_absolutePathHasBeenSet = true; m_absolutePath = value; }
104 
108  inline void SetAbsolutePath(Aws::String&& value) { m_absolutePathHasBeenSet = true; m_absolutePath = std::move(value); }
109 
113  inline void SetAbsolutePath(const char* value) { m_absolutePathHasBeenSet = true; m_absolutePath.assign(value); }
114 
118  inline Folder& WithAbsolutePath(const Aws::String& value) { SetAbsolutePath(value); return *this;}
119 
123  inline Folder& WithAbsolutePath(Aws::String&& value) { SetAbsolutePath(std::move(value)); return *this;}
124 
128  inline Folder& WithAbsolutePath(const char* value) { SetAbsolutePath(value); return *this;}
129 
130 
135  inline const Aws::String& GetRelativePath() const{ return m_relativePath; }
136 
141  inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
142 
147  inline void SetRelativePath(const Aws::String& value) { m_relativePathHasBeenSet = true; m_relativePath = value; }
148 
153  inline void SetRelativePath(Aws::String&& value) { m_relativePathHasBeenSet = true; m_relativePath = std::move(value); }
154 
159  inline void SetRelativePath(const char* value) { m_relativePathHasBeenSet = true; m_relativePath.assign(value); }
160 
165  inline Folder& WithRelativePath(const Aws::String& value) { SetRelativePath(value); return *this;}
166 
171  inline Folder& WithRelativePath(Aws::String&& value) { SetRelativePath(std::move(value)); return *this;}
172 
177  inline Folder& WithRelativePath(const char* value) { SetRelativePath(value); return *this;}
178 
179  private:
180 
181  Aws::String m_treeId;
182  bool m_treeIdHasBeenSet;
183 
184  Aws::String m_absolutePath;
185  bool m_absolutePathHasBeenSet;
186 
187  Aws::String m_relativePath;
188  bool m_relativePathHasBeenSet;
189  };
190 
191 } // namespace Model
192 } // namespace CodeCommit
193 } // namespace Aws
Aws::CodeCommit::Model::Folder::GetAbsolutePath
const Aws::String & GetAbsolutePath() const
Definition: Folder.h:93
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::Folder::WithTreeId
Folder & WithTreeId(const char *value)
Definition: Folder.h:87
Aws::CodeCommit::Model::Folder::SetAbsolutePath
void SetAbsolutePath(Aws::String &&value)
Definition: Folder.h:108
Aws::CodeCommit::Model::Folder::SetAbsolutePath
void SetAbsolutePath(const char *value)
Definition: Folder.h:113
Aws::CodeCommit::Model::Folder::SetTreeId
void SetTreeId(const Aws::String &value)
Definition: Folder.h:57
Aws::CodeCommit::Model::Folder::WithTreeId
Folder & WithTreeId(const Aws::String &value)
Definition: Folder.h:75
Aws::CodeCommit::Model::Folder::WithTreeId
Folder & WithTreeId(Aws::String &&value)
Definition: Folder.h:81
Aws::CodeCommit::Model::Folder::WithAbsolutePath
Folder & WithAbsolutePath(Aws::String &&value)
Definition: Folder.h:123
Aws::CodeCommit::Model::Folder::WithRelativePath
Folder & WithRelativePath(const char *value)
Definition: Folder.h:177
Aws::CodeCommit::Model::Folder
Definition: Folder.h:33
Aws::CodeCommit::Model::Folder::Folder
Folder()
Aws::CodeCommit::Model::Folder::WithRelativePath
Folder & WithRelativePath(Aws::String &&value)
Definition: Folder.h:171
Aws::CodeCommit::Model::Folder::RelativePathHasBeenSet
bool RelativePathHasBeenSet() const
Definition: Folder.h:141
Aws::CodeCommit::Model::Folder::SetRelativePath
void SetRelativePath(Aws::String &&value)
Definition: Folder.h:153
Aws::CodeCommit::Model::Folder::TreeIdHasBeenSet
bool TreeIdHasBeenSet() const
Definition: Folder.h:51
Aws::CodeCommit::Model::Folder::SetRelativePath
void SetRelativePath(const char *value)
Definition: Folder.h:159
Aws::CodeCommit::Model::Folder::WithRelativePath
Folder & WithRelativePath(const Aws::String &value)
Definition: Folder.h:165
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::CodeCommit::Model::Folder::GetTreeId
const Aws::String & GetTreeId() const
Definition: Folder.h:45
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::Folder::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::Folder::WithAbsolutePath
Folder & WithAbsolutePath(const char *value)
Definition: Folder.h:128
Aws::CodeCommit::Model::Folder::SetTreeId
void SetTreeId(Aws::String &&value)
Definition: Folder.h:63
Aws::CodeCommit::Model::Folder::operator=
Folder & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::Folder::AbsolutePathHasBeenSet
bool AbsolutePathHasBeenSet() const
Definition: Folder.h:98
Aws::CodeCommit::Model::Folder::GetRelativePath
const Aws::String & GetRelativePath() const
Definition: Folder.h:135
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::Folder::SetAbsolutePath
void SetAbsolutePath(const Aws::String &value)
Definition: Folder.h:103
Aws::CodeCommit::Model::Folder::SetTreeId
void SetTreeId(const char *value)
Definition: Folder.h:69
Aws::CodeCommit::Model::Folder::Folder
Folder(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::Folder::WithAbsolutePath
Folder & WithAbsolutePath(const Aws::String &value)
Definition: Folder.h:118
Aws::CodeCommit::Model::Folder::SetRelativePath
void SetRelativePath(const Aws::String &value)
Definition: Folder.h:147