AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
File.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/codecommit/model/FileModeTypeEnum.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeCommit
23{
24namespace Model
25{
26
32 class File
33 {
34 public:
35 AWS_CODECOMMIT_API File() = default;
36 AWS_CODECOMMIT_API File(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODECOMMIT_API File& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetBlobId() const { return m_blobId; }
46 inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
47 template<typename BlobIdT = Aws::String>
48 void SetBlobId(BlobIdT&& value) { m_blobIdHasBeenSet = true; m_blobId = std::forward<BlobIdT>(value); }
49 template<typename BlobIdT = Aws::String>
50 File& WithBlobId(BlobIdT&& value) { SetBlobId(std::forward<BlobIdT>(value)); return *this;}
52
54
57 inline const Aws::String& GetAbsolutePath() const { return m_absolutePath; }
58 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
59 template<typename AbsolutePathT = Aws::String>
60 void SetAbsolutePath(AbsolutePathT&& value) { m_absolutePathHasBeenSet = true; m_absolutePath = std::forward<AbsolutePathT>(value); }
61 template<typename AbsolutePathT = Aws::String>
62 File& WithAbsolutePath(AbsolutePathT&& value) { SetAbsolutePath(std::forward<AbsolutePathT>(value)); return *this;}
64
66
69 inline const Aws::String& GetRelativePath() const { return m_relativePath; }
70 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
71 template<typename RelativePathT = Aws::String>
72 void SetRelativePath(RelativePathT&& value) { m_relativePathHasBeenSet = true; m_relativePath = std::forward<RelativePathT>(value); }
73 template<typename RelativePathT = Aws::String>
74 File& WithRelativePath(RelativePathT&& value) { SetRelativePath(std::forward<RelativePathT>(value)); return *this;}
76
78
82 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
83 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
84 inline void SetFileMode(FileModeTypeEnum value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
85 inline File& WithFileMode(FileModeTypeEnum value) { SetFileMode(value); return *this;}
87 private:
88
89 Aws::String m_blobId;
90 bool m_blobIdHasBeenSet = false;
91
92 Aws::String m_absolutePath;
93 bool m_absolutePathHasBeenSet = false;
94
95 Aws::String m_relativePath;
96 bool m_relativePathHasBeenSet = false;
97
99 bool m_fileModeHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace CodeCommit
104} // namespace Aws
bool FileModeHasBeenSet() const
Definition File.h:83
void SetFileMode(FileModeTypeEnum value)
Definition File.h:84
const Aws::String & GetBlobId() const
Definition File.h:45
FileModeTypeEnum GetFileMode() const
Definition File.h:82
void SetBlobId(BlobIdT &&value)
Definition File.h:48
AWS_CODECOMMIT_API File(Aws::Utils::Json::JsonView jsonValue)
File & WithAbsolutePath(AbsolutePathT &&value)
Definition File.h:62
const Aws::String & GetAbsolutePath() const
Definition File.h:57
bool AbsolutePathHasBeenSet() const
Definition File.h:58
File & WithBlobId(BlobIdT &&value)
Definition File.h:50
bool RelativePathHasBeenSet() const
Definition File.h:70
File & WithRelativePath(RelativePathT &&value)
Definition File.h:74
void SetAbsolutePath(AbsolutePathT &&value)
Definition File.h:60
AWS_CODECOMMIT_API File & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API File()=default
void SetRelativePath(RelativePathT &&value)
Definition File.h:72
File & WithFileMode(FileModeTypeEnum value)
Definition File.h:85
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
bool BlobIdHasBeenSet() const
Definition File.h:46
const Aws::String & GetRelativePath() const
Definition File.h:69
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue