AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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
43 inline const Aws::String& GetEcrRepositoryPrefix() const{ return m_ecrRepositoryPrefix; }
44 inline bool EcrRepositoryPrefixHasBeenSet() const { return m_ecrRepositoryPrefixHasBeenSet; }
45 inline void SetEcrRepositoryPrefix(const Aws::String& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = value; }
46 inline void SetEcrRepositoryPrefix(Aws::String&& value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix = std::move(value); }
47 inline void SetEcrRepositoryPrefix(const char* value) { m_ecrRepositoryPrefixHasBeenSet = true; m_ecrRepositoryPrefix.assign(value); }
50 inline CreatePullThroughCacheRuleRequest& WithEcrRepositoryPrefix(const char* value) { SetEcrRepositoryPrefix(value); return *this;}
52
54
67 inline const Aws::String& GetUpstreamRegistryUrl() const{ return m_upstreamRegistryUrl; }
68 inline bool UpstreamRegistryUrlHasBeenSet() const { return m_upstreamRegistryUrlHasBeenSet; }
69 inline void SetUpstreamRegistryUrl(const Aws::String& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = value; }
70 inline void SetUpstreamRegistryUrl(Aws::String&& value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl = std::move(value); }
71 inline void SetUpstreamRegistryUrl(const char* value) { m_upstreamRegistryUrlHasBeenSet = true; m_upstreamRegistryUrl.assign(value); }
74 inline CreatePullThroughCacheRuleRequest& WithUpstreamRegistryUrl(const char* value) { SetUpstreamRegistryUrl(value); return *this;}
76
78
83 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
84 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
85 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
86 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
87 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
88 inline CreatePullThroughCacheRuleRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
89 inline CreatePullThroughCacheRuleRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
90 inline CreatePullThroughCacheRuleRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
92
94
97 inline const UpstreamRegistry& GetUpstreamRegistry() const{ return m_upstreamRegistry; }
98 inline bool UpstreamRegistryHasBeenSet() const { return m_upstreamRegistryHasBeenSet; }
99 inline void SetUpstreamRegistry(const UpstreamRegistry& value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = value; }
100 inline void SetUpstreamRegistry(UpstreamRegistry&& value) { m_upstreamRegistryHasBeenSet = true; m_upstreamRegistry = std::move(value); }
104
106
111 inline const Aws::String& GetCredentialArn() const{ return m_credentialArn; }
112 inline bool CredentialArnHasBeenSet() const { return m_credentialArnHasBeenSet; }
113 inline void SetCredentialArn(const Aws::String& value) { m_credentialArnHasBeenSet = true; m_credentialArn = value; }
114 inline void SetCredentialArn(Aws::String&& value) { m_credentialArnHasBeenSet = true; m_credentialArn = std::move(value); }
115 inline void SetCredentialArn(const char* value) { m_credentialArnHasBeenSet = true; m_credentialArn.assign(value); }
117 inline CreatePullThroughCacheRuleRequest& WithCredentialArn(Aws::String&& value) { SetCredentialArn(std::move(value)); return *this;}
118 inline CreatePullThroughCacheRuleRequest& WithCredentialArn(const char* value) { SetCredentialArn(value); return *this;}
120 private:
121
122 Aws::String m_ecrRepositoryPrefix;
123 bool m_ecrRepositoryPrefixHasBeenSet = false;
124
125 Aws::String m_upstreamRegistryUrl;
126 bool m_upstreamRegistryUrlHasBeenSet = false;
127
128 Aws::String m_registryId;
129 bool m_registryIdHasBeenSet = false;
130
131 UpstreamRegistry m_upstreamRegistry;
132 bool m_upstreamRegistryHasBeenSet = false;
133
134 Aws::String m_credentialArn;
135 bool m_credentialArnHasBeenSet = false;
136 };
137
138} // namespace Model
139} // namespace ECR
140} // namespace Aws
AWS_ECR_API Aws::String SerializePayload() const override
CreatePullThroughCacheRuleRequest & WithCredentialArn(Aws::String &&value)
CreatePullThroughCacheRuleRequest & WithCredentialArn(const char *value)
CreatePullThroughCacheRuleRequest & WithEcrRepositoryPrefix(Aws::String &&value)
CreatePullThroughCacheRuleRequest & WithUpstreamRegistryUrl(Aws::String &&value)
CreatePullThroughCacheRuleRequest & WithEcrRepositoryPrefix(const Aws::String &value)
CreatePullThroughCacheRuleRequest & WithEcrRepositoryPrefix(const char *value)
CreatePullThroughCacheRuleRequest & WithRegistryId(const Aws::String &value)
CreatePullThroughCacheRuleRequest & WithCredentialArn(const Aws::String &value)
CreatePullThroughCacheRuleRequest & WithUpstreamRegistryUrl(const char *value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreatePullThroughCacheRuleRequest & WithUpstreamRegistry(UpstreamRegistry &&value)
CreatePullThroughCacheRuleRequest & WithRegistryId(const char *value)
CreatePullThroughCacheRuleRequest & WithUpstreamRegistry(const UpstreamRegistry &value)
CreatePullThroughCacheRuleRequest & WithRegistryId(Aws::String &&value)
CreatePullThroughCacheRuleRequest & WithUpstreamRegistryUrl(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String