AWS SDK for C++

AWS SDK for C++ Version 1.11.763

Loading...
Searching...
No Matches
RepositoryAssociationSummary.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/codeguru-reviewer/model/ProviderType.h>
9#include <aws/codeguru-reviewer/model/RepositoryAssociationState.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace CodeGuruReviewer {
23namespace Model {
24
34 public:
35 AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary() = default;
36 AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
47 inline const Aws::String& GetAssociationArn() const { return m_associationArn; }
48 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
49 template <typename AssociationArnT = Aws::String>
50 void SetAssociationArn(AssociationArnT&& value) {
51 m_associationArnHasBeenSet = true;
52 m_associationArn = std::forward<AssociationArnT>(value);
53 }
54 template <typename AssociationArnT = Aws::String>
56 SetAssociationArn(std::forward<AssociationArnT>(value));
57 return *this;
58 }
60
62
70 inline const Aws::String& GetConnectionArn() const { return m_connectionArn; }
71 inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; }
72 template <typename ConnectionArnT = Aws::String>
73 void SetConnectionArn(ConnectionArnT&& value) {
74 m_connectionArnHasBeenSet = true;
75 m_connectionArn = std::forward<ConnectionArnT>(value);
76 }
77 template <typename ConnectionArnT = Aws::String>
79 SetConnectionArn(std::forward<ConnectionArnT>(value));
80 return *this;
81 }
83
85
89 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
90 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
91 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
92 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) {
93 m_lastUpdatedTimeStampHasBeenSet = true;
94 m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value);
95 }
96 template <typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
98 SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value));
99 return *this;
100 }
102
104
107 inline const Aws::String& GetAssociationId() const { return m_associationId; }
108 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
109 template <typename AssociationIdT = Aws::String>
110 void SetAssociationId(AssociationIdT&& value) {
111 m_associationIdHasBeenSet = true;
112 m_associationId = std::forward<AssociationIdT>(value);
113 }
114 template <typename AssociationIdT = Aws::String>
116 SetAssociationId(std::forward<AssociationIdT>(value));
117 return *this;
118 }
120
122
125 inline const Aws::String& GetName() const { return m_name; }
126 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
127 template <typename NameT = Aws::String>
128 void SetName(NameT&& value) {
129 m_nameHasBeenSet = true;
130 m_name = std::forward<NameT>(value);
131 }
132 template <typename NameT = Aws::String>
134 SetName(std::forward<NameT>(value));
135 return *this;
136 }
138
140
147 inline const Aws::String& GetOwner() const { return m_owner; }
148 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
149 template <typename OwnerT = Aws::String>
150 void SetOwner(OwnerT&& value) {
151 m_ownerHasBeenSet = true;
152 m_owner = std::forward<OwnerT>(value);
153 }
154 template <typename OwnerT = Aws::String>
156 SetOwner(std::forward<OwnerT>(value));
157 return *this;
158 }
160
162
165 inline ProviderType GetProviderType() const { return m_providerType; }
166 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
167 inline void SetProviderType(ProviderType value) {
168 m_providerTypeHasBeenSet = true;
169 m_providerType = value;
170 }
172 SetProviderType(value);
173 return *this;
174 }
176
178
202 inline RepositoryAssociationState GetState() const { return m_state; }
203 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
205 m_stateHasBeenSet = true;
206 m_state = value;
207 }
209 SetState(value);
210 return *this;
211 }
213 private:
214 Aws::String m_associationArn;
215
216 Aws::String m_connectionArn;
217
218 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
219
220 Aws::String m_associationId;
221
222 Aws::String m_name;
223
224 Aws::String m_owner;
225
226 ProviderType m_providerType{ProviderType::NOT_SET};
227
229 bool m_associationArnHasBeenSet = false;
230 bool m_connectionArnHasBeenSet = false;
231 bool m_lastUpdatedTimeStampHasBeenSet = false;
232 bool m_associationIdHasBeenSet = false;
233 bool m_nameHasBeenSet = false;
234 bool m_ownerHasBeenSet = false;
235 bool m_providerTypeHasBeenSet = false;
236 bool m_stateHasBeenSet = false;
237};
238
239} // namespace Model
240} // namespace CodeGuruReviewer
241} // namespace Aws
AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary(Aws::Utils::Json::JsonView jsonValue)
RepositoryAssociationSummary & WithProviderType(ProviderType value)
AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const
RepositoryAssociationSummary & WithAssociationId(AssociationIdT &&value)
RepositoryAssociationSummary & WithConnectionArn(ConnectionArnT &&value)
RepositoryAssociationSummary & WithLastUpdatedTimeStamp(LastUpdatedTimeStampT &&value)
RepositoryAssociationSummary & WithAssociationArn(AssociationArnT &&value)
RepositoryAssociationSummary & WithState(RepositoryAssociationState value)
AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue