AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
40
41
43
47 inline const Aws::String& GetEcrRepositoryPrefix() const{ return m_ecrRepositoryPrefix; }
48 inline bool EcrRepositoryPrefixHasBeenSet() const { return m_ecrRepositoryPrefixHasBeenSet; }
49 inline void SetEcrRepositoryPrefix(const Aws::String& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = value; }
50 inline void SetEcrRepositoryPrefix(Aws::String&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::move(value); }
51 inline void SetEcrRepositoryPrefix(const char* value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix.assign(value); }
53 inline PullThroughCacheRule& WithEcrRepositoryPrefix(Aws::String&& value) { SetEcrRepositoryPrefix(std::move(value)); return *this;}
54 inline PullThroughCacheRule& WithEcrRepositoryPrefix(const char* value) { SetEcrRepositoryPrefix(value); return *this;}
56
58
61 inline const Aws::String& GetUpstreamRegistryUrl() const{ return m_upstreamRegistryUrl; }
62 inline bool UpstreamRegistryUrlHasBeenSet() const { return m_upstreamRegistryUrlHasBeenSet; }
63 inline void SetUpstreamRegistryUrl(const Aws::String& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = value; }
64 inline void SetUpstreamRegistryUrl(Aws::String&& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = std::move(value); }
65 inline void SetUpstreamRegistryUrl(const char* value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl.assign(value); }
67 inline PullThroughCacheRule& WithUpstreamRegistryUrl(Aws::String&& value) { SetUpstreamRegistryUrl(std::move(value)); return *this;}
68 inline PullThroughCacheRule& WithUpstreamRegistryUrl(const char* value) { SetUpstreamRegistryUrl(value); return *this;}
70
72
75 inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; }
76 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
77 inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; }
78 inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); }
79 inline PullThroughCacheRule& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;}
80 inline PullThroughCacheRule& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;}
82
84
88 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
89 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
90 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
91 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
92 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
93 inline PullThroughCacheRule& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
94 inline PullThroughCacheRule& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
95 inline PullThroughCacheRule& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
97
99
103 inline const Aws::String& GetCredentialArn() const{ return m_credentialArn; }
104 inline bool CredentialArnHasBeenSet() const { return m_credentialArnHasBeenSet; }
105 inline void SetCredentialArn(const Aws::String& value) { m_credentialArnHasBeenSet = true; m_credentialArn = value; }
106 inline void SetCredentialArn(Aws::String&& value) { m_credentialArnHasBeenSet = true; m_credentialArn = std::move(value); }
107 inline void SetCredentialArn(const char* value) { m_credentialArnHasBeenSet = true; m_credentialArn.assign(value); }
108 inline PullThroughCacheRule& WithCredentialArn(const Aws::String& value) { SetCredentialArn(value); return *this;}
109 inline PullThroughCacheRule& WithCredentialArn(Aws::String&& value) { SetCredentialArn(std::move(value)); return *this;}
110 inline PullThroughCacheRule& WithCredentialArn(const char* value) { SetCredentialArn(value); return *this;}
112
114
118 inline const UpstreamRegistry& GetUpstreamRegistry() const{ return m_upstreamRegistry; }
119 inline bool UpstreamRegistryHasBeenSet() const { return m_upstreamRegistryHasBeenSet; }
120 inline void SetUpstreamRegistry(const UpstreamRegistry& value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = value; }
121 inline void SetUpstreamRegistry(UpstreamRegistry&& value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = std::move(value); }
123 inline PullThroughCacheRule& WithUpstreamRegistry(UpstreamRegistry&& value) { SetUpstreamRegistry(std::move(value)); return *this;}
125
127
131 inline const Aws::Utils::DateTime& GetUpdatedAt() const{ return m_updatedAt; }
132 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
133 inline void SetUpdatedAt(const Aws::Utils::DateTime& value) { m_updatedAtHasBeenSet = true; m_updatedAt = value; }
134 inline void SetUpdatedAt(Aws::Utils::DateTime&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::move(value); }
135 inline PullThroughCacheRule& WithUpdatedAt(const Aws::Utils::DateTime& value) { SetUpdatedAt(value); return *this;}
136 inline PullThroughCacheRule& WithUpdatedAt(Aws::Utils::DateTime&& value) { SetUpdatedAt(std::move(value)); return *this;}
138 private:
139
140 Aws::String m_ecrRepositoryPrefix;
141 bool m_ecrRepositoryPrefixHasBeenSet = false;
142
143 Aws::String m_upstreamRegistryUrl;
144 bool m_upstreamRegistryUrlHasBeenSet = false;
145
146 Aws::Utils::DateTime m_createdAt;
147 bool m_createdAtHasBeenSet = false;
148
149 Aws::String m_registryId;
150 bool m_registryIdHasBeenSet = false;
151
152 Aws::String m_credentialArn;
153 bool m_credentialArnHasBeenSet = false;
154
155 UpstreamRegistry m_upstreamRegistry;
156 bool m_upstreamRegistryHasBeenSet = false;
157
158 Aws::Utils::DateTime m_updatedAt;
159 bool m_updatedAtHasBeenSet = false;
160 };
161
162} // namespace Model
163} // namespace ECR
164} // namespace Aws
const Aws::String & GetUpstreamRegistryUrl() const
void SetUpdatedAt(Aws::Utils::DateTime &&value)
const Aws::String & GetRegistryId() const
void SetEcrRepositoryPrefix(Aws::String &&value)
const Aws::String & GetCredentialArn() const
PullThroughCacheRule & WithEcrRepositoryPrefix(Aws::String &&value)
AWS_ECR_API Aws::Utils::Json::JsonValue Jsonize() const
PullThroughCacheRule & WithCredentialArn(const Aws::String &value)
void SetUpstreamRegistry(const UpstreamRegistry &value)
PullThroughCacheRule & WithUpdatedAt(Aws::Utils::DateTime &&value)
void SetRegistryId(const Aws::String &value)
PullThroughCacheRule & WithUpstreamRegistryUrl(const char *value)
PullThroughCacheRule & WithCredentialArn(const char *value)
AWS_ECR_API PullThroughCacheRule & operator=(Aws::Utils::Json::JsonView jsonValue)
const UpstreamRegistry & GetUpstreamRegistry() const
void SetUpdatedAt(const Aws::Utils::DateTime &value)
PullThroughCacheRule & WithCreatedAt(const Aws::Utils::DateTime &value)
PullThroughCacheRule & WithUpstreamRegistryUrl(Aws::String &&value)
void SetUpstreamRegistry(UpstreamRegistry &&value)
PullThroughCacheRule & WithUpdatedAt(const Aws::Utils::DateTime &value)
const Aws::String & GetEcrRepositoryPrefix() const
void SetEcrRepositoryPrefix(const Aws::String &value)
PullThroughCacheRule & WithUpstreamRegistry(const UpstreamRegistry &value)
PullThroughCacheRule & WithRegistryId(const char *value)
const Aws::Utils::DateTime & GetUpdatedAt() const
PullThroughCacheRule & WithEcrRepositoryPrefix(const Aws::String &value)
PullThroughCacheRule & WithRegistryId(Aws::String &&value)
AWS_ECR_API PullThroughCacheRule(Aws::Utils::Json::JsonView jsonValue)
PullThroughCacheRule & WithUpstreamRegistryUrl(const Aws::String &value)
void SetCreatedAt(const Aws::Utils::DateTime &value)
PullThroughCacheRule & WithUpstreamRegistry(UpstreamRegistry &&value)
void SetCreatedAt(Aws::Utils::DateTime &&value)
void SetUpstreamRegistryUrl(Aws::String &&value)
PullThroughCacheRule & WithRegistryId(const Aws::String &value)
void SetUpstreamRegistryUrl(const Aws::String &value)
PullThroughCacheRule & WithEcrRepositoryPrefix(const char *value)
void SetCredentialArn(const Aws::String &value)
const Aws::Utils::DateTime & GetCreatedAt() const
PullThroughCacheRule & WithCredentialArn(Aws::String &&value)
PullThroughCacheRule & WithCreatedAt(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue