AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
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 inline void SetRegistryId(const Aws::String& value) { m_registryIdHasBeenSet = true; m_registryId = value; }
49 inline void SetRegistryId(Aws::String&& value) { m_registryIdHasBeenSet = true; m_registryId = std::move(value); }
50 inline void SetRegistryId(const char* value) { m_registryIdHasBeenSet = true; m_registryId.assign(value); }
51 inline GetLifecyclePolicyPreviewRequest& WithRegistryId(const Aws::String& value) { SetRegistryId(value); return *this;}
52 inline GetLifecyclePolicyPreviewRequest& WithRegistryId(Aws::String&& value) { SetRegistryId(std::move(value)); return *this;}
53 inline GetLifecyclePolicyPreviewRequest& WithRegistryId(const char* value) { SetRegistryId(value); return *this;}
55
57
60 inline const Aws::String& GetRepositoryName() const{ return m_repositoryName; }
61 inline bool RepositoryNameHasBeenSet() const { return m_repositoryNameHasBeenSet; }
62 inline void SetRepositoryName(const Aws::String& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = value; }
63 inline void SetRepositoryName(Aws::String&& value) { m_repositoryNameHasBeenSet = true; m_repositoryName = std::move(value); }
64 inline void SetRepositoryName(const char* value) { m_repositoryNameHasBeenSet = true; m_repositoryName.assign(value); }
66 inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(Aws::String&& value) { SetRepositoryName(std::move(value)); return *this;}
67 inline GetLifecyclePolicyPreviewRequest& WithRepositoryName(const char* value) { SetRepositoryName(value); return *this;}
69
71
74 inline const Aws::Vector<ImageIdentifier>& GetImageIds() const{ return m_imageIds; }
75 inline bool ImageIdsHasBeenSet() const { return m_imageIdsHasBeenSet; }
76 inline void SetImageIds(const Aws::Vector<ImageIdentifier>& value) { m_imageIdsHasBeenSet = true; m_imageIds = value; }
77 inline void SetImageIds(Aws::Vector<ImageIdentifier>&& value) { m_imageIdsHasBeenSet = true; m_imageIds = std::move(value); }
80 inline GetLifecyclePolicyPreviewRequest& AddImageIds(const ImageIdentifier& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(value); return *this; }
81 inline GetLifecyclePolicyPreviewRequest& AddImageIds(ImageIdentifier&& value) { m_imageIdsHasBeenSet = true; m_imageIds.push_back(std::move(value)); return *this; }
83
85
94 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
95 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
96 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
97 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
98 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
99 inline GetLifecyclePolicyPreviewRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
100 inline GetLifecyclePolicyPreviewRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
101 inline GetLifecyclePolicyPreviewRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
103
105
119 inline int GetMaxResults() const{ return m_maxResults; }
120 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
121 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
122 inline GetLifecyclePolicyPreviewRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
124
126
130 inline const LifecyclePolicyPreviewFilter& GetFilter() const{ return m_filter; }
131 inline bool FilterHasBeenSet() const { return m_filterHasBeenSet; }
132 inline void SetFilter(const LifecyclePolicyPreviewFilter& value) { m_filterHasBeenSet = true; m_filter = value; }
133 inline void SetFilter(LifecyclePolicyPreviewFilter&& value) { m_filterHasBeenSet = true; m_filter = std::move(value); }
135 inline GetLifecyclePolicyPreviewRequest& WithFilter(LifecyclePolicyPreviewFilter&& value) { SetFilter(std::move(value)); return *this;}
137 private:
138
139 Aws::String m_registryId;
140 bool m_registryIdHasBeenSet = false;
141
142 Aws::String m_repositoryName;
143 bool m_repositoryNameHasBeenSet = false;
144
146 bool m_imageIdsHasBeenSet = false;
147
148 Aws::String m_nextToken;
149 bool m_nextTokenHasBeenSet = false;
150
151 int m_maxResults;
152 bool m_maxResultsHasBeenSet = false;
153
155 bool m_filterHasBeenSet = false;
156 };
157
158} // namespace Model
159} // namespace ECR
160} // namespace Aws
GetLifecyclePolicyPreviewRequest & WithRepositoryName(const Aws::String &value)
GetLifecyclePolicyPreviewRequest & WithNextToken(const Aws::String &value)
GetLifecyclePolicyPreviewRequest & WithRepositoryName(const char *value)
AWS_ECR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetLifecyclePolicyPreviewRequest & WithRegistryId(Aws::String &&value)
GetLifecyclePolicyPreviewRequest & WithImageIds(const Aws::Vector< ImageIdentifier > &value)
GetLifecyclePolicyPreviewRequest & WithImageIds(Aws::Vector< ImageIdentifier > &&value)
GetLifecyclePolicyPreviewRequest & WithFilter(LifecyclePolicyPreviewFilter &&value)
GetLifecyclePolicyPreviewRequest & WithRegistryId(const Aws::String &value)
GetLifecyclePolicyPreviewRequest & AddImageIds(const ImageIdentifier &value)
GetLifecyclePolicyPreviewRequest & WithFilter(const LifecyclePolicyPreviewFilter &value)
GetLifecyclePolicyPreviewRequest & WithNextToken(const char *value)
const Aws::Vector< ImageIdentifier > & GetImageIds() const
void SetFilter(const LifecyclePolicyPreviewFilter &value)
GetLifecyclePolicyPreviewRequest & WithMaxResults(int value)
AWS_ECR_API Aws::String SerializePayload() const override
void SetImageIds(const Aws::Vector< ImageIdentifier > &value)
GetLifecyclePolicyPreviewRequest & WithRepositoryName(Aws::String &&value)
GetLifecyclePolicyPreviewRequest & WithNextToken(Aws::String &&value)
GetLifecyclePolicyPreviewRequest & AddImageIds(ImageIdentifier &&value)
GetLifecyclePolicyPreviewRequest & WithRegistryId(const char *value)
void SetImageIds(Aws::Vector< ImageIdentifier > &&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