AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetFileResult.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 <aws/core/utils/Array.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CodeCommit
26{
27namespace Model
28{
30 {
31 public:
32 AWS_CODECOMMIT_API GetFileResult();
35
36
38
42 inline const Aws::String& GetCommitId() const{ return m_commitId; }
43 inline void SetCommitId(const Aws::String& value) { m_commitId = value; }
44 inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); }
45 inline void SetCommitId(const char* value) { m_commitId.assign(value); }
46 inline GetFileResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
47 inline GetFileResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
48 inline GetFileResult& WithCommitId(const char* value) { SetCommitId(value); return *this;}
50
52
55 inline const Aws::String& GetBlobId() const{ return m_blobId; }
56 inline void SetBlobId(const Aws::String& value) { m_blobId = value; }
57 inline void SetBlobId(Aws::String&& value) { m_blobId = std::move(value); }
58 inline void SetBlobId(const char* value) { m_blobId.assign(value); }
59 inline GetFileResult& WithBlobId(const Aws::String& value) { SetBlobId(value); return *this;}
60 inline GetFileResult& WithBlobId(Aws::String&& value) { SetBlobId(std::move(value)); return *this;}
61 inline GetFileResult& WithBlobId(const char* value) { SetBlobId(value); return *this;}
63
65
69 inline const Aws::String& GetFilePath() const{ return m_filePath; }
70 inline void SetFilePath(const Aws::String& value) { m_filePath = value; }
71 inline void SetFilePath(Aws::String&& value) { m_filePath = std::move(value); }
72 inline void SetFilePath(const char* value) { m_filePath.assign(value); }
73 inline GetFileResult& WithFilePath(const Aws::String& value) { SetFilePath(value); return *this;}
74 inline GetFileResult& WithFilePath(Aws::String&& value) { SetFilePath(std::move(value)); return *this;}
75 inline GetFileResult& WithFilePath(const char* value) { SetFilePath(value); return *this;}
77
79
86 inline const FileModeTypeEnum& GetFileMode() const{ return m_fileMode; }
87 inline void SetFileMode(const FileModeTypeEnum& value) { m_fileMode = value; }
88 inline void SetFileMode(FileModeTypeEnum&& value) { m_fileMode = std::move(value); }
89 inline GetFileResult& WithFileMode(const FileModeTypeEnum& value) { SetFileMode(value); return *this;}
90 inline GetFileResult& WithFileMode(FileModeTypeEnum&& value) { SetFileMode(std::move(value)); return *this;}
92
94
97 inline long long GetFileSize() const{ return m_fileSize; }
98 inline void SetFileSize(long long value) { m_fileSize = value; }
99 inline GetFileResult& WithFileSize(long long value) { SetFileSize(value); return *this;}
101
103
107 inline const Aws::Utils::ByteBuffer& GetFileContent() const{ return m_fileContent; }
108 inline void SetFileContent(const Aws::Utils::ByteBuffer& value) { m_fileContent = value; }
109 inline void SetFileContent(Aws::Utils::ByteBuffer&& value) { m_fileContent = std::move(value); }
110 inline GetFileResult& WithFileContent(const Aws::Utils::ByteBuffer& value) { SetFileContent(value); return *this;}
111 inline GetFileResult& WithFileContent(Aws::Utils::ByteBuffer&& value) { SetFileContent(std::move(value)); return *this;}
113
115
116 inline const Aws::String& GetRequestId() const{ return m_requestId; }
117 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
118 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
119 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
120 inline GetFileResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
121 inline GetFileResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
122 inline GetFileResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
124 private:
125
126 Aws::String m_commitId;
127
128 Aws::String m_blobId;
129
130 Aws::String m_filePath;
131
132 FileModeTypeEnum m_fileMode;
133
134 long long m_fileSize;
135
136 Aws::Utils::ByteBuffer m_fileContent;
137
138 Aws::String m_requestId;
139 };
140
141} // namespace Model
142} // namespace CodeCommit
143} // namespace Aws
void SetCommitId(const char *value)
GetFileResult & WithFilePath(const char *value)
GetFileResult & WithRequestId(const Aws::String &value)
const Aws::String & GetCommitId() const
void SetCommitId(Aws::String &&value)
GetFileResult & WithFileMode(FileModeTypeEnum &&value)
void SetFileMode(const FileModeTypeEnum &value)
GetFileResult & WithRequestId(Aws::String &&value)
void SetFilePath(const char *value)
void SetBlobId(const Aws::String &value)
void SetFileMode(FileModeTypeEnum &&value)
GetFileResult & WithBlobId(const char *value)
const Aws::String & GetRequestId() const
void SetFileContent(Aws::Utils::ByteBuffer &&value)
void SetRequestId(const Aws::String &value)
GetFileResult & WithCommitId(const Aws::String &value)
void SetRequestId(const char *value)
void SetFileContent(const Aws::Utils::ByteBuffer &value)
GetFileResult & WithBlobId(const Aws::String &value)
GetFileResult & WithFileMode(const FileModeTypeEnum &value)
const Aws::String & GetBlobId() const
void SetRequestId(Aws::String &&value)
GetFileResult & WithRequestId(const char *value)
GetFileResult & WithFilePath(const Aws::String &value)
void SetCommitId(const Aws::String &value)
GetFileResult & WithCommitId(Aws::String &&value)
GetFileResult & WithCommitId(const char *value)
AWS_CODECOMMIT_API GetFileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetBlobId(const char *value)
GetFileResult & WithFilePath(Aws::String &&value)
const Aws::Utils::ByteBuffer & GetFileContent() const
AWS_CODECOMMIT_API GetFileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetBlobId(Aws::String &&value)
GetFileResult & WithBlobId(Aws::String &&value)
void SetFilePath(Aws::String &&value)
GetFileResult & WithFileSize(long long value)
const FileModeTypeEnum & GetFileMode() const
GetFileResult & WithFileContent(const Aws::Utils::ByteBuffer &value)
GetFileResult & WithFileContent(Aws::Utils::ByteBuffer &&value)
void SetFilePath(const Aws::String &value)
const Aws::String & GetFilePath() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue