AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PackageGroupSummary.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/codeartifact/model/PackageGroupOriginConfiguration.h>
9#include <aws/codeartifact/model/PackageGroupReference.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 CodeArtifact {
23namespace Model {
24
31 public:
32 AWS_CODEARTIFACT_API PackageGroupSummary() = default;
33 AWS_CODEARTIFACT_API PackageGroupSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::String& GetPattern() const { return m_pattern; }
61 inline bool PatternHasBeenSet() const { return m_patternHasBeenSet; }
62 template <typename PatternT = Aws::String>
63 void SetPattern(PatternT&& value) {
64 m_patternHasBeenSet = true;
65 m_pattern = std::forward<PatternT>(value);
66 }
67 template <typename PatternT = Aws::String>
68 PackageGroupSummary& WithPattern(PatternT&& value) {
69 SetPattern(std::forward<PatternT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::String& GetDomainName() const { return m_domainName; }
79 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
80 template <typename DomainNameT = Aws::String>
81 void SetDomainName(DomainNameT&& value) {
82 m_domainNameHasBeenSet = true;
83 m_domainName = std::forward<DomainNameT>(value);
84 }
85 template <typename DomainNameT = Aws::String>
86 PackageGroupSummary& WithDomainName(DomainNameT&& value) {
87 SetDomainName(std::forward<DomainNameT>(value));
88 return *this;
89 }
91
93
97 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
98 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
99 template <typename DomainOwnerT = Aws::String>
100 void SetDomainOwner(DomainOwnerT&& value) {
101 m_domainOwnerHasBeenSet = true;
102 m_domainOwner = std::forward<DomainOwnerT>(value);
103 }
104 template <typename DomainOwnerT = Aws::String>
105 PackageGroupSummary& WithDomainOwner(DomainOwnerT&& value) {
106 SetDomainOwner(std::forward<DomainOwnerT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
116 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
117 template <typename CreatedTimeT = Aws::Utils::DateTime>
118 void SetCreatedTime(CreatedTimeT&& value) {
119 m_createdTimeHasBeenSet = true;
120 m_createdTime = std::forward<CreatedTimeT>(value);
121 }
122 template <typename CreatedTimeT = Aws::Utils::DateTime>
123 PackageGroupSummary& WithCreatedTime(CreatedTimeT&& value) {
124 SetCreatedTime(std::forward<CreatedTimeT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetContactInfo() const { return m_contactInfo; }
134 inline bool ContactInfoHasBeenSet() const { return m_contactInfoHasBeenSet; }
135 template <typename ContactInfoT = Aws::String>
136 void SetContactInfo(ContactInfoT&& value) {
137 m_contactInfoHasBeenSet = true;
138 m_contactInfo = std::forward<ContactInfoT>(value);
139 }
140 template <typename ContactInfoT = Aws::String>
141 PackageGroupSummary& WithContactInfo(ContactInfoT&& value) {
142 SetContactInfo(std::forward<ContactInfoT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::String& GetDescription() const { return m_description; }
152 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
153 template <typename DescriptionT = Aws::String>
154 void SetDescription(DescriptionT&& value) {
155 m_descriptionHasBeenSet = true;
156 m_description = std::forward<DescriptionT>(value);
157 }
158 template <typename DescriptionT = Aws::String>
159 PackageGroupSummary& WithDescription(DescriptionT&& value) {
160 SetDescription(std::forward<DescriptionT>(value));
161 return *this;
162 }
164
166
169 inline const PackageGroupOriginConfiguration& GetOriginConfiguration() const { return m_originConfiguration; }
170 inline bool OriginConfigurationHasBeenSet() const { return m_originConfigurationHasBeenSet; }
171 template <typename OriginConfigurationT = PackageGroupOriginConfiguration>
172 void SetOriginConfiguration(OriginConfigurationT&& value) {
173 m_originConfigurationHasBeenSet = true;
174 m_originConfiguration = std::forward<OriginConfigurationT>(value);
175 }
176 template <typename OriginConfigurationT = PackageGroupOriginConfiguration>
177 PackageGroupSummary& WithOriginConfiguration(OriginConfigurationT&& value) {
178 SetOriginConfiguration(std::forward<OriginConfigurationT>(value));
179 return *this;
180 }
182
184
187 inline const PackageGroupReference& GetParent() const { return m_parent; }
188 inline bool ParentHasBeenSet() const { return m_parentHasBeenSet; }
189 template <typename ParentT = PackageGroupReference>
190 void SetParent(ParentT&& value) {
191 m_parentHasBeenSet = true;
192 m_parent = std::forward<ParentT>(value);
193 }
194 template <typename ParentT = PackageGroupReference>
195 PackageGroupSummary& WithParent(ParentT&& value) {
196 SetParent(std::forward<ParentT>(value));
197 return *this;
198 }
200 private:
201 Aws::String m_arn;
202
203 Aws::String m_pattern;
204
205 Aws::String m_domainName;
206
207 Aws::String m_domainOwner;
208
209 Aws::Utils::DateTime m_createdTime{};
210
211 Aws::String m_contactInfo;
212
213 Aws::String m_description;
214
215 PackageGroupOriginConfiguration m_originConfiguration;
216
217 PackageGroupReference m_parent;
218 bool m_arnHasBeenSet = false;
219 bool m_patternHasBeenSet = false;
220 bool m_domainNameHasBeenSet = false;
221 bool m_domainOwnerHasBeenSet = false;
222 bool m_createdTimeHasBeenSet = false;
223 bool m_contactInfoHasBeenSet = false;
224 bool m_descriptionHasBeenSet = false;
225 bool m_originConfigurationHasBeenSet = false;
226 bool m_parentHasBeenSet = false;
227};
228
229} // namespace Model
230} // namespace CodeArtifact
231} // namespace Aws
PackageGroupSummary & WithDomainName(DomainNameT &&value)
const Aws::Utils::DateTime & GetCreatedTime() const
AWS_CODEARTIFACT_API PackageGroupSummary()=default
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
PackageGroupSummary & WithDescription(DescriptionT &&value)
PackageGroupSummary & WithDomainOwner(DomainOwnerT &&value)
const PackageGroupReference & GetParent() const
AWS_CODEARTIFACT_API PackageGroupSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API PackageGroupSummary(Aws::Utils::Json::JsonView jsonValue)
void SetOriginConfiguration(OriginConfigurationT &&value)
PackageGroupSummary & WithParent(ParentT &&value)
PackageGroupSummary & WithContactInfo(ContactInfoT &&value)
PackageGroupSummary & WithArn(ArnT &&value)
const PackageGroupOriginConfiguration & GetOriginConfiguration() const
PackageGroupSummary & WithPattern(PatternT &&value)
PackageGroupSummary & WithOriginConfiguration(OriginConfigurationT &&value)
PackageGroupSummary & WithCreatedTime(CreatedTimeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue