AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DescribePullThroughCacheRulesRequest.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/core/utils/memory/stl/AWSVector.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 "DescribePullThroughCacheRules"; }
32
33 AWS_ECR_API Aws::String SerializePayload() const override;
34
36
37
39
44 inline const Aws::String& GetRegistryId() const{ return m_registryId; }
45 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
46 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
47 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
48 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
50 inline DescribePullThroughCacheRulesRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
51 inline DescribePullThroughCacheRulesRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
53
55
60 inline const Aws::Vector<Aws::String>& GetEcrRepositoryPrefixes() const{ return m_ecrRepositoryPrefixes; }
61 inline bool EcrRepositoryPrefixesHasBeenSet() const { return m_ecrRepositoryPrefixesHasBeenSet; }
62 inline void SetEcrRepositoryPrefixes(const Aws::Vector<Aws::String>& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes = value; }
63 inline void SetEcrRepositoryPrefixes(Aws::Vector<Aws::String>&& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes = std::move(value); }
66 inline DescribePullThroughCacheRulesRequest& AddEcrRepositoryPrefixes(const Aws::String& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes.push_back(value); return *this; }
67 inline DescribePullThroughCacheRulesRequest& AddEcrRepositoryPrefixes(Aws::String&& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes.push_back(std::move(value)); return *this; }
68 inline DescribePullThroughCacheRulesRequest& AddEcrRepositoryPrefixes(const char* value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes.push_back(value); return *this; }
70
72
80 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
81 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
82 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
83 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
84 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
85 inline DescribePullThroughCacheRulesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
86 inline DescribePullThroughCacheRulesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
87 inline DescribePullThroughCacheRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
89
91
103 inline int GetMaxResults() const{ return m_maxResults; }
104 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
105 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
106 inline DescribePullThroughCacheRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
108 private:
109
110 Aws::String m_registryId;
111 bool m_registryIdHasBeenSet = false;
112
113 Aws::Vector<Aws::String> m_ecrRepositoryPrefixes;
114 bool m_ecrRepositoryPrefixesHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118
119 int m_maxResults;
120 bool m_maxResultsHasBeenSet = false;
121 };
122
123} // namespace Model
124} // namespace ECR
125} // namespace Aws
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECR_API Aws::String SerializePayload() const override
void SetEcrRepositoryPrefixes(const Aws::Vector< Aws::String > &value)
DescribePullThroughCacheRulesRequest & WithEcrRepositoryPrefixes(Aws::Vector< Aws::String > &&value)
DescribePullThroughCacheRulesRequest & WithRegistryId(const char *value)
DescribePullThroughCacheRulesRequest & AddEcrRepositoryPrefixes(const Aws::String &value)
DescribePullThroughCacheRulesRequest & WithNextToken(const Aws::String &value)
DescribePullThroughCacheRulesRequest & WithEcrRepositoryPrefixes(const Aws::Vector< Aws::String > &value)
DescribePullThroughCacheRulesRequest & WithRegistryId(const Aws::String &value)
DescribePullThroughCacheRulesRequest & AddEcrRepositoryPrefixes(Aws::String &&value)
DescribePullThroughCacheRulesRequest & WithRegistryId(Aws::String &&value)
DescribePullThroughCacheRulesRequest & AddEcrRepositoryPrefixes(const char *value)
DescribePullThroughCacheRulesRequest & WithNextToken(Aws::String &&value)
DescribePullThroughCacheRulesRequest & WithNextToken(const char *value)
DescribePullThroughCacheRulesRequest & WithMaxResults(int value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector