AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetBlobId(const Aws::String& value) { m_blobIdHasBeenSet = true; m_blobId = value; }
48 inline void SetBlobId(Aws::String&& value) { m_blobIdHasBeenSet = true; m_blobId = std::move(value); }
49 inline void SetBlobId(const char* value) { m_blobIdHasBeenSet = true; m_blobId.assign(value); }
50 inline File& WithBlobId(const Aws::String& value) { SetBlobId(value); return *this;}
51 inline File& WithBlobId(Aws::String&& value) { SetBlobId(std::move(value)); return *this;}
52 inline File& WithBlobId(const char* value) { SetBlobId(value); return *this;}
54
56
59 inline const Aws::String& GetAbsolutePath() const{ return m_absolutePath; }
60 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
61 inline void SetAbsolutePath(const Aws::String& value) { m_absolutePathHasBeenSet = true; m_absolutePath = value; }
62 inline void SetAbsolutePath(Aws::String&& value) { m_absolutePathHasBeenSet = true; m_absolutePath = std::move(value); }
63 inline void SetAbsolutePath(const char* value) { m_absolutePathHasBeenSet = true; m_absolutePath.assign(value); }
64 inline File& WithAbsolutePath(const Aws::String& value) { SetAbsolutePath(value); return *this;}
65 inline File& WithAbsolutePath(Aws::String&& value) { SetAbsolutePath(std::move(value)); return *this;}
66 inline File& WithAbsolutePath(const char* value) { SetAbsolutePath(value); return *this;}
68
70
73 inline const Aws::String& GetRelativePath() const{ return m_relativePath; }
74 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
75 inline void SetRelativePath(const Aws::String& value) { m_relativePathHasBeenSet = true; m_relativePath = value; }
76 inline void SetRelativePath(Aws::String&& value) { m_relativePathHasBeenSet = true; m_relativePath = std::move(value); }
77 inline void SetRelativePath(const char* value) { m_relativePathHasBeenSet = true; m_relativePath.assign(value); }
78 inline File& WithRelativePath(const Aws::String& value) { SetRelativePath(value); return *this;}
79 inline File& WithRelativePath(Aws::String&& value) { SetRelativePath(std::move(value)); return *this;}
80 inline File& WithRelativePath(const char* value) { SetRelativePath(value); return *this;}
82
84
88 inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
89 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
90 inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
91 inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
92 inline File& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
93 inline File& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
95 private:
96
97 Aws::String m_blobId;
98 bool m_blobIdHasBeenSet = false;
99
100 Aws::String m_absolutePath;
101 bool m_absolutePathHasBeenSet = false;
102
103 Aws::String m_relativePath;
104 bool m_relativePathHasBeenSet = false;
105
106 FileModeTypeEnum m_fileMode;
107 bool m_fileModeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace CodeCommit
112} // namespace Aws
File & WithAbsolutePath(const char *value)
Definition File.h:66
bool FileModeHasBeenSet() const
Definition File.h:89
const Aws::String & GetBlobId() const
Definition File.h:45
File & WithAbsolutePath(Aws::String &&value)
Definition File.h:65
AWS_CODECOMMIT_API File(Aws::Utils::Json::JsonView jsonValue)
void SetAbsolutePath(const char *value)
Definition File.h:63
void SetAbsolutePath(const Aws::String &value)
Definition File.h:61
const Aws::String & GetAbsolutePath() const
Definition File.h:59
bool AbsolutePathHasBeenSet() const
Definition File.h:60
File & WithRelativePath(Aws::String &&value)
Definition File.h:79
bool RelativePathHasBeenSet() const
Definition File.h:74
void SetBlobId(Aws::String &&value)
Definition File.h:48
void SetRelativePath(const Aws::String &value)
Definition File.h:75
File & WithRelativePath(const char *value)
Definition File.h:80
void SetRelativePath(Aws::String &&value)
Definition File.h:76
AWS_CODECOMMIT_API File & operator=(Aws::Utils::Json::JsonView jsonValue)
File & WithFileMode(FileModeTypeEnum &&value)
Definition File.h:93
void SetBlobId(const Aws::String &value)
Definition File.h:47
File & WithBlobId(const char *value)
Definition File.h:52
File & WithBlobId(Aws::String &&value)
Definition File.h:51
void SetRelativePath(const char *value)
Definition File.h:77
void SetFileMode(FileModeTypeEnum &&value)
Definition File.h:91
void SetFileMode(const FileModeTypeEnum &value)
Definition File.h:90
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_CODECOMMIT_API File()
const FileModeTypeEnum & GetFileMode() const
Definition File.h:88
void SetBlobId(const char *value)
Definition File.h:49
File & WithAbsolutePath(const Aws::String &value)
Definition File.h:64
File & WithBlobId(const Aws::String &value)
Definition File.h:50
bool BlobIdHasBeenSet() const
Definition File.h:46
File & WithRelativePath(const Aws::String &value)
Definition File.h:78
void SetAbsolutePath(Aws::String &&value)
Definition File.h:62
const Aws::String & GetRelativePath() const
Definition File.h:73
File & WithFileMode(const FileModeTypeEnum &value)
Definition File.h:92
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue