AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PullThroughCacheRule.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/ecr/model/UpstreamRegistry.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace ECR
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_ECR_API PullThroughCacheRule() = default;
40
41
43
47 inline const Aws::String& GetEcrRepositoryPrefix() const { return m_ecrRepositoryPrefix; }
48 inline bool EcrRepositoryPrefixHasBeenSet() const { return m_ecrRepositoryPrefixHasBeenSet; }
49 template<typename EcrRepositoryPrefixT = Aws::String>
50 void SetEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::forward<EcrRepositoryPrefixT>(value); }
51 template<typename EcrRepositoryPrefixT = Aws::String>
52 PullThroughCacheRule& WithEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { SetEcrRepositoryPrefix(std::forward<EcrRepositoryPrefixT>(value)); return *this;}
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) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = std::forward<UpstreamRegistryUrlT>(value); }
63 template<typename UpstreamRegistryUrlT = Aws::String>
64 PullThroughCacheRule& WithUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) { SetUpstreamRegistryUrl(std::forward<UpstreamRegistryUrlT>(value)); return *this;}
66
68
71 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
72 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
73 template<typename CreatedAtT = Aws::Utils::DateTime>
74 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
75 template<typename CreatedAtT = Aws::Utils::DateTime>
76 PullThroughCacheRule& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
78
80
84 inline const Aws::String& GetRegistryId() const { return m_registryId; }
85 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
86 template<typename RegistryIdT = Aws::String>
87 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
88 template<typename RegistryIdT = Aws::String>
89 PullThroughCacheRule& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
91
93
97 inline const Aws::String& GetCredentialArn() const { return m_credentialArn; }
98 inline bool CredentialArnHasBeenSet() const { return m_credentialArnHasBeenSet; }
99 template<typename CredentialArnT = Aws::String>
100 void SetCredentialArn(CredentialArnT&& value) { m_credentialArnHasBeenSet = true; m_credentialArn = std::forward<CredentialArnT>(value); }
101 template<typename CredentialArnT = Aws::String>
102 PullThroughCacheRule& WithCredentialArn(CredentialArnT&& value) { SetCredentialArn(std::forward<CredentialArnT>(value)); return *this;}
104
106
109 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
110 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
111 template<typename CustomRoleArnT = Aws::String>
112 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
113 template<typename CustomRoleArnT = Aws::String>
114 PullThroughCacheRule& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
116
118
122 inline const Aws::String& GetUpstreamRepositoryPrefix() const { return m_upstreamRepositoryPrefix; }
123 inline bool UpstreamRepositoryPrefixHasBeenSet() const { return m_upstreamRepositoryPrefixHasBeenSet; }
124 template<typename UpstreamRepositoryPrefixT = Aws::String>
125 void SetUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { m_upstreamRepositoryPrefixHasBeenSet = true; m_upstreamRepositoryPrefix = std::forward<UpstreamRepositoryPrefixT>(value); }
126 template<typename UpstreamRepositoryPrefixT = Aws::String>
127 PullThroughCacheRule& WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { SetUpstreamRepositoryPrefix(std::forward<UpstreamRepositoryPrefixT>(value)); return *this;}
129
131
135 inline UpstreamRegistry GetUpstreamRegistry() const { return m_upstreamRegistry; }
136 inline bool UpstreamRegistryHasBeenSet() const { return m_upstreamRegistryHasBeenSet; }
137 inline void SetUpstreamRegistry(UpstreamRegistry value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = value; }
140
142
146 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
147 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
148 template<typename UpdatedAtT = Aws::Utils::DateTime>
149 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
150 template<typename UpdatedAtT = Aws::Utils::DateTime>
151 PullThroughCacheRule& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
153 private:
154
155 Aws::String m_ecrRepositoryPrefix;
156 bool m_ecrRepositoryPrefixHasBeenSet = false;
157
158 Aws::String m_upstreamRegistryUrl;
159 bool m_upstreamRegistryUrlHasBeenSet = false;
160
161 Aws::Utils::DateTime m_createdAt{};
162 bool m_createdAtHasBeenSet = false;
163
164 Aws::String m_registryId;
165 bool m_registryIdHasBeenSet = false;
166
167 Aws::String m_credentialArn;
168 bool m_credentialArnHasBeenSet = false;
169
170 Aws::String m_customRoleArn;
171 bool m_customRoleArnHasBeenSet = false;
172
173 Aws::String m_upstreamRepositoryPrefix;
174 bool m_upstreamRepositoryPrefixHasBeenSet = false;
175
177 bool m_upstreamRegistryHasBeenSet = false;
178
179 Aws::Utils::DateTime m_updatedAt{};
180 bool m_updatedAtHasBeenSet = false;
181 };
182
183} // namespace Model
184} // namespace ECR
185} // 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