AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename AbsolutePathT = Aws::String>
50 void SetAbsolutePath(AbsolutePathT&& value) { m_absolutePathHasBeenSet = true; m_absolutePath = std::forward<AbsolutePathT>(value); }
51 template<typename AbsolutePathT = Aws::String>
52 FileMetadata& WithAbsolutePath(AbsolutePathT&& value) { SetAbsolutePath(std::forward<AbsolutePathT>(value)); return *this;}
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) { m_blobIdHasBeenSet = true; m_blobId = std::forward<BlobIdT>(value); }
63 template<typename BlobIdT = Aws::String>
64 FileMetadata& WithBlobId(BlobIdT&& value) { SetBlobId(std::forward<BlobIdT>(value)); return *this;}
66
68
72 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
73 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
74 inline void SetFileMode(FileModeTypeEnum value) { m_fileModeHasBeenSet = true; m_fileMode = value; }
75 inline FileMetadata& WithFileMode(FileModeTypeEnum value) { SetFileMode(value); return *this;}
77 private:
78
79 Aws::String m_absolutePath;
80 bool m_absolutePathHasBeenSet = false;
81
82 Aws::String m_blobId;
83 bool m_blobIdHasBeenSet = false;
84
86 bool m_fileModeHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace CodeCommit
91} // 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