AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
File.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
28class File {
29 public:
30 AWS_CODECOMMIT_API File() = default;
31 AWS_CODECOMMIT_API File(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODECOMMIT_API File& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetBlobId() const { return m_blobId; }
40 inline bool BlobIdHasBeenSet() const { return m_blobIdHasBeenSet; }
41 template <typename BlobIdT = Aws::String>
42 void SetBlobId(BlobIdT&& value) {
43 m_blobIdHasBeenSet = true;
44 m_blobId = std::forward<BlobIdT>(value);
45 }
46 template <typename BlobIdT = Aws::String>
47 File& WithBlobId(BlobIdT&& value) {
48 SetBlobId(std::forward<BlobIdT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetAbsolutePath() const { return m_absolutePath; }
58 inline bool AbsolutePathHasBeenSet() const { return m_absolutePathHasBeenSet; }
59 template <typename AbsolutePathT = Aws::String>
60 void SetAbsolutePath(AbsolutePathT&& value) {
61 m_absolutePathHasBeenSet = true;
62 m_absolutePath = std::forward<AbsolutePathT>(value);
63 }
64 template <typename AbsolutePathT = Aws::String>
65 File& WithAbsolutePath(AbsolutePathT&& value) {
66 SetAbsolutePath(std::forward<AbsolutePathT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetRelativePath() const { return m_relativePath; }
76 inline bool RelativePathHasBeenSet() const { return m_relativePathHasBeenSet; }
77 template <typename RelativePathT = Aws::String>
78 void SetRelativePath(RelativePathT&& value) {
79 m_relativePathHasBeenSet = true;
80 m_relativePath = std::forward<RelativePathT>(value);
81 }
82 template <typename RelativePathT = Aws::String>
83 File& WithRelativePath(RelativePathT&& value) {
84 SetRelativePath(std::forward<RelativePathT>(value));
85 return *this;
86 }
88
90
94 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
95 inline bool FileModeHasBeenSet() const { return m_fileModeHasBeenSet; }
96 inline void SetFileMode(FileModeTypeEnum value) {
97 m_fileModeHasBeenSet = true;
98 m_fileMode = value;
99 }
101 SetFileMode(value);
102 return *this;
103 }
105 private:
106 Aws::String m_blobId;
107
108 Aws::String m_absolutePath;
109
110 Aws::String m_relativePath;
111
113 bool m_blobIdHasBeenSet = false;
114 bool m_absolutePathHasBeenSet = false;
115 bool m_relativePathHasBeenSet = false;
116 bool m_fileModeHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace CodeCommit
121} // namespace Aws
bool FileModeHasBeenSet() const
Definition File.h:95
void SetFileMode(FileModeTypeEnum value)
Definition File.h:96
const Aws::String & GetBlobId() const
Definition File.h:39
FileModeTypeEnum GetFileMode() const
Definition File.h:94
void SetBlobId(BlobIdT &&value)
Definition File.h:42
AWS_CODECOMMIT_API File(Aws::Utils::Json::JsonView jsonValue)
File & WithAbsolutePath(AbsolutePathT &&value)
Definition File.h:65
const Aws::String & GetAbsolutePath() const
Definition File.h:57
bool AbsolutePathHasBeenSet() const
Definition File.h:58
File & WithBlobId(BlobIdT &&value)
Definition File.h:47
bool RelativePathHasBeenSet() const
Definition File.h:76
File & WithRelativePath(RelativePathT &&value)
Definition File.h:83
void SetAbsolutePath(AbsolutePathT &&value)
Definition File.h:60
AWS_CODECOMMIT_API File & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODECOMMIT_API File()=default
void SetRelativePath(RelativePathT &&value)
Definition File.h:78
File & WithFileMode(FileModeTypeEnum value)
Definition File.h:100
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
bool BlobIdHasBeenSet() const
Definition File.h:40
const Aws::String & GetRelativePath() const
Definition File.h:75
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue