AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePullThroughCacheRuleResult.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{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace ECR
26{
27namespace Model
28{
30 {
31 public:
32 AWS_ECR_API CreatePullThroughCacheRuleResult() = default;
35
36
38
42 inline const Aws::String& GetEcrRepositoryPrefix() const { return m_ecrRepositoryPrefix; }
43 template<typename EcrRepositoryPrefixT = Aws::String>
44 void SetEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::forward<EcrRepositoryPrefixT>(value); }
45 template<typename EcrRepositoryPrefixT = Aws::String>
46 CreatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { SetEcrRepositoryPrefix(std::forward<EcrRepositoryPrefixT>(value)); return *this;}
48
50
53 inline const Aws::String& GetUpstreamRegistryUrl() const { return m_upstreamRegistryUrl; }
54 template<typename UpstreamRegistryUrlT = Aws::String>
55 void SetUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = std::forward<UpstreamRegistryUrlT>(value); }
56 template<typename UpstreamRegistryUrlT = Aws::String>
57 CreatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) { SetUpstreamRegistryUrl(std::forward<UpstreamRegistryUrlT>(value)); return *this;}
59
61
65 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
66 template<typename CreatedAtT = Aws::Utils::DateTime>
67 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
68 template<typename CreatedAtT = Aws::Utils::DateTime>
69 CreatePullThroughCacheRuleResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
71
73
76 inline const Aws::String& GetRegistryId() const { return m_registryId; }
77 template<typename RegistryIdT = Aws::String>
78 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
79 template<typename RegistryIdT = Aws::String>
80 CreatePullThroughCacheRuleResult& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
82
84
88 inline UpstreamRegistry GetUpstreamRegistry() const { return m_upstreamRegistry; }
89 inline void SetUpstreamRegistry(UpstreamRegistry value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = value; }
92
94
98 inline const Aws::String& GetCredentialArn() const { return m_credentialArn; }
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 CreatePullThroughCacheRuleResult& WithCredentialArn(CredentialArnT&& value) { SetCredentialArn(std::forward<CredentialArnT>(value)); return *this;}
104
106
109 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
110 template<typename CustomRoleArnT = Aws::String>
111 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
112 template<typename CustomRoleArnT = Aws::String>
113 CreatePullThroughCacheRuleResult& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
115
117
121 inline const Aws::String& GetUpstreamRepositoryPrefix() const { return m_upstreamRepositoryPrefix; }
122 template<typename UpstreamRepositoryPrefixT = Aws::String>
123 void SetUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { m_upstreamRepositoryPrefixHasBeenSet = true; m_upstreamRepositoryPrefix = std::forward<UpstreamRepositoryPrefixT>(value); }
124 template<typename UpstreamRepositoryPrefixT = Aws::String>
125 CreatePullThroughCacheRuleResult& WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { SetUpstreamRepositoryPrefix(std::forward<UpstreamRepositoryPrefixT>(value)); return *this;}
127
129
130 inline const Aws::String& GetRequestId() const { return m_requestId; }
131 template<typename RequestIdT = Aws::String>
132 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
133 template<typename RequestIdT = Aws::String>
134 CreatePullThroughCacheRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
136 private:
137
138 Aws::String m_ecrRepositoryPrefix;
139 bool m_ecrRepositoryPrefixHasBeenSet = false;
140
141 Aws::String m_upstreamRegistryUrl;
142 bool m_upstreamRegistryUrlHasBeenSet = false;
143
144 Aws::Utils::DateTime m_createdAt{};
145 bool m_createdAtHasBeenSet = false;
146
147 Aws::String m_registryId;
148 bool m_registryIdHasBeenSet = false;
149
151 bool m_upstreamRegistryHasBeenSet = false;
152
153 Aws::String m_credentialArn;
154 bool m_credentialArnHasBeenSet = false;
155
156 Aws::String m_customRoleArn;
157 bool m_customRoleArnHasBeenSet = false;
158
159 Aws::String m_upstreamRepositoryPrefix;
160 bool m_upstreamRepositoryPrefixHasBeenSet = false;
161
162 Aws::String m_requestId;
163 bool m_requestIdHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace ECR
168} // namespace Aws
CreatePullThroughCacheRuleResult & WithCreatedAt(CreatedAtT &&value)
CreatePullThroughCacheRuleResult & WithCredentialArn(CredentialArnT &&value)
void SetUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT &&value)
CreatePullThroughCacheRuleResult & WithEcrRepositoryPrefix(EcrRepositoryPrefixT &&value)
CreatePullThroughCacheRuleResult & WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT &&value)
AWS_ECR_API CreatePullThroughCacheRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePullThroughCacheRuleResult & WithCustomRoleArn(CustomRoleArnT &&value)
CreatePullThroughCacheRuleResult & WithUpstreamRegistryUrl(UpstreamRegistryUrlT &&value)
CreatePullThroughCacheRuleResult & WithRequestId(RequestIdT &&value)
CreatePullThroughCacheRuleResult & WithUpstreamRegistry(UpstreamRegistry value)
AWS_ECR_API CreatePullThroughCacheRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CreatePullThroughCacheRuleResult & WithRegistryId(RegistryIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue