AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Commit.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/UserInfo.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CodeCommit
24{
25namespace Model
26{
27
33 class Commit
34 {
35 public:
36 AWS_CODECOMMIT_API Commit();
37 AWS_CODECOMMIT_API Commit(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODECOMMIT_API Commit& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetCommitId() const{ return m_commitId; }
47 inline bool CommitIdHasBeenSet() const { return m_commitIdHasBeenSet; }
48 inline void SetCommitId(const Aws::String& value) { m_commitIdHasBeenSet = true; m_commitId = value; }
49 inline void SetCommitId(Aws::String&& value) { m_commitIdHasBeenSet = true; m_commitId = std::move(value); }
50 inline void SetCommitId(const char* value) { m_commitIdHasBeenSet = true; m_commitId.assign(value); }
51 inline Commit& WithCommitId(const Aws::String& value) { SetCommitId(value); return *this;}
52 inline Commit& WithCommitId(Aws::String&& value) { SetCommitId(std::move(value)); return *this;}
53 inline Commit& WithCommitId(const char* value) { SetCommitId(value); return *this;}
55
57
60 inline const Aws::String& GetTreeId() const{ return m_treeId; }
61 inline bool TreeIdHasBeenSet() const { return m_treeIdHasBeenSet; }
62 inline void SetTreeId(const Aws::String& value) { m_treeIdHasBeenSet = true; m_treeId = value; }
63 inline void SetTreeId(Aws::String&& value) { m_treeIdHasBeenSet = true; m_treeId = std::move(value); }
64 inline void SetTreeId(const char* value) { m_treeIdHasBeenSet = true; m_treeId.assign(value); }
65 inline Commit& WithTreeId(const Aws::String& value) { SetTreeId(value); return *this;}
66 inline Commit& WithTreeId(Aws::String&& value) { SetTreeId(std::move(value)); return *this;}
67 inline Commit& WithTreeId(const char* value) { SetTreeId(value); return *this;}
69
71
75 inline const Aws::Vector<Aws::String>& GetParents() const{ return m_parents; }
76 inline bool ParentsHasBeenSet() const { return m_parentsHasBeenSet; }
77 inline void SetParents(const Aws::Vector<Aws::String>& value) { m_parentsHasBeenSet = true; m_parents = value; }
78 inline void SetParents(Aws::Vector<Aws::String>&& value) { m_parentsHasBeenSet = true; m_parents = std::move(value); }
79 inline Commit& WithParents(const Aws::Vector<Aws::String>& value) { SetParents(value); return *this;}
80 inline Commit& WithParents(Aws::Vector<Aws::String>&& value) { SetParents(std::move(value)); return *this;}
81 inline Commit& AddParents(const Aws::String& value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
82 inline Commit& AddParents(Aws::String&& value) { m_parentsHasBeenSet = true; m_parents.push_back(std::move(value)); return *this; }
83 inline Commit& AddParents(const char* value) { m_parentsHasBeenSet = true; m_parents.push_back(value); return *this; }
85
87
90 inline const Aws::String& GetMessage() const{ return m_message; }
91 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
92 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
93 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
94 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
95 inline Commit& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
96 inline Commit& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
97 inline Commit& WithMessage(const char* value) { SetMessage(value); return *this;}
99
101
106 inline const UserInfo& GetAuthor() const{ return m_author; }
107 inline bool AuthorHasBeenSet() const { return m_authorHasBeenSet; }
108 inline void SetAuthor(const UserInfo& value) { m_authorHasBeenSet = true; m_author = value; }
109 inline void SetAuthor(UserInfo&& value) { m_authorHasBeenSet = true; m_author = std::move(value); }
110 inline Commit& WithAuthor(const UserInfo& value) { SetAuthor(value); return *this;}
111 inline Commit& WithAuthor(UserInfo&& value) { SetAuthor(std::move(value)); return *this;}
113
115
124 inline const UserInfo& GetCommitter() const{ return m_committer; }
125 inline bool CommitterHasBeenSet() const { return m_committerHasBeenSet; }
126 inline void SetCommitter(const UserInfo& value) { m_committerHasBeenSet = true; m_committer = value; }
127 inline void SetCommitter(UserInfo&& value) { m_committerHasBeenSet = true; m_committer = std::move(value); }
128 inline Commit& WithCommitter(const UserInfo& value) { SetCommitter(value); return *this;}
129 inline Commit& WithCommitter(UserInfo&& value) { SetCommitter(std::move(value)); return *this;}
131
133
136 inline const Aws::String& GetAdditionalData() const{ return m_additionalData; }
137 inline bool AdditionalDataHasBeenSet() const { return m_additionalDataHasBeenSet; }
138 inline void SetAdditionalData(const Aws::String& value) { m_additionalDataHasBeenSet = true; m_additionalData = value; }
139 inline void SetAdditionalData(Aws::String&& value) { m_additionalDataHasBeenSet = true; m_additionalData = std::move(value); }
140 inline void SetAdditionalData(const char* value) { m_additionalDataHasBeenSet = true; m_additionalData.assign(value); }
141 inline Commit& WithAdditionalData(const Aws::String& value) { SetAdditionalData(value); return *this;}
142 inline Commit& WithAdditionalData(Aws::String&& value) { SetAdditionalData(std::move(value)); return *this;}
143 inline Commit& WithAdditionalData(const char* value) { SetAdditionalData(value); return *this;}
145 private:
146
147 Aws::String m_commitId;
148 bool m_commitIdHasBeenSet = false;
149
150 Aws::String m_treeId;
151 bool m_treeIdHasBeenSet = false;
152
153 Aws::Vector<Aws::String> m_parents;
154 bool m_parentsHasBeenSet = false;
155
156 Aws::String m_message;
157 bool m_messageHasBeenSet = false;
158
159 UserInfo m_author;
160 bool m_authorHasBeenSet = false;
161
162 UserInfo m_committer;
163 bool m_committerHasBeenSet = false;
164
165 Aws::String m_additionalData;
166 bool m_additionalDataHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace CodeCommit
171} // namespace Aws
void SetAuthor(UserInfo &&value)
Definition Commit.h:109
bool CommitIdHasBeenSet() const
Definition Commit.h:47
void SetCommitter(const UserInfo &value)
Definition Commit.h:126
void SetParents(Aws::Vector< Aws::String > &&value)
Definition Commit.h:78
const Aws::String & GetAdditionalData() const
Definition Commit.h:136
void SetParents(const Aws::Vector< Aws::String > &value)
Definition Commit.h:77
Commit & WithCommitId(Aws::String &&value)
Definition Commit.h:52
const Aws::String & GetMessage() const
Definition Commit.h:90
void SetMessage(const Aws::String &value)
Definition Commit.h:92
void SetMessage(const char *value)
Definition Commit.h:94
void SetAdditionalData(const char *value)
Definition Commit.h:140
const UserInfo & GetAuthor() const
Definition Commit.h:106
const Aws::Vector< Aws::String > & GetParents() const
Definition Commit.h:75
const UserInfo & GetCommitter() const
Definition Commit.h:124
AWS_CODECOMMIT_API Commit(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCommitId() const
Definition Commit.h:46
Commit & WithAuthor(const UserInfo &value)
Definition Commit.h:110
void SetCommitId(const char *value)
Definition Commit.h:50
void SetCommitter(UserInfo &&value)
Definition Commit.h:127
void SetCommitId(const Aws::String &value)
Definition Commit.h:48
Commit & WithTreeId(const Aws::String &value)
Definition Commit.h:65
Commit & AddParents(const Aws::String &value)
Definition Commit.h:81
Commit & WithCommitId(const Aws::String &value)
Definition Commit.h:51
Commit & WithParents(Aws::Vector< Aws::String > &&value)
Definition Commit.h:80
void SetAdditionalData(Aws::String &&value)
Definition Commit.h:139
bool ParentsHasBeenSet() const
Definition Commit.h:76
AWS_CODECOMMIT_API Aws::Utils::Json::JsonValue Jsonize() const
Commit & WithParents(const Aws::Vector< Aws::String > &value)
Definition Commit.h:79
const Aws::String & GetTreeId() const
Definition Commit.h:60
Commit & WithAdditionalData(const char *value)
Definition Commit.h:143
void SetCommitId(Aws::String &&value)
Definition Commit.h:49
Commit & AddParents(const char *value)
Definition Commit.h:83
Commit & WithMessage(Aws::String &&value)
Definition Commit.h:96
Commit & WithTreeId(const char *value)
Definition Commit.h:67
bool AdditionalDataHasBeenSet() const
Definition Commit.h:137
Commit & WithMessage(const char *value)
Definition Commit.h:97
Commit & WithCommitId(const char *value)
Definition Commit.h:53
Commit & AddParents(Aws::String &&value)
Definition Commit.h:82
void SetTreeId(const char *value)
Definition Commit.h:64
Commit & WithAuthor(UserInfo &&value)
Definition Commit.h:111
Commit & WithTreeId(Aws::String &&value)
Definition Commit.h:66
bool AuthorHasBeenSet() const
Definition Commit.h:107
Commit & WithMessage(const Aws::String &value)
Definition Commit.h:95
bool TreeIdHasBeenSet() const
Definition Commit.h:61
bool MessageHasBeenSet() const
Definition Commit.h:91
AWS_CODECOMMIT_API Commit()
Commit & WithCommitter(UserInfo &&value)
Definition Commit.h:129
void SetTreeId(Aws::String &&value)
Definition Commit.h:63
bool CommitterHasBeenSet() const
Definition Commit.h:125
void SetAuthor(const UserInfo &value)
Definition Commit.h:108
void SetTreeId(const Aws::String &value)
Definition Commit.h:62
Commit & WithAdditionalData(Aws::String &&value)
Definition Commit.h:142
Commit & WithCommitter(const UserInfo &value)
Definition Commit.h:128
Commit & WithAdditionalData(const Aws::String &value)
Definition Commit.h:141
void SetMessage(Aws::String &&value)
Definition Commit.h:93
AWS_CODECOMMIT_API Commit & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetAdditionalData(const Aws::String &value)
Definition Commit.h:138
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue