AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateCommitResult.h
1
6#pragma once
7#include <aws/codecommit/CodeCommit_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/codecommit/model/FileMetadata.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 CreateCommitResult();
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 CreateCommitResult& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
47 inline CreateCommitResult& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
48 inline CreateCommitResult& WithCommitId(const char* value) { SetCommitId(value); return *this;}
50
52
56 inline const Aws::String& GetTreeId() const{ return m_treeId; }
57 inline void SetTreeId(const Aws::String& value) { m_treeId = value; }
58 inline void SetTreeId(Aws::String&& value) { m_treeId = std::move(value); }
59 inline void SetTreeId(const char* value) { m_treeId.assign(value); }
60 inline CreateCommitResult& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
61 inline CreateCommitResult& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
62 inline CreateCommitResult& WithTreeId(const char* value) { SetTreeId(value); return *this;}
64
66
69 inline const Aws::Vector<FileMetadata>& GetFilesAdded() const{ return m_filesAdded; }
70 inline void SetFilesAdded(const Aws::Vector<FileMetadata>& value) { m_filesAdded = value; }
71 inline void SetFilesAdded(Aws::Vector<FileMetadata>&& value) { m_filesAdded = std::move(value); }
72 inline CreateCommitResult& WithFilesAdded(const Aws::Vector<FileMetadata>& value) { SetFilesAdded(value); return *this;}
73 inline CreateCommitResult& WithFilesAdded(Aws::Vector<FileMetadata>&& value) { SetFilesAdded(std::move(value)); return *this;}
74 inline CreateCommitResult& AddFilesAdded(const FileMetadata& value) { m_filesAdded.push_back(value); return *this; }
75 inline CreateCommitResult& AddFilesAdded(FileMetadata&& value) { m_filesAdded.push_back(std::move(value)); return *this; }
77
79
82 inline const Aws::Vector<FileMetadata>& GetFilesUpdated() const{ return m_filesUpdated; }
83 inline void SetFilesUpdated(const Aws::Vector<FileMetadata>& value) { m_filesUpdated = value; }
84 inline void SetFilesUpdated(Aws::Vector<FileMetadata>&& value) { m_filesUpdated = std::move(value); }
86 inline CreateCommitResult& WithFilesUpdated(Aws::Vector<FileMetadata>&& value) { SetFilesUpdated(std::move(value)); return *this;}
87 inline CreateCommitResult& AddFilesUpdated(const FileMetadata& value) { m_filesUpdated.push_back(value); return *this; }
88 inline CreateCommitResult& AddFilesUpdated(FileMetadata&& value) { m_filesUpdated.push_back(std::move(value)); return *this; }
90
92
95 inline const Aws::Vector<FileMetadata>& GetFilesDeleted() const{ return m_filesDeleted; }
96 inline void SetFilesDeleted(const Aws::Vector<FileMetadata>& value) { m_filesDeleted = value; }
97 inline void SetFilesDeleted(Aws::Vector<FileMetadata>&& value) { m_filesDeleted = std::move(value); }
99 inline CreateCommitResult& WithFilesDeleted(Aws::Vector<FileMetadata>&& value) { SetFilesDeleted(std::move(value)); return *this;}
100 inline CreateCommitResult& AddFilesDeleted(const FileMetadata& value) { m_filesDeleted.push_back(value); return *this; }
101 inline CreateCommitResult& AddFilesDeleted(FileMetadata&& value) { m_filesDeleted.push_back(std::move(value)); return *this; }
103
105
106 inline const Aws::String& GetRequestId() const{ return m_requestId; }
107 inline void SetRequestId(const Aws::String& value) { m_requestId = value; }
108 inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); }
109 inline void SetRequestId(const char* value) { m_requestId.assign(value); }
110 inline CreateCommitResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
111 inline CreateCommitResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
112 inline CreateCommitResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
114 private:
115
116 Aws::String m_commitId;
117
118 Aws::String m_treeId;
119
120 Aws::Vector<FileMetadata> m_filesAdded;
121
122 Aws::Vector<FileMetadata> m_filesUpdated;
123
124 Aws::Vector<FileMetadata> m_filesDeleted;
125
126 Aws::String m_requestId;
127 };
128
129} // namespace Model
130} // namespace CodeCommit
131} // namespace Aws
CreateCommitResult & WithRequestId(Aws::String &&value)
CreateCommitResult & WithFilesAdded(Aws::Vector< FileMetadata > &&value)
CreateCommitResult & WithRequestId(const char *value)
CreateCommitResult & AddFilesAdded(const FileMetadata &value)
CreateCommitResult & WithCommitId(const Aws::String &value)
CreateCommitResult & WithTreeId(const char *value)
void SetCommitId(const Aws::String &value)
CreateCommitResult & WithCommitId(const char *value)
AWS_CODECOMMIT_API CreateCommitResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFilesAdded(const Aws::Vector< FileMetadata > &value)
CreateCommitResult & WithFilesAdded(const Aws::Vector< FileMetadata > &value)
CreateCommitResult & AddFilesUpdated(FileMetadata &&value)
CreateCommitResult & WithFilesUpdated(const Aws::Vector< FileMetadata > &value)
CreateCommitResult & AddFilesDeleted(FileMetadata &&value)
AWS_CODECOMMIT_API CreateCommitResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetFilesDeleted(const Aws::Vector< FileMetadata > &value)
CreateCommitResult & WithFilesDeleted(Aws::Vector< FileMetadata > &&value)
void SetTreeId(const Aws::String &value)
CreateCommitResult & WithRequestId(const Aws::String &value)
void SetFilesUpdated(Aws::Vector< FileMetadata > &&value)
void SetFilesUpdated(const Aws::Vector< FileMetadata > &value)
CreateCommitResult & WithFilesDeleted(const Aws::Vector< FileMetadata > &value)
CreateCommitResult & AddFilesAdded(FileMetadata &&value)
const Aws::Vector< FileMetadata > & GetFilesAdded() const
CreateCommitResult & WithTreeId(Aws::String &&value)
CreateCommitResult & WithTreeId(const Aws::String &value)
void SetFilesDeleted(Aws::Vector< FileMetadata > &&value)
CreateCommitResult & AddFilesDeleted(const FileMetadata &value)
const Aws::Vector< FileMetadata > & GetFilesUpdated() const
void SetRequestId(const Aws::String &value)
const Aws::Vector< FileMetadata > & GetFilesDeleted() const
void SetFilesAdded(Aws::Vector< FileMetadata > &&value)
CreateCommitResult & WithCommitId(Aws::String &&value)
CreateCommitResult & AddFilesUpdated(const FileMetadata &value)
CreateCommitResult & WithFilesUpdated(Aws::Vector< FileMetadata > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue