AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
PullThroughCacheRule.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ecr/ECR_EXPORTS.h>
10#include <aws/ecr/model/UpstreamRegistry.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECR {
22namespace Model {
23
30 public:
31 AWS_ECR_API PullThroughCacheRule() = default;
35
37
41 inline const Aws::String& GetEcrRepositoryPrefix() const { return m_ecrRepositoryPrefix; }
42 inline bool EcrRepositoryPrefixHasBeenSet() const { return m_ecrRepositoryPrefixHasBeenSet; }
43 template <typename EcrRepositoryPrefixT = Aws::String>
44 void SetEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) {
45 m_ecrRepositoryPrefixHasBeenSet = true;
46 m_ecrRepositoryPrefix = std::forward<EcrRepositoryPrefixT>(value);
47 }
48 template <typename EcrRepositoryPrefixT = Aws::String>
49 PullThroughCacheRule& WithEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) {
50 SetEcrRepositoryPrefix(std::forward<EcrRepositoryPrefixT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetUpstreamRegistryUrl() const { return m_upstreamRegistryUrl; }
60 inline bool UpstreamRegistryUrlHasBeenSet() const { return m_upstreamRegistryUrlHasBeenSet; }
61 template <typename UpstreamRegistryUrlT = Aws::String>
62 void SetUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) {
63 m_upstreamRegistryUrlHasBeenSet = true;
64 m_upstreamRegistryUrl = std::forward<UpstreamRegistryUrlT>(value);
65 }
66 template <typename UpstreamRegistryUrlT = Aws::String>
67 PullThroughCacheRule& WithUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) {
68 SetUpstreamRegistryUrl(std::forward<UpstreamRegistryUrlT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
78 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
79 template <typename CreatedAtT = Aws::Utils::DateTime>
80 void SetCreatedAt(CreatedAtT&& value) {
81 m_createdAtHasBeenSet = true;
82 m_createdAt = std::forward<CreatedAtT>(value);
83 }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
85 PullThroughCacheRule& WithCreatedAt(CreatedAtT&& value) {
86 SetCreatedAt(std::forward<CreatedAtT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetRegistryId() const { return m_registryId; }
97 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
98 template <typename RegistryIdT = Aws::String>
99 void SetRegistryId(RegistryIdT&& value) {
100 m_registryIdHasBeenSet = true;
101 m_registryId = std::forward<RegistryIdT>(value);
102 }
103 template <typename RegistryIdT = Aws::String>
104 PullThroughCacheRule& WithRegistryId(RegistryIdT&& value) {
105 SetRegistryId(std::forward<RegistryIdT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetCredentialArn() const { return m_credentialArn; }
116 inline bool CredentialArnHasBeenSet() const { return m_credentialArnHasBeenSet; }
117 template <typename CredentialArnT = Aws::String>
118 void SetCredentialArn(CredentialArnT&& value) {
119 m_credentialArnHasBeenSet = true;
120 m_credentialArn = std::forward<CredentialArnT>(value);
121 }
122 template <typename CredentialArnT = Aws::String>
123 PullThroughCacheRule& WithCredentialArn(CredentialArnT&& value) {
124 SetCredentialArn(std::forward<CredentialArnT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
134 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
135 template <typename CustomRoleArnT = Aws::String>
136 void SetCustomRoleArn(CustomRoleArnT&& value) {
137 m_customRoleArnHasBeenSet = true;
138 m_customRoleArn = std::forward<CustomRoleArnT>(value);
139 }
140 template <typename CustomRoleArnT = Aws::String>
141 PullThroughCacheRule& WithCustomRoleArn(CustomRoleArnT&& value) {
142 SetCustomRoleArn(std::forward<CustomRoleArnT>(value));
143 return *this;
144 }
146
148
152 inline const Aws::String& GetUpstreamRepositoryPrefix() const { return m_upstreamRepositoryPrefix; }
153 inline bool UpstreamRepositoryPrefixHasBeenSet() const { return m_upstreamRepositoryPrefixHasBeenSet; }
154 template <typename UpstreamRepositoryPrefixT = Aws::String>
155 void SetUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) {
156 m_upstreamRepositoryPrefixHasBeenSet = true;
157 m_upstreamRepositoryPrefix = std::forward<UpstreamRepositoryPrefixT>(value);
158 }
159 template <typename UpstreamRepositoryPrefixT = Aws::String>
160 PullThroughCacheRule& WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) {
161 SetUpstreamRepositoryPrefix(std::forward<UpstreamRepositoryPrefixT>(value));
162 return *this;
163 }
165
167
171 inline UpstreamRegistry GetUpstreamRegistry() const { return m_upstreamRegistry; }
172 inline bool UpstreamRegistryHasBeenSet() const { return m_upstreamRegistryHasBeenSet; }
174 m_upstreamRegistryHasBeenSet = true;
175 m_upstreamRegistry = value;
176 }
178 SetUpstreamRegistry(value);
179 return *this;
180 }
182
184
188 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
189 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
190 template <typename UpdatedAtT = Aws::Utils::DateTime>
191 void SetUpdatedAt(UpdatedAtT&& value) {
192 m_updatedAtHasBeenSet = true;
193 m_updatedAt = std::forward<UpdatedAtT>(value);
194 }
195 template <typename UpdatedAtT = Aws::Utils::DateTime>
196 PullThroughCacheRule& WithUpdatedAt(UpdatedAtT&& value) {
197 SetUpdatedAt(std::forward<UpdatedAtT>(value));
198 return *this;
199 }
201 private:
202 Aws::String m_ecrRepositoryPrefix;
203
204 Aws::String m_upstreamRegistryUrl;
205
206 Aws::Utils::DateTime m_createdAt{};
207
208 Aws::String m_registryId;
209
210 Aws::String m_credentialArn;
211
212 Aws::String m_customRoleArn;
213
214 Aws::String m_upstreamRepositoryPrefix;
215
217
218 Aws::Utils::DateTime m_updatedAt{};
219 bool m_ecrRepositoryPrefixHasBeenSet = false;
220 bool m_upstreamRegistryUrlHasBeenSet = false;
221 bool m_createdAtHasBeenSet = false;
222 bool m_registryIdHasBeenSet = false;
223 bool m_credentialArnHasBeenSet = false;
224 bool m_customRoleArnHasBeenSet = false;
225 bool m_upstreamRepositoryPrefixHasBeenSet = false;
226 bool m_upstreamRegistryHasBeenSet = false;
227 bool m_updatedAtHasBeenSet = false;
228};
229
230} // namespace Model
231} // namespace ECR
232} // namespace Aws
const Aws::String & GetUpstreamRegistryUrl() const
const Aws::String & GetRegistryId() const
void SetCustomRoleArn(CustomRoleArnT &&value)
void SetCredentialArn(CredentialArnT &&value)
const Aws::String & GetCredentialArn() const
void SetUpstreamRegistryUrl(UpstreamRegistryUrlT &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
PullThroughCacheRule & WithCredentialArn(CredentialArnT &&value)
const Aws::String & GetCustomRoleArn() const
PullThroughCacheRule & WithUpdatedAt(UpdatedAtT &&value)
void SetUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT &&value)
AWS_ECR_API PullThroughCacheRule & operator=(Aws::Utils::Json::JsonView jsonValue)
PullThroughCacheRule & WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT &&value)
void SetEcrRepositoryPrefix(EcrRepositoryPrefixT &&value)
PullThroughCacheRule & WithRegistryId(RegistryIdT &&value)
const Aws::String & GetEcrRepositoryPrefix() const
AWS_ECR_API PullThroughCacheRule()=default
PullThroughCacheRule & WithUpstreamRegistryUrl(UpstreamRegistryUrlT &&value)
PullThroughCacheRule & WithUpstreamRegistry(UpstreamRegistry value)
PullThroughCacheRule & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
AWS_ECR_API PullThroughCacheRule(Aws::Utils::Json::JsonView jsonValue)
PullThroughCacheRule & WithEcrRepositoryPrefix(EcrRepositoryPrefixT &&value)
void SetUpstreamRegistry(UpstreamRegistry value)
PullThroughCacheRule & WithCustomRoleArn(CustomRoleArnT &&value)
const Aws::String & GetUpstreamRepositoryPrefix() const
const Aws::Utils::DateTime & GetCreatedAt() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue