AWS SDK for C++

AWS SDK for C++ Version 1.11.612

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:
25 AWS_ECR_API DescribePullThroughCacheRulesRequest() = 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 "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 template<typename RegistryIdT = Aws::String>
47 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
48 template<typename RegistryIdT = Aws::String>
49 DescribePullThroughCacheRulesRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
51
53
58 inline const Aws::Vector<Aws::String>& GetEcrRepositoryPrefixes() const { return m_ecrRepositoryPrefixes; }
59 inline bool EcrRepositoryPrefixesHasBeenSet() const { return m_ecrRepositoryPrefixesHasBeenSet; }
60 template<typename EcrRepositoryPrefixesT = Aws::Vector<Aws::String>>
61 void SetEcrRepositoryPrefixes(EcrRepositoryPrefixesT&& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes = std::forward<EcrRepositoryPrefixesT>(value); }
62 template<typename EcrRepositoryPrefixesT = Aws::Vector<Aws::String>>
63 DescribePullThroughCacheRulesRequest& WithEcrRepositoryPrefixes(EcrRepositoryPrefixesT&& value) { SetEcrRepositoryPrefixes(std::forward<EcrRepositoryPrefixesT>(value)); return *this;}
64 template<typename EcrRepositoryPrefixesT = Aws::String>
65 DescribePullThroughCacheRulesRequest& AddEcrRepositoryPrefixes(EcrRepositoryPrefixesT&& value) { m_ecrRepositoryPrefixesHasBeenSet = true; m_ecrRepositoryPrefixes.emplace_back(std::forward<EcrRepositoryPrefixesT>(value)); return *this; }
67
69
77 inline const Aws::String& GetNextToken() const { return m_nextToken; }
78 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
79 template<typename NextTokenT = Aws::String>
80 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
81 template<typename NextTokenT = Aws::String>
82 DescribePullThroughCacheRulesRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
84
86
98 inline int GetMaxResults() const { return m_maxResults; }
99 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
100 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
101 inline DescribePullThroughCacheRulesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
103 private:
104
105 Aws::String m_registryId;
106 bool m_registryIdHasBeenSet = false;
107
108 Aws::Vector<Aws::String> m_ecrRepositoryPrefixes;
109 bool m_ecrRepositoryPrefixesHasBeenSet = false;
110
111 Aws::String m_nextToken;
112 bool m_nextTokenHasBeenSet = false;
113
114 int m_maxResults{0};
115 bool m_maxResultsHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace ECR
120} // namespace Aws
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_ECR_API Aws::String SerializePayload() const override
DescribePullThroughCacheRulesRequest & WithNextToken(NextTokenT &&value)
DescribePullThroughCacheRulesRequest & WithRegistryId(RegistryIdT &&value)
DescribePullThroughCacheRulesRequest & WithEcrRepositoryPrefixes(EcrRepositoryPrefixesT &&value)
DescribePullThroughCacheRulesRequest & AddEcrRepositoryPrefixes(EcrRepositoryPrefixesT &&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