AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RepositoryAssociationSummary.h
1
6#pragma once
7#include <aws/codeguru-reviewer/CodeGuruReviewer_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/codeguru-reviewer/model/ProviderType.h>
11#include <aws/codeguru-reviewer/model/RepositoryAssociationState.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace CodeGuruReviewer
25{
26namespace Model
27{
28
38 {
39 public:
40 AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary() = default;
41 AWS_CODEGURUREVIEWER_API RepositoryAssociationSummary(Aws::Utils::Json::JsonView jsonValue);
43 AWS_CODEGURUREVIEWER_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
53 inline const Aws::String& GetAssociationArn() const { return m_associationArn; }
54 inline bool AssociationArnHasBeenSet() const { return m_associationArnHasBeenSet; }
55 template<typename AssociationArnT = Aws::String>
56 void SetAssociationArn(AssociationArnT&& value) { m_associationArnHasBeenSet = true; m_associationArn = std::forward<AssociationArnT>(value); }
57 template<typename AssociationArnT = Aws::String>
58 RepositoryAssociationSummary& WithAssociationArn(AssociationArnT&& value) { SetAssociationArn(std::forward<AssociationArnT>(value)); return *this;}
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) { m_connectionArnHasBeenSet = true; m_connectionArn = std::forward<ConnectionArnT>(value); }
74 template<typename ConnectionArnT = Aws::String>
75 RepositoryAssociationSummary& WithConnectionArn(ConnectionArnT&& value) { SetConnectionArn(std::forward<ConnectionArnT>(value)); return *this;}
77
79
83 inline const Aws::Utils::DateTime& GetLastUpdatedTimeStamp() const { return m_lastUpdatedTimeStamp; }
84 inline bool LastUpdatedTimeStampHasBeenSet() const { return m_lastUpdatedTimeStampHasBeenSet; }
85 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
86 void SetLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { m_lastUpdatedTimeStampHasBeenSet = true; m_lastUpdatedTimeStamp = std::forward<LastUpdatedTimeStampT>(value); }
87 template<typename LastUpdatedTimeStampT = Aws::Utils::DateTime>
88 RepositoryAssociationSummary& WithLastUpdatedTimeStamp(LastUpdatedTimeStampT&& value) { SetLastUpdatedTimeStamp(std::forward<LastUpdatedTimeStampT>(value)); return *this;}
90
92
95 inline const Aws::String& GetAssociationId() const { return m_associationId; }
96 inline bool AssociationIdHasBeenSet() const { return m_associationIdHasBeenSet; }
97 template<typename AssociationIdT = Aws::String>
98 void SetAssociationId(AssociationIdT&& value) { m_associationIdHasBeenSet = true; m_associationId = std::forward<AssociationIdT>(value); }
99 template<typename AssociationIdT = Aws::String>
100 RepositoryAssociationSummary& WithAssociationId(AssociationIdT&& value) { SetAssociationId(std::forward<AssociationIdT>(value)); return *this;}
102
104
107 inline const Aws::String& GetName() const { return m_name; }
108 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
109 template<typename NameT = Aws::String>
110 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
111 template<typename NameT = Aws::String>
112 RepositoryAssociationSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
114
116
123 inline const Aws::String& GetOwner() const { return m_owner; }
124 inline bool OwnerHasBeenSet() const { return m_ownerHasBeenSet; }
125 template<typename OwnerT = Aws::String>
126 void SetOwner(OwnerT&& value) { m_ownerHasBeenSet = true; m_owner = std::forward<OwnerT>(value); }
127 template<typename OwnerT = Aws::String>
128 RepositoryAssociationSummary& WithOwner(OwnerT&& value) { SetOwner(std::forward<OwnerT>(value)); return *this;}
130
132
135 inline ProviderType GetProviderType() const { return m_providerType; }
136 inline bool ProviderTypeHasBeenSet() const { return m_providerTypeHasBeenSet; }
137 inline void SetProviderType(ProviderType value) { m_providerTypeHasBeenSet = true; m_providerType = value; }
140
142
166 inline RepositoryAssociationState GetState() const { return m_state; }
167 inline bool StateHasBeenSet() const { return m_stateHasBeenSet; }
168 inline void SetState(RepositoryAssociationState value) { m_stateHasBeenSet = true; m_state = value; }
171 private:
172
173 Aws::String m_associationArn;
174 bool m_associationArnHasBeenSet = false;
175
176 Aws::String m_connectionArn;
177 bool m_connectionArnHasBeenSet = false;
178
179 Aws::Utils::DateTime m_lastUpdatedTimeStamp{};
180 bool m_lastUpdatedTimeStampHasBeenSet = false;
181
182 Aws::String m_associationId;
183 bool m_associationIdHasBeenSet = false;
184
185 Aws::String m_name;
186 bool m_nameHasBeenSet = false;
187
188 Aws::String m_owner;
189 bool m_ownerHasBeenSet = false;
190
191 ProviderType m_providerType{ProviderType::NOT_SET};
192 bool m_providerTypeHasBeenSet = false;
193
195 bool m_stateHasBeenSet = false;
196 };
197
198} // namespace Model
199} // namespace CodeGuruReviewer
200} // 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