AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreatePullThroughCacheRuleRequest.h
1
6#pragma once
7#include <aws/ecr/ECR_EXPORTS.h>
8#include <aws/ecr/ECRRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ecr/model/UpstreamRegistry.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ECR
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_ECR_API CreatePullThroughCacheRuleRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreatePullThroughCacheRule"; }
32
33 AWS_ECR_API Aws::String SerializePayload() const override;
34
36
37
39
45 inline const Aws::String& GetEcrRepositoryPrefix() const { return m_ecrRepositoryPrefix; }
46 inline bool EcrRepositoryPrefixHasBeenSet() const { return m_ecrRepositoryPrefixHasBeenSet; }
47 template<typename EcrRepositoryPrefixT = Aws::String>
48 void SetEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::forward<EcrRepositoryPrefixT>(value); }
49 template<typename EcrRepositoryPrefixT = Aws::String>
50 CreatePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(EcrRepositoryPrefixT&& value) { SetEcrRepositoryPrefix(std::forward<EcrRepositoryPrefixT>(value)); return *this;}
52
54
71 inline const Aws::String& GetUpstreamRegistryUrl() const { return m_upstreamRegistryUrl; }
72 inline bool UpstreamRegistryUrlHasBeenSet() const { return m_upstreamRegistryUrlHasBeenSet; }
73 template<typename UpstreamRegistryUrlT = Aws::String>
74 void SetUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = std::forward<UpstreamRegistryUrlT>(value); }
75 template<typename UpstreamRegistryUrlT = Aws::String>
76 CreatePullThroughCacheRuleRequest& WithUpstreamRegistryUrl(UpstreamRegistryUrlT&& value) { SetUpstreamRegistryUrl(std::forward<UpstreamRegistryUrlT>(value)); return *this;}
78
80
85 inline const Aws::String& GetRegistryId() const { return m_registryId; }
86 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
87 template<typename RegistryIdT = Aws::String>
88 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
89 template<typename RegistryIdT = Aws::String>
90 CreatePullThroughCacheRuleRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
92
94
97 inline UpstreamRegistry GetUpstreamRegistry() const { return m_upstreamRegistry; }
98 inline bool UpstreamRegistryHasBeenSet() const { return m_upstreamRegistryHasBeenSet; }
99 inline void SetUpstreamRegistry(UpstreamRegistry value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = value; }
102
104
109 inline const Aws::String& GetCredentialArn() const { return m_credentialArn; }
110 inline bool CredentialArnHasBeenSet() const { return m_credentialArnHasBeenSet; }
111 template<typename CredentialArnT = Aws::String>
112 void SetCredentialArn(CredentialArnT&& value) { m_credentialArnHasBeenSet = true; m_credentialArn = std::forward<CredentialArnT>(value); }
113 template<typename CredentialArnT = Aws::String>
114 CreatePullThroughCacheRuleRequest& WithCredentialArn(CredentialArnT&& value) { SetCredentialArn(std::forward<CredentialArnT>(value)); return *this;}
116
118
123 inline const Aws::String& GetCustomRoleArn() const { return m_customRoleArn; }
124 inline bool CustomRoleArnHasBeenSet() const { return m_customRoleArnHasBeenSet; }
125 template<typename CustomRoleArnT = Aws::String>
126 void SetCustomRoleArn(CustomRoleArnT&& value) { m_customRoleArnHasBeenSet = true; m_customRoleArn = std::forward<CustomRoleArnT>(value); }
127 template<typename CustomRoleArnT = Aws::String>
128 CreatePullThroughCacheRuleRequest& WithCustomRoleArn(CustomRoleArnT&& value) { SetCustomRoleArn(std::forward<CustomRoleArnT>(value)); return *this;}
130
132
137 inline const Aws::String& GetUpstreamRepositoryPrefix() const { return m_upstreamRepositoryPrefix; }
138 inline bool UpstreamRepositoryPrefixHasBeenSet() const { return m_upstreamRepositoryPrefixHasBeenSet; }
139 template<typename UpstreamRepositoryPrefixT = Aws::String>
140 void SetUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { m_upstreamRepositoryPrefixHasBeenSet = true; m_upstreamRepositoryPrefix = std::forward<UpstreamRepositoryPrefixT>(value); }
141 template<typename UpstreamRepositoryPrefixT = Aws::String>
142 CreatePullThroughCacheRuleRequest& WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT&& value) { SetUpstreamRepositoryPrefix(std::forward<UpstreamRepositoryPrefixT>(value)); return *this;}
144 private:
145
146 Aws::String m_ecrRepositoryPrefix;
147 bool m_ecrRepositoryPrefixHasBeenSet = false;
148
149 Aws::String m_upstreamRegistryUrl;
150 bool m_upstreamRegistryUrlHasBeenSet = false;
151
152 Aws::String m_registryId;
153 bool m_registryIdHasBeenSet = false;
154
156 bool m_upstreamRegistryHasBeenSet = false;
157
158 Aws::String m_credentialArn;
159 bool m_credentialArnHasBeenSet = false;
160
161 Aws::String m_customRoleArn;
162 bool m_customRoleArnHasBeenSet = false;
163
164 Aws::String m_upstreamRepositoryPrefix;
165 bool m_upstreamRepositoryPrefixHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace ECR
170} // namespace Aws
AWS_ECR_API Aws::String SerializePayload() const override
CreatePullThroughCacheRuleRequest & WithUpstreamRegistry(UpstreamRegistry value)
CreatePullThroughCacheRuleRequest & WithUpstreamRepositoryPrefix(UpstreamRepositoryPrefixT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePullThroughCacheRuleRequest & WithUpstreamRegistryUrl(UpstreamRegistryUrlT &&value)
CreatePullThroughCacheRuleRequest & WithEcrRepositoryPrefix(EcrRepositoryPrefixT &&value)
CreatePullThroughCacheRuleRequest & WithRegistryId(RegistryIdT &&value)
CreatePullThroughCacheRuleRequest & WithCustomRoleArn(CustomRoleArnT &&value)
CreatePullThroughCacheRuleRequest & WithCredentialArn(CredentialArnT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String