AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
RepositorySummary.h
1
6#pragma once
7#include <aws/codeartifact/CodeArtifact_EXPORTS.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace CodeArtifact {
21namespace Model {
22
33 public:
34 AWS_CODEARTIFACT_API RepositorySummary() = default;
35 AWS_CODEARTIFACT_API RepositorySummary(Aws::Utils::Json::JsonView jsonValue);
36 AWS_CODEARTIFACT_API RepositorySummary& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetName() const { return m_name; }
44 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 template <typename NameT = Aws::String>
46 void SetName(NameT&& value) {
47 m_nameHasBeenSet = true;
48 m_name = std::forward<NameT>(value);
49 }
50 template <typename NameT = Aws::String>
51 RepositorySummary& WithName(NameT&& value) {
52 SetName(std::forward<NameT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetAdministratorAccount() const { return m_administratorAccount; }
62 inline bool AdministratorAccountHasBeenSet() const { return m_administratorAccountHasBeenSet; }
63 template <typename AdministratorAccountT = Aws::String>
64 void SetAdministratorAccount(AdministratorAccountT&& value) {
65 m_administratorAccountHasBeenSet = true;
66 m_administratorAccount = std::forward<AdministratorAccountT>(value);
67 }
68 template <typename AdministratorAccountT = Aws::String>
69 RepositorySummary& WithAdministratorAccount(AdministratorAccountT&& value) {
70 SetAdministratorAccount(std::forward<AdministratorAccountT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetDomainName() const { return m_domainName; }
80 inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; }
81 template <typename DomainNameT = Aws::String>
82 void SetDomainName(DomainNameT&& value) {
83 m_domainNameHasBeenSet = true;
84 m_domainName = std::forward<DomainNameT>(value);
85 }
86 template <typename DomainNameT = Aws::String>
87 RepositorySummary& WithDomainName(DomainNameT&& value) {
88 SetDomainName(std::forward<DomainNameT>(value));
89 return *this;
90 }
92
94
98 inline const Aws::String& GetDomainOwner() const { return m_domainOwner; }
99 inline bool DomainOwnerHasBeenSet() const { return m_domainOwnerHasBeenSet; }
100 template <typename DomainOwnerT = Aws::String>
101 void SetDomainOwner(DomainOwnerT&& value) {
102 m_domainOwnerHasBeenSet = true;
103 m_domainOwner = std::forward<DomainOwnerT>(value);
104 }
105 template <typename DomainOwnerT = Aws::String>
106 RepositorySummary& WithDomainOwner(DomainOwnerT&& value) {
107 SetDomainOwner(std::forward<DomainOwnerT>(value));
108 return *this;
109 }
111
113
116 inline const Aws::String& GetArn() const { return m_arn; }
117 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
118 template <typename ArnT = Aws::String>
119 void SetArn(ArnT&& value) {
120 m_arnHasBeenSet = true;
121 m_arn = std::forward<ArnT>(value);
122 }
123 template <typename ArnT = Aws::String>
124 RepositorySummary& WithArn(ArnT&& value) {
125 SetArn(std::forward<ArnT>(value));
126 return *this;
127 }
129
131
134 inline const Aws::String& GetDescription() const { return m_description; }
135 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
136 template <typename DescriptionT = Aws::String>
137 void SetDescription(DescriptionT&& value) {
138 m_descriptionHasBeenSet = true;
139 m_description = std::forward<DescriptionT>(value);
140 }
141 template <typename DescriptionT = Aws::String>
142 RepositorySummary& WithDescription(DescriptionT&& value) {
143 SetDescription(std::forward<DescriptionT>(value));
144 return *this;
145 }
147
149
152 inline const Aws::Utils::DateTime& GetCreatedTime() const { return m_createdTime; }
153 inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; }
154 template <typename CreatedTimeT = Aws::Utils::DateTime>
155 void SetCreatedTime(CreatedTimeT&& value) {
156 m_createdTimeHasBeenSet = true;
157 m_createdTime = std::forward<CreatedTimeT>(value);
158 }
159 template <typename CreatedTimeT = Aws::Utils::DateTime>
160 RepositorySummary& WithCreatedTime(CreatedTimeT&& value) {
161 SetCreatedTime(std::forward<CreatedTimeT>(value));
162 return *this;
163 }
165 private:
166 Aws::String m_name;
167
168 Aws::String m_administratorAccount;
169
170 Aws::String m_domainName;
171
172 Aws::String m_domainOwner;
173
174 Aws::String m_arn;
175
176 Aws::String m_description;
177
178 Aws::Utils::DateTime m_createdTime{};
179 bool m_nameHasBeenSet = false;
180 bool m_administratorAccountHasBeenSet = false;
181 bool m_domainNameHasBeenSet = false;
182 bool m_domainOwnerHasBeenSet = false;
183 bool m_arnHasBeenSet = false;
184 bool m_descriptionHasBeenSet = false;
185 bool m_createdTimeHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace CodeArtifact
190} // namespace Aws
const Aws::Utils::DateTime & GetCreatedTime() const
RepositorySummary & WithDomainName(DomainNameT &&value)
void SetAdministratorAccount(AdministratorAccountT &&value)
AWS_CODEARTIFACT_API RepositorySummary(Aws::Utils::Json::JsonView jsonValue)
RepositorySummary & WithDescription(DescriptionT &&value)
AWS_CODEARTIFACT_API Aws::Utils::Json::JsonValue Jsonize() const
RepositorySummary & WithAdministratorAccount(AdministratorAccountT &&value)
const Aws::String & GetAdministratorAccount() const
RepositorySummary & WithName(NameT &&value)
AWS_CODEARTIFACT_API RepositorySummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEARTIFACT_API RepositorySummary()=default
RepositorySummary & WithCreatedTime(CreatedTimeT &&value)
RepositorySummary & WithDomainOwner(DomainOwnerT &&value)
RepositorySummary & WithArn(ArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue