AWS SDK for C++  1.8.152
AWS SDK for C++
PutFileResult.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 template<typename RESULT_TYPE>
14 class AmazonWebServiceResult;
15 
16 namespace Utils
17 {
18 namespace Json
19 {
20  class JsonValue;
21 } // namespace Json
22 } // namespace Utils
23 namespace CodeCommit
24 {
25 namespace Model
26 {
28  {
29  public:
33 
34 
38  inline const Aws::String& GetCommitId() const{ return m_commitId; }
39 
43  inline void SetCommitId(const Aws::String& value) { m_commitId = value; }
44 
48  inline void SetCommitId(Aws::String&& value) { m_commitId = std::move(value); }
49 
53  inline void SetCommitId(const char* value) { m_commitId.assign(value); }
54 
58  inline PutFileResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
59 
63  inline PutFileResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
64 
68  inline PutFileResult& WithCommitId(const char* value) { SetCommitId(value); return *this;}
69 
70 
74  inline const Aws::String& GetBlobId() const{ return m_blobId; }
75 
79  inline void SetBlobId(const Aws::String& value) { m_blobId = value; }
80 
84  inline void SetBlobId(Aws::String&& value) { m_blobId = std::move(value); }
85 
89  inline void SetBlobId(const char* value) { m_blobId.assign(value); }
90 
94  inline PutFileResult& WithBlobId(const Aws::String& value) { SetBlobId(value); return *this;}
95 
99  inline PutFileResult& WithBlobId(Aws::String&& value) { SetBlobId(std::move(value)); return *this;}
100 
104  inline PutFileResult& WithBlobId(const char* value) { SetBlobId(value); return *this;}
105 
106 
111  inline const Aws::String& GetTreeId() const{ return m_treeId; }
112 
117  inline void SetTreeId(const Aws::String& value) { m_treeId = value; }
118 
123  inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); }
124 
129  inline void SetTreeId(const char* value) { m_treeId.assign(value); }
130 
135  inline PutFileResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
136 
141  inline PutFileResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
142 
147  inline PutFileResult& WithTreeId(const char* value) { SetTreeId(value); return *this;}
148 
149  private:
150 
151  Aws::String m_commitId;
152 
153  Aws::String m_blobId;
154 
155  Aws::String m_treeId;
156  };
157 
158 } // namespace Model
159 } // namespace CodeCommit
160 } // namespace Aws
Aws::CodeCommit::Model::PutFileResult::PutFileResult
PutFileResult()
Aws::CodeCommit::Model::PutFileResult::WithTreeId
PutFileResult & WithTreeId(const char *value)
Definition: PutFileResult.h:147
Aws::AmazonWebServiceResult
Definition: AmazonWebServiceResult.h:19
CodeCommit_EXPORTS.h
Aws::CodeCommit::Model::PutFileResult::GetBlobId
const Aws::String & GetBlobId() const
Definition: PutFileResult.h:74
Aws::CodeCommit::Model::PutFileResult::WithTreeId
PutFileResult & WithTreeId(Aws::String &&value)
Definition: PutFileResult.h:141
Aws::CodeCommit::Model::PutFileResult::SetTreeId
void SetTreeId(Aws::String &&value)
Definition: PutFileResult.h:123
Aws::CodeCommit::Model::PutFileResult::WithBlobId
PutFileResult & WithBlobId(const Aws::String &value)
Definition: PutFileResult.h:94
Aws::CodeCommit::Model::PutFileResult::WithCommitId
PutFileResult & WithCommitId(Aws::String &&value)
Definition: PutFileResult.h:63
Aws::CodeCommit::Model::PutFileResult::SetBlobId
void SetBlobId(Aws::String &&value)
Definition: PutFileResult.h:84
Aws::CodeCommit::Model::PutFileResult::WithTreeId
PutFileResult & WithTreeId(const Aws::String &value)
Definition: PutFileResult.h:135
Aws::CodeCommit::Model::PutFileResult::SetTreeId
void SetTreeId(const char *value)
Definition: PutFileResult.h:129
Aws::CodeCommit::Model::PutFileResult::SetBlobId
void SetBlobId(const Aws::String &value)
Definition: PutFileResult.h:79
Aws::CodeCommit::Model::PutFileResult::SetTreeId
void SetTreeId(const Aws::String &value)
Definition: PutFileResult.h:117
Aws::CodeCommit::Model::PutFileResult::operator=
PutFileResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::PutFileResult::PutFileResult
PutFileResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::CodeCommit::Model::PutFileResult::SetCommitId
void SetCommitId(const char *value)
Definition: PutFileResult.h:53
Aws::CodeCommit::Model::PutFileResult::WithCommitId
PutFileResult & WithCommitId(const char *value)
Definition: PutFileResult.h:68
AWSString.h
Aws::CodeCommit::Model::PutFileResult
Definition: PutFileResult.h:28
AWS_CODECOMMIT_API
#define AWS_CODECOMMIT_API
Definition: CodeCommit_EXPORTS.h:28
Aws::CodeCommit::Model::PutFileResult::WithCommitId
PutFileResult & WithCommitId(const Aws::String &value)
Definition: PutFileResult.h:58
Aws
Definition: AccessManagementClient.h:15
Aws::CodeCommit::Model::PutFileResult::SetCommitId
void SetCommitId(Aws::String &&value)
Definition: PutFileResult.h:48
Aws::CodeCommit::Model::PutFileResult::WithBlobId
PutFileResult & WithBlobId(Aws::String &&value)
Definition: PutFileResult.h:99
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::CodeCommit::Model::PutFileResult::GetCommitId
const Aws::String & GetCommitId() const
Definition: PutFileResult.h:38
Aws::CodeCommit::Model::PutFileResult::SetCommitId
void SetCommitId(const Aws::String &value)
Definition: PutFileResult.h:43
Aws::CodeCommit::Model::PutFileResult::GetTreeId
const Aws::String & GetTreeId() const
Definition: PutFileResult.h:111
Aws::CodeCommit::Model::PutFileResult::SetBlobId
void SetBlobId(const char *value)
Definition: PutFileResult.h:89
Aws::CodeCommit::Model::PutFileResult::WithBlobId
PutFileResult & WithBlobId(const char *value)
Definition: PutFileResult.h:104