AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FileMetadata.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
34 {
35 public:
36 AWS_CODECOMMIT_API FileMetadata();
37 AWS_CODECOMMIT_API FileMetadata(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API FileMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
47 inline const Aws::String& GetAbsolutePath() const{ return m_absolutePath; }
48 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
49 inline void SetAbsolutePath(const Aws::String& value) { m_absolutePathHasBeenSet = true; m_absolutePath = value; }
50 inline void SetAbsolutePath(Aws::String&& value) { m_absolutePathHasBeenSet = true; m_absolutePath = std::move(value); }
51 inline void SetAbsolutePath(const char* value) { m_absolutePathHasBeenSet = true; m_absolutePath.assign(value); }
52 inline FileMetadata& WithAbsolutePath(const Aws::String& value) { SetAbsolutePath(value); return *this;}
53 inline FileMetadata& WithAbsolutePath(Aws::String&& value) { SetAbsolutePath(std::move(value)); return *this;}
54 inline FileMetadata& WithAbsolutePath(const char* value) { SetAbsolutePath(value); return *this;}
56
58
61 inline const Aws::String& GetBlobId() const{ return m_blobId; }
62 inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
63 inline void SetBlobId(const Aws::String& value) { m_blobIdHasBeenSet = true; m_blobId = value; }
64 inline void SetBlobId(Aws::String&& value) { m_blobIdHasBeenSet = true; m_blobId = std::move(value); }
65 inline void SetBlobId(const char* value) { m_blobIdHasBeenSet = true; m_blobId.assign(value); }
66 inline FileMetadata& WithBlobId(const Aws::String& value) { SetBlobId(value); return *this;}
67 inline FileMetadata& WithBlobId(Aws::String&& value) { SetBlobId(std::move(value)); return *this;}
68 inline FileMetadata& WithBlobId(const char* value) { SetBlobId(value); return *this;}
70
72
76 inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
77 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
78 inline void SetFileMode(const FileModeTypeEnum& value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
79 inline void SetFileMode(FileModeTypeEnum&& value) { m_fileModeHasBeenSet = true; m_fileMode = std::move(value); }
80 inline FileMetadata& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
81 inline FileMetadata& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
83 private:
84
85 Aws::String m_absolutePath;
86 bool m_absolutePathHasBeenSet = false;
87
88 Aws::String m_blobId;
89 bool m_blobIdHasBeenSet = false;
90
91 FileModeTypeEnum m_fileMode;
92 bool m_fileModeHasBeenSet = false;
93 };
94
95} // namespace Model
96} // namespace CodeCommit
97} // namespace Aws
FileMetadata & WithAbsolutePath(const char *value)
FileMetadata & WithBlobId(const char *value)
AWS_CODECOMMIT_API FileMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetBlobId(Aws::String &&value)
FileMetadata & WithAbsolutePath(Aws::String &&value)
void SetAbsolutePath(Aws::String &&value)
void SetFileMode(const FileModeTypeEnum &value)
void SetFileMode(FileModeTypeEnum &&value)
FileMetadata & WithAbsolutePath(const Aws::String &value)
FileMetadata & WithFileMode(FileModeTypeEnum &&value)
void SetAbsolutePath(const char *value)
FileMetadata & WithBlobId(Aws::String &&value)
FileMetadata & WithFileMode(const FileModeTypeEnum &value)
const Aws::String & GetBlobId() const
const FileModeTypeEnum & GetFileMode() const
AWS_CODECOMMIT_API FileMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetBlobId(const char *value)
void SetBlobId(const Aws::String &value)
FileMetadata & WithBlobId(const Aws::String &value)
const Aws::String & GetAbsolutePath() const
void SetAbsolutePath(const Aws::String &value)
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue