AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
ListApplicationRevisionsRequest.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/codedeploy/CodeDeployRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/codedeploy/model/ApplicationRevisionSortBy.h>
11#include <aws/codedeploy/model/SortOrder.h>
12#include <aws/codedeploy/model/ListStateFilterAction.h>
13#include <utility>
14
15namespace Aws
16{
17namespace CodeDeploy
18{
19namespace Model
20{
21
29 {
30 public:
31 AWS_CODEDEPLOY_API ListApplicationRevisionsRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListApplicationRevisions"; }
38
39 AWS_CODEDEPLOY_API Aws::String SerializePayload() const override;
40
42
43
45
49 inline const Aws::String& GetApplicationName() const { return m_applicationName; }
50 inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; }
51 template<typename ApplicationNameT = Aws::String>
52 void SetApplicationName(ApplicationNameT&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::forward<ApplicationNameT>(value); }
53 template<typename ApplicationNameT = Aws::String>
54 ListApplicationRevisionsRequest& WithApplicationName(ApplicationNameT&& value) { SetApplicationName(std::forward<ApplicationNameT>(value)); return *this;}
56
58
67 inline ApplicationRevisionSortBy GetSortBy() const { return m_sortBy; }
68 inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; }
69 inline void SetSortBy(ApplicationRevisionSortBy value) { m_sortByHasBeenSet = true; m_sortBy = value; }
72
74
81 inline SortOrder GetSortOrder() const { return m_sortOrder; }
82 inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; }
83 inline void SetSortOrder(SortOrder value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; }
86
88
92 inline const Aws::String& GetS3Bucket() const { return m_s3Bucket; }
93 inline bool S3BucketHasBeenSet() const { return m_s3BucketHasBeenSet; }
94 template<typename S3BucketT = Aws::String>
95 void SetS3Bucket(S3BucketT&& value) { m_s3BucketHasBeenSet = true; m_s3Bucket = std::forward<S3BucketT>(value); }
96 template<typename S3BucketT = Aws::String>
97 ListApplicationRevisionsRequest& WithS3Bucket(S3BucketT&& value) { SetS3Bucket(std::forward<S3BucketT>(value)); return *this;}
99
101
105 inline const Aws::String& GetS3KeyPrefix() const { return m_s3KeyPrefix; }
106 inline bool S3KeyPrefixHasBeenSet() const { return m_s3KeyPrefixHasBeenSet; }
107 template<typename S3KeyPrefixT = Aws::String>
108 void SetS3KeyPrefix(S3KeyPrefixT&& value) { m_s3KeyPrefixHasBeenSet = true; m_s3KeyPrefix = std::forward<S3KeyPrefixT>(value); }
109 template<typename S3KeyPrefixT = Aws::String>
110 ListApplicationRevisionsRequest& WithS3KeyPrefix(S3KeyPrefixT&& value) { SetS3KeyPrefix(std::forward<S3KeyPrefixT>(value)); return *this;}
112
114
122 inline ListStateFilterAction GetDeployed() const { return m_deployed; }
123 inline bool DeployedHasBeenSet() const { return m_deployedHasBeenSet; }
124 inline void SetDeployed(ListStateFilterAction value) { m_deployedHasBeenSet = true; m_deployed = value; }
127
129
134 inline const Aws::String& GetNextToken() const { return m_nextToken; }
135 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
136 template<typename NextTokenT = Aws::String>
137 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
138 template<typename NextTokenT = Aws::String>
139 ListApplicationRevisionsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
141 private:
142
143 Aws::String m_applicationName;
144 bool m_applicationNameHasBeenSet = false;
145
147 bool m_sortByHasBeenSet = false;
148
149 SortOrder m_sortOrder{SortOrder::NOT_SET};
150 bool m_sortOrderHasBeenSet = false;
151
152 Aws::String m_s3Bucket;
153 bool m_s3BucketHasBeenSet = false;
154
155 Aws::String m_s3KeyPrefix;
156 bool m_s3KeyPrefixHasBeenSet = false;
157
159 bool m_deployedHasBeenSet = false;
160
161 Aws::String m_nextToken;
162 bool m_nextTokenHasBeenSet = false;
163 };
164
165} // namespace Model
166} // namespace CodeDeploy
167} // namespace Aws
ListApplicationRevisionsRequest & WithSortOrder(SortOrder value)
ListApplicationRevisionsRequest & WithDeployed(ListStateFilterAction value)
ListApplicationRevisionsRequest & WithApplicationName(ApplicationNameT &&value)
ListApplicationRevisionsRequest & WithSortBy(ApplicationRevisionSortBy value)
ListApplicationRevisionsRequest & WithS3KeyPrefix(S3KeyPrefixT &&value)
AWS_CODEDEPLOY_API Aws::String SerializePayload() const override
ListApplicationRevisionsRequest & WithS3Bucket(S3BucketT &&value)
ListApplicationRevisionsRequest & WithNextToken(NextTokenT &&value)
AWS_CODEDEPLOY_API ListApplicationRevisionsRequest()=default
AWS_CODEDEPLOY_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String