AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ValidatePullThroughCacheRuleResult.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13template<typename RESULT_TYPE>
14class AmazonWebServiceResult;
15
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace ECR
24{
25namespace Model
26{
28 {
29 public:
30 AWS_ECR_API ValidatePullThroughCacheRuleResult() = default;
33
34
36
40 inline const Aws::String& GetEcrRepositoryPrefix() const { return m_ecrRepositoryPrefix; }
41 template<typename EcrRepositoryPrefixT = Aws::String>
42 void SetEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::forward<EcrRepositoryPrefixT>(value); }
43 template<typename EcrRepositoryPrefixT = Aws::String>
44 ValidatePullThroughCacheRuleResult& WithEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { SetEcrRepositoryPrefix(std::forward<EcrRepositoryPrefixT>(value)); return *this;}
46
48
51 inline const Aws::String& GetRegistryId() const { return m_registryId; }
52 template<typename RegistryIdT = Aws::String>
53 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
54 template<typename RegistryIdT = Aws::String>
55 ValidatePullThroughCacheRuleResult& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
57
59
62 inline const Aws::String& GetUpstreamRegistryUrl() const { return m_upstreamRegistryUrl; }
63 template<typename UpstreamRegistryUrlT = Aws::String>
64 void SetUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = std::forward<UpstreamRegistryUrlT>(value); }
65 template<typename UpstreamRegistryUrlT = Aws::String>
66 ValidatePullThroughCacheRuleResult& WithUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) { SetUpstreamRegistryUrl(std::forward<UpstreamRegistryUrlT>(value)); return *this;}
68
70
74 inline const Aws::String& GetCredentialArn() const { return m_credentialArn; }
75 template<typename CredentialArnT = Aws::String>
76 void SetCredentialArn(CredentialArnT&& value) { m_credentialArnHasBeenSet = true; m_credentialArn = std::forward<CredentialArnT>(value); }
77 template<typename CredentialArnT = Aws::String>
78 ValidatePullThroughCacheRuleResult& WithCredentialArn(CredentialArnT&& value) { SetCredentialArn(std::forward<CredentialArnT>(value)); return *this;}
80
82
85 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
86 template<typename CustomRoleArnT = Aws::String>
87 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
88 template<typename CustomRoleArnT = Aws::String>
89 ValidatePullThroughCacheRuleResult& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
91
93
97 inline const Aws::String& GetUpstreamRepositoryPrefix() const { return m_upstreamRepositoryPrefix; }
98 template<typename UpstreamRepositoryPrefixT = Aws::String>
99 void SetUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { m_upstreamRepositoryPrefixHasBeenSet = true; m_upstreamRepositoryPrefix = std::forward<UpstreamRepositoryPrefixT>(value); }
100 template<typename UpstreamRepositoryPrefixT = Aws::String>
101 ValidatePullThroughCacheRuleResult& WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { SetUpstreamRepositoryPrefix(std::forward<UpstreamRepositoryPrefixT>(value)); return *this;}
103
105
111 inline bool GetIsValid() const { return m_isValid; }
112 inline void SetIsValid(bool value) { m_isValidHasBeenSet = true; m_isValid = value; }
113 inline ValidatePullThroughCacheRuleResult& WithIsValid(bool value) { SetIsValid(value); return *this;}
115
117
124 inline const Aws::String& GetFailure() const { return m_failure; }
125 template<typename FailureT = Aws::String>
126 void SetFailure(FailureT&& value) { m_failureHasBeenSet = true; m_failure = std::forward<FailureT>(value); }
127 template<typename FailureT = Aws::String>
128 ValidatePullThroughCacheRuleResult& WithFailure(FailureT&& value) { SetFailure(std::forward<FailureT>(value)); return *this;}
130
132
133 inline const Aws::String& GetRequestId() const { return m_requestId; }
134 template<typename RequestIdT = Aws::String>
135 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
136 template<typename RequestIdT = Aws::String>
137 ValidatePullThroughCacheRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
139 private:
140
141 Aws::String m_ecrRepositoryPrefix;
142 bool m_ecrRepositoryPrefixHasBeenSet = false;
143
144 Aws::String m_registryId;
145 bool m_registryIdHasBeenSet = false;
146
147 Aws::String m_upstreamRegistryUrl;
148 bool m_upstreamRegistryUrlHasBeenSet = false;
149
150 Aws::String m_credentialArn;
151 bool m_credentialArnHasBeenSet = false;
152
153 Aws::String m_customRoleArn;
154 bool m_customRoleArnHasBeenSet = false;
155
156 Aws::String m_upstreamRepositoryPrefix;
157 bool m_upstreamRepositoryPrefixHasBeenSet = false;
158
159 bool m_isValid{false};
160 bool m_isValidHasBeenSet = false;
161
162 Aws::String m_failure;
163 bool m_failureHasBeenSet = false;
164
165 Aws::String m_requestId;
166 bool m_requestIdHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace ECR
171} // namespace Aws
ValidatePullThroughCacheRuleResult & WithRequestId(RequestIdT &&value)
ValidatePullThroughCacheRuleResult & WithCredentialArn(CredentialArnT &&value)
ValidatePullThroughCacheRuleResult & WithIsValid(bool value)
ValidatePullThroughCacheRuleResult & WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT &&value)
ValidatePullThroughCacheRuleResult & WithUpstreamRegistryUrl(UpstreamRegistryUrlT &&value)
ValidatePullThroughCacheRuleResult & WithEcrRepositoryPrefix(EcrRepositoryPrefixT &&value)
AWS_ECR_API ValidatePullThroughCacheRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ValidatePullThroughCacheRuleResult & WithRegistryId(RegistryIdT &&value)
AWS_ECR_API ValidatePullThroughCacheRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ValidatePullThroughCacheRuleResult & WithFailure(FailureT &&value)
ValidatePullThroughCacheRuleResult & WithCustomRoleArn(CustomRoleArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue