AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
GetFileResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/codecommit/model/FileModeTypeEnum.h>
9#include <aws/core/utils/Array.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit {
24namespace Model {
26 public:
27 AWS_CODECOMMIT_API GetFileResult() = default;
30
32
36 inline const Aws::String& GetCommitId() const { return m_commitId; }
37 template <typename CommitIdT = Aws::String>
38 void SetCommitId(CommitIdT&& value) {
39 m_commitIdHasBeenSet = true;
40 m_commitId = std::forward<CommitIdT>(value);
41 }
42 template <typename CommitIdT = Aws::String>
43 GetFileResult& WithCommitId(CommitIdT&& value) {
44 SetCommitId(std::forward<CommitIdT>(value));
45 return *this;
46 }
48
50
53 inline const Aws::String& GetBlobId() const { return m_blobId; }
54 template <typename BlobIdT = Aws::String>
55 void SetBlobId(BlobIdT&& value) {
56 m_blobIdHasBeenSet = true;
57 m_blobId = std::forward<BlobIdT>(value);
58 }
59 template <typename BlobIdT = Aws::String>
60 GetFileResult& WithBlobId(BlobIdT&& value) {
61 SetBlobId(std::forward<BlobIdT>(value));
62 return *this;
63 }
65
67
71 inline const Aws::String& GetFilePath() const { return m_filePath; }
72 template <typename FilePathT = Aws::String>
73 void SetFilePath(FilePathT&& value) {
74 m_filePathHasBeenSet = true;
75 m_filePath = std::forward<FilePathT>(value);
76 }
77 template <typename FilePathT = Aws::String>
78 GetFileResult& WithFilePath(FilePathT&& value) {
79 SetFilePath(std::forward<FilePathT>(value));
80 return *this;
81 }
83
85
92 inline FileModeTypeEnum GetFileMode() const { return m_fileMode; }
93 inline void SetFileMode(FileModeTypeEnum value) {
94 m_fileModeHasBeenSet = true;
95 m_fileMode = value;
96 }
98 SetFileMode(value);
99 return *this;
100 }
102
104
107 inline long long GetFileSize() const { return m_fileSize; }
108 inline void SetFileSize(long long value) {
109 m_fileSizeHasBeenSet = true;
110 m_fileSize = value;
111 }
112 inline GetFileResult& WithFileSize(long long value) {
113 SetFileSize(value);
114 return *this;
115 }
117
119
123 inline const Aws::Utils::ByteBuffer& GetFileContent() const { return m_fileContent; }
124 template <typename FileContentT = Aws::Utils::ByteBuffer>
125 void SetFileContent(FileContentT&& value) {
126 m_fileContentHasBeenSet = true;
127 m_fileContent = std::forward<FileContentT>(value);
128 }
129 template <typename FileContentT = Aws::Utils::ByteBuffer>
130 GetFileResult& WithFileContent(FileContentT&& value) {
131 SetFileContent(std::forward<FileContentT>(value));
132 return *this;
133 }
135
137
138 inline const Aws::String& GetRequestId() const { return m_requestId; }
139 template <typename RequestIdT = Aws::String>
140 void SetRequestId(RequestIdT&& value) {
141 m_requestIdHasBeenSet = true;
142 m_requestId = std::forward<RequestIdT>(value);
143 }
144 template <typename RequestIdT = Aws::String>
145 GetFileResult& WithRequestId(RequestIdT&& value) {
146 SetRequestId(std::forward<RequestIdT>(value));
147 return *this;
148 }
150 private:
151 Aws::String m_commitId;
152
153 Aws::String m_blobId;
154
155 Aws::String m_filePath;
156
158
159 long long m_fileSize{0};
160
161 Aws::Utils::ByteBuffer m_fileContent{};
162
163 Aws::String m_requestId;
164 bool m_commitIdHasBeenSet = false;
165 bool m_blobIdHasBeenSet = false;
166 bool m_filePathHasBeenSet = false;
167 bool m_fileModeHasBeenSet = false;
168 bool m_fileSizeHasBeenSet = false;
169 bool m_fileContentHasBeenSet = false;
170 bool m_requestIdHasBeenSet = false;
171};
172
173} // namespace Model
174} // namespace CodeCommit
175} // namespace Aws
void SetRequestId(RequestIdT &&value)
const Aws::String & GetCommitId() const
FileModeTypeEnum GetFileMode() const
const Aws::String & GetRequestId() const
GetFileResult & WithFileContent(FileContentT &&value)
const Aws::String & GetBlobId() const
GetFileResult & WithFileMode(FileModeTypeEnum value)
void SetFilePath(FilePathT &&value)
void SetFileContent(FileContentT &&value)
AWS_CODECOMMIT_API GetFileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetFileResult & WithFilePath(FilePathT &&value)
void SetCommitId(CommitIdT &&value)
AWS_CODECOMMIT_API GetFileResult()=default
const Aws::Utils::ByteBuffer & GetFileContent() const
AWS_CODECOMMIT_API GetFileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFileMode(FileModeTypeEnum value)
GetFileResult & WithRequestId(RequestIdT &&value)
GetFileResult & WithBlobId(BlobIdT &&value)
GetFileResult & WithCommitId(CommitIdT &&value)
GetFileResult & WithFileSize(long long value)
const Aws::String & GetFilePath() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue