AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
GetLifecyclePolicyPreviewRequest.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 <aws/ecr/model/LifecyclePolicyPreviewFilter.h>
12#include <aws/ecr/model/ImageIdentifier.h>
13#include <utility>
14
15namespace Aws
16{
17namespace ECR
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_ECR_API GetLifecyclePolicyPreviewRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "GetLifecyclePolicyPreview"; }
34
35 AWS_ECR_API Aws::String SerializePayload() const override;
36
38
39
41
46 inline const Aws::String& GetRegistryId() const { return m_registryId; }
47 inline bool RegistryIdHasBeenSet() const { return m_registryIdHasBeenSet; }
48 template<typename RegistryIdT = Aws::String>
49 void SetRegistryId(RegistryIdT&& value) { m_registryIdHasBeenSet = true; m_registryId = std::forward<RegistryIdT>(value); }
50 template<typename RegistryIdT = Aws::String>
51 GetLifecyclePolicyPreviewRequest& WithRegistryId(RegistryIdT&& value) { SetRegistryId(std::forward<RegistryIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetRepositoryName() const { return m_repositoryName; }
59 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
60 template<typename RepositoryNameT = Aws::String>
61 void SetRepositoryName(RepositoryNameT&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::forward<RepositoryNameT>(value); }
62 template<typename RepositoryNameT = Aws::String>
63 GetLifecyclePolicyPreviewRequest& WithRepositoryName(RepositoryNameT&& value) { SetRepositoryName(std::forward<RepositoryNameT>(value)); return *this;}
65
67
70 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const { return m_imageIds; }
71 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
72 template<typename ImageIdsT = Aws::Vector<ImageIdentifier>>
73 void SetImageIds(ImageIdsT&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::forward<ImageIdsT>(value); }
74 template<typename ImageIdsT = Aws::Vector<ImageIdentifier>>
75 GetLifecyclePolicyPreviewRequest& WithImageIds(ImageIdsT&& value) { SetImageIds(std::forward<ImageIdsT>(value)); return *this;}
76 template<typename ImageIdsT = ImageIdentifier>
77 GetLifecyclePolicyPreviewRequest& AddImageIds(ImageIdsT&& value) { m_imageIdsHasBeenSet = true; m_imageIds.emplace_back(std::forward<ImageIdsT>(value)); return *this; }
79
81
90 inline const Aws::String& GetNextToken() const { return m_nextToken; }
91 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
92 template<typename NextTokenT = Aws::String>
93 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
94 template<typename NextTokenT = Aws::String>
95 GetLifecyclePolicyPreviewRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
97
99
113 inline int GetMaxResults() const { return m_maxResults; }
114 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
115 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
116 inline GetLifecyclePolicyPreviewRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
118
120
124 inline const LifecyclePolicyPreviewFilter& GetFilter() const { return m_filter; }
125 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
126 template<typename FilterT = LifecyclePolicyPreviewFilter>
127 void SetFilter(FilterT&& value) { m_filterHasBeenSet = true; m_filter = std::forward<FilterT>(value); }
128 template<typename FilterT = LifecyclePolicyPreviewFilter>
129 GetLifecyclePolicyPreviewRequest& WithFilter(FilterT&& value) { SetFilter(std::forward<FilterT>(value)); return *this;}
131 private:
132
133 Aws::String m_registryId;
134 bool m_registryIdHasBeenSet = false;
135
136 Aws::String m_repositoryName;
137 bool m_repositoryNameHasBeenSet = false;
138
140 bool m_imageIdsHasBeenSet = false;
141
142 Aws::String m_nextToken;
143 bool m_nextTokenHasBeenSet = false;
144
145 int m_maxResults{0};
146 bool m_maxResultsHasBeenSet = false;
147
148 LifecyclePolicyPreviewFilter m_filter;
149 bool m_filterHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace ECR
154} // namespace Aws
GetLifecyclePolicyPreviewRequest & WithRegistryId(RegistryIdT &&value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLifecyclePolicyPreviewRequest & WithRepositoryName(RepositoryNameT &&value)
GetLifecyclePolicyPreviewRequest & AddImageIds(ImageIdsT &&value)
GetLifecyclePolicyPreviewRequest & WithNextToken(NextTokenT &&value)
const Aws::Vector< ImageIdentifier > & GetImageIds() const
GetLifecyclePolicyPreviewRequest & WithImageIds(ImageIdsT &&value)
GetLifecyclePolicyPreviewRequest & WithMaxResults(int value)
AWS_ECR_API Aws::String SerializePayload() const override
GetLifecyclePolicyPreviewRequest & WithFilter(FilterT &&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