AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
FileMetadata.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/FileModeTypeEnum.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeCommit {
21namespace Model {
22
30 public:
31 AWS_CODECOMMIT_API FileMetadata() = default;
32 AWS_CODECOMMIT_API FileMetadata(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API FileMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline const Aws::String& GetAbsolutePath() const { return m_absolutePath; }
42 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
43 template <typename AbsolutePathT = Aws::String>
44 void SetAbsolutePath(AbsolutePathT&& value) {
45 m_absolutePathHasBeenSet = true;
46 m_absolutePath = std::forward<AbsolutePathT>(value);
47 }
48 template <typename AbsolutePathT = Aws::String>
49 FileMetadata& WithAbsolutePath(AbsolutePathT&& value) {
50 SetAbsolutePath(std::forward<AbsolutePathT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetBlobId() const { return m_blobId; }
60 inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
61 template <typename BlobIdT = Aws::String>
62 void SetBlobId(BlobIdT&& value) {
63 m_blobIdHasBeenSet = true;
64 m_blobId = std::forward<BlobIdT>(value);
65 }
66 template <typename BlobIdT = Aws::String>
67 FileMetadata& WithBlobId(BlobIdT&& value) {
68 SetBlobId(std::forward<BlobIdT>(value));
69 return *this;
70 }
72
74
78 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
79 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
80 inline void SetFileMode(FileModeTypeEnum value) {
81 m_fileModeHasBeenSet = true;
82 m_fileMode = value;
83 }
85 SetFileMode(value);
86 return *this;
87 }
89 private:
90 Aws::String m_absolutePath;
91
92 Aws::String m_blobId;
93
95 bool m_absolutePathHasBeenSet = false;
96 bool m_blobIdHasBeenSet = false;
97 bool m_fileModeHasBeenSet = false;
98};
99
100} // namespace Model
101} // namespace CodeCommit
102} // namespace Aws
void SetFileMode(FileModeTypeEnum value)
FileModeTypeEnum GetFileMode() const
FileMetadata & WithBlobId(BlobIdT &&value)
AWS_CODECOMMIT_API FileMetadata(Aws::Utils::Json::JsonView jsonValue)
void SetAbsolutePath(AbsolutePathT &&value)
const Aws::String & GetBlobId() const
FileMetadata & WithAbsolutePath(AbsolutePathT &&value)
AWS_CODECOMMIT_API FileMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAbsolutePath() const
AWS_CODECOMMIT_API FileMetadata()=default
FileMetadata & WithFileMode(FileModeTypeEnum 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