AWS SDK for C++  1.8.152
AWS SDK for C++
File.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace CodeCommit
23 {
24 namespace Model
25 {
26 
33  {
34  public:
35  File();
39 
40 
44  inline const Aws::String& GetBlobId() const{ return m_blobId; }
45 
49  inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
50 
54  inline void SetBlobId(const Aws::String& value) { m_blobIdHasBeenSet = true; m_blobId = value; }
55 
59  inline void SetBlobId(Aws::String&& value) { m_blobIdHasBeenSet = true; m_blobId = std::move(value); }
60 
64  inline void SetBlobId(const char* value) { m_blobIdHasBeenSet = true; m_blobId.assign(value); }
65 
69  inline File& WithBlobId(const Aws::String& value) { SetBlobId(value); return *this;}
70 
74  inline File& WithBlobId(Aws::String&& value) { SetBlobId(std::move(value)); return *this;}
75 
79  inline File& WithBlobId(const char* value) { SetBlobId(value); return *this;}
80 
81 
85  inline const Aws::String& GetAbsolutePath() const{ return m_absolutePath; }
86 
90  inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
91 
95  inline void SetAbsolutePath(const Aws::String& value) { m_absolutePathHasBeenSet = true; m_absolutePath = value; }
96 
100  inline void SetAbsolutePath(Aws::String&& value) { m_absolutePathHasBeenSet = true; m_absolutePath = std::move(value); }
101 
105  inline void SetAbsolutePath(const char* value) { m_absolutePathHasBeenSet = true; m_absolutePath.assign(value); }
106 
110  inline File& WithAbsolutePath(const Aws::String& value) { SetAbsolutePath(value); return *this;}
111 
115  inline File& WithAbsolutePath(Aws::String&& value) { SetAbsolutePath(std::move(value)); return *this;}
116 
120  inline File& WithAbsolutePath(const char* value) { SetAbsolutePath(value); return *this;}
121 
122 
126  inline const Aws::String& GetRelativePath() const{ return m_relativePath; }
127 
131  inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
132 
136  inline void SetRelativePath(const Aws::String& value) { m_relativePathHasBeenSet = true; m_relativePath = value; }
137 
141  inline void SetRelativePath(Aws::String&& value) { m_relativePathHasBeenSet = true; m_relativePath = std::move(value); }
142 
146  inline void SetRelativePath(const char* value) { m_relativePathHasBeenSet = true; m_relativePath.assign(value); }
147 
151  inline File& WithRelativePath(const Aws::String& value) { SetRelativePath(value); return *this;}
152 
156  inline File& WithRelativePath(Aws::String&& value) { SetRelativePath(std::move(value)); return *this;}
157 
161  inline File& WithRelativePath(const char* value) { SetRelativePath(value); return *this;}
162 
163 
168  inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
169 
174  inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
175 
180  inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
181 
186  inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
187 
192  inline File& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
193 
198  inline File& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
199 
200  private:
201 
202  Aws::String m_blobId;
203  bool m_blobIdHasBeenSet;
204 
205  Aws::String m_absolutePath;
206  bool m_absolutePathHasBeenSet;
207 
208  Aws::String m_relativePath;
209  bool m_relativePathHasBeenSet;
210 
211  FileModeTypeEnum m_fileMode;
212  bool m_fileModeHasBeenSet;
213  };
214 
215 } // namespace Model
216 } // namespace CodeCommit
217 } // namespace Aws
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::File::SetFileMode
void SetFileMode(FileModeTypeEnum &&value)
Definition: File.h:186
Aws::CodeCommit::Model::File::WithRelativePath
File & WithRelativePath(const Aws::String &value)
Definition: File.h:151
Aws::CodeCommit::Model::File::BlobIdHasBeenSet
bool BlobIdHasBeenSet() const
Definition: File.h:49
Aws::CodeCommit::Model::File::RelativePathHasBeenSet
bool RelativePathHasBeenSet() const
Definition: File.h:131
Aws::CodeCommit::Model::File::WithFileMode
File & WithFileMode(const FileModeTypeEnum &value)
Definition: File.h:192
Aws::CodeCommit::Model::File::SetBlobId
void SetBlobId(Aws::String &&value)
Definition: File.h:59
Aws::CodeCommit::Model::File::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::CodeCommit::Model::File::WithAbsolutePath
File & WithAbsolutePath(const char *value)
Definition: File.h:120
Aws::CodeCommit::Model::File::SetBlobId
void SetBlobId(const Aws::String &value)
Definition: File.h:54
Aws::CodeCommit::Model::File::SetBlobId
void SetBlobId(const char *value)
Definition: File.h:64
Aws::CodeCommit::Model::File::File
File()
FileModeTypeEnum.h
Aws::CodeCommit::Model::File::operator=
File & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::File::File
File(Aws::Utils::Json::JsonView jsonValue)
Aws::CodeCommit::Model::File::FileModeHasBeenSet
bool FileModeHasBeenSet() const
Definition: File.h:174
Aws::CodeCommit::Model::File::GetRelativePath
const Aws::String & GetRelativePath() const
Definition: File.h:126
Aws::CodeCommit::Model::File::SetRelativePath
void SetRelativePath(const char *value)
Definition: File.h:146
Aws::CodeCommit::Model::File::WithAbsolutePath
File & WithAbsolutePath(Aws::String &&value)
Definition: File.h:115
Aws::CodeCommit::Model::File::SetFileMode
void SetFileMode(const FileModeTypeEnum &value)
Definition: File.h:180
Aws::CodeCommit::Model::File::WithBlobId
File & WithBlobId(Aws::String &&value)
Definition: File.h:74
Aws::CodeCommit::Model::File::SetAbsolutePath
void SetAbsolutePath(const Aws::String &value)
Definition: File.h:95
Aws::CodeCommit::Model::File::WithRelativePath
File & WithRelativePath(const char *value)
Definition: File.h:161
Aws::CodeCommit::Model::File::WithBlobId
File & WithBlobId(const Aws::String &value)
Definition: File.h:69
Aws::CodeCommit::Model::File::AbsolutePathHasBeenSet
bool AbsolutePathHasBeenSet() const
Definition: File.h:90
Aws::CodeCommit::Model::File::GetFileMode
const FileModeTypeEnum & GetFileMode() const
Definition: File.h:168
Aws::CodeCommit::Model::File::SetRelativePath
void SetRelativePath(const Aws::String &value)
Definition: File.h:136
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::CodeCommit::Model::FileModeTypeEnum
FileModeTypeEnum
Definition: FileModeTypeEnum.h:17
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::File::SetAbsolutePath
void SetAbsolutePath(const char *value)
Definition: File.h:105
Aws::CodeCommit::Model::File::WithRelativePath
File & WithRelativePath(Aws::String &&value)
Definition: File.h:156
Aws::CodeCommit::Model::File
Definition: File.h:33
Aws::CodeCommit::Model::File::WithAbsolutePath
File & WithAbsolutePath(const Aws::String &value)
Definition: File.h:110
Aws::CodeCommit::Model::File::GetAbsolutePath
const Aws::String & GetAbsolutePath() const
Definition: File.h:85
Aws::CodeCommit::Model::File::SetAbsolutePath
void SetAbsolutePath(Aws::String &&value)
Definition: File.h:100
Aws::CodeCommit::Model::File::WithFileMode
File & WithFileMode(FileModeTypeEnum &&value)
Definition: File.h:198
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::File::WithBlobId
File & WithBlobId(const char *value)
Definition: File.h:79
Aws::CodeCommit::Model::File::SetRelativePath
void SetRelativePath(Aws::String &&value)
Definition: File.h:141
Aws::CodeCommit::Model::File::GetBlobId
const Aws::String & GetBlobId() const
Definition: File.h:44