AWS SDK for C++  1.9.1
AWS SDK for C++
ListCertificatesRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/acm/ACM_EXPORTS.h>
8 #include <aws/acm/ACMRequest.h>
10 #include <aws/acm/model/Filters.h>
13 #include <utility>
14 
15 namespace Aws
16 {
17 namespace ACM
18 {
19 namespace 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 "ListCertificates"; }
34 
35  Aws::String SerializePayload() const override;
36 
38 
39 
43  inline const Aws::Vector<CertificateStatus>& GetCertificateStatuses() const{ return m_certificateStatuses; }
44 
48  inline bool CertificateStatusesHasBeenSet() const { return m_certificateStatusesHasBeenSet; }
49 
53  inline void SetCertificateStatuses(const Aws::Vector<CertificateStatus>& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses = value; }
54 
58  inline void SetCertificateStatuses(Aws::Vector<CertificateStatus>&& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses = std::move(value); }
59 
63  inline ListCertificatesRequest& WithCertificateStatuses(const Aws::Vector<CertificateStatus>& value) { SetCertificateStatuses(value); return *this;}
64 
68  inline ListCertificatesRequest& WithCertificateStatuses(Aws::Vector<CertificateStatus>&& value) { SetCertificateStatuses(std::move(value)); return *this;}
69 
73  inline ListCertificatesRequest& AddCertificateStatuses(const CertificateStatus& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses.push_back(value); return *this; }
74 
78  inline ListCertificatesRequest& AddCertificateStatuses(CertificateStatus&& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses.push_back(std::move(value)); return *this; }
79 
80 
85  inline const Filters& GetIncludes() const{ return m_includes; }
86 
91  inline bool IncludesHasBeenSet() const { return m_includesHasBeenSet; }
92 
97  inline void SetIncludes(const Filters& value) { m_includesHasBeenSet = true; m_includes = value; }
98 
103  inline void SetIncludes(Filters&& value) { m_includesHasBeenSet = true; m_includes = std::move(value); }
104 
109  inline ListCertificatesRequest& WithIncludes(const Filters& value) { SetIncludes(value); return *this;}
110 
115  inline ListCertificatesRequest& WithIncludes(Filters&& value) { SetIncludes(std::move(value)); return *this;}
116 
117 
123  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
124 
130  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
131 
137  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
138 
144  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
145 
151  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
152 
158  inline ListCertificatesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
159 
165  inline ListCertificatesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
166 
172  inline ListCertificatesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
173 
174 
182  inline int GetMaxItems() const{ return m_maxItems; }
183 
191  inline bool MaxItemsHasBeenSet() const { return m_maxItemsHasBeenSet; }
192 
200  inline void SetMaxItems(int value) { m_maxItemsHasBeenSet = true; m_maxItems = value; }
201 
209  inline ListCertificatesRequest& WithMaxItems(int value) { SetMaxItems(value); return *this;}
210 
211  private:
212 
213  Aws::Vector<CertificateStatus> m_certificateStatuses;
214  bool m_certificateStatusesHasBeenSet;
215 
216  Filters m_includes;
217  bool m_includesHasBeenSet;
218 
219  Aws::String m_nextToken;
220  bool m_nextTokenHasBeenSet;
221 
222  int m_maxItems;
223  bool m_maxItemsHasBeenSet;
224  };
225 
226 } // namespace Model
227 } // namespace ACM
228 } // namespace Aws
Aws::ACM::Model::ListCertificatesRequest::WithNextToken
ListCertificatesRequest & WithNextToken(const char *value)
Definition: ListCertificatesRequest.h:172
Aws::ACM::Model::ListCertificatesRequest::GetCertificateStatuses
const Aws::Vector< CertificateStatus > & GetCertificateStatuses() const
Definition: ListCertificatesRequest.h:43
Aws::ACM::Model::ListCertificatesRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ACM::Model::ListCertificatesRequest::WithCertificateStatuses
ListCertificatesRequest & WithCertificateStatuses(Aws::Vector< CertificateStatus > &&value)
Definition: ListCertificatesRequest.h:68
Aws::ACM::Model::ListCertificatesRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: ListCertificatesRequest.h:33
Aws::ACM::Model::ListCertificatesRequest::SetCertificateStatuses
void SetCertificateStatuses(const Aws::Vector< CertificateStatus > &value)
Definition: ListCertificatesRequest.h:53
Aws::ACM::Model::ListCertificatesRequest::SetCertificateStatuses
void SetCertificateStatuses(Aws::Vector< CertificateStatus > &&value)
Definition: ListCertificatesRequest.h:58
Aws::ACM::Model::ListCertificatesRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: ListCertificatesRequest.h:130
Aws::ACM::Model::ListCertificatesRequest::WithIncludes
ListCertificatesRequest & WithIncludes(const Filters &value)
Definition: ListCertificatesRequest.h:109
Aws::ACM::Model::ListCertificatesRequest::WithIncludes
ListCertificatesRequest & WithIncludes(Filters &&value)
Definition: ListCertificatesRequest.h:115
Aws::ACM::Model::ListCertificatesRequest::MaxItemsHasBeenSet
bool MaxItemsHasBeenSet() const
Definition: ListCertificatesRequest.h:191
Aws::ACM::Model::ListCertificatesRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: ListCertificatesRequest.h:144
Aws::ACM::Model::ListCertificatesRequest::SetNextToken
void SetNextToken(const char *value)
Definition: ListCertificatesRequest.h:151
Aws::ACM::ACMRequest
Definition: ACMRequest.h:17
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Filters.h
AWSVector.h
CertificateStatus.h
Aws::ACM::Model::ListCertificatesRequest::IncludesHasBeenSet
bool IncludesHasBeenSet() const
Definition: ListCertificatesRequest.h:91
Aws::ACM::Model::ListCertificatesRequest::WithMaxItems
ListCertificatesRequest & WithMaxItems(int value)
Definition: ListCertificatesRequest.h:209
Aws::ACM::Model::CertificateStatus
CertificateStatus
Definition: CertificateStatus.h:17
Aws::ACM::Model::ListCertificatesRequest::SetIncludes
void SetIncludes(Filters &&value)
Definition: ListCertificatesRequest.h:103
Aws::ACM::Model::Filters
Definition: Filters.h:36
AWSString.h
ACMRequest.h
Aws::ACM::Model::ListCertificatesRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: ListCertificatesRequest.h:137
Aws::ACM::Model::ListCertificatesRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ACM::Model::ListCertificatesRequest::SetIncludes
void SetIncludes(const Filters &value)
Definition: ListCertificatesRequest.h:97
Aws::ACM::Model::ListCertificatesRequest::GetMaxItems
int GetMaxItems() const
Definition: ListCertificatesRequest.h:182
Aws::ACM::Model::ListCertificatesRequest::WithCertificateStatuses
ListCertificatesRequest & WithCertificateStatuses(const Aws::Vector< CertificateStatus > &value)
Definition: ListCertificatesRequest.h:63
ACM_EXPORTS.h
Aws
Definition: AccessManagementClient.h:15
Aws::ACM::Model::ListCertificatesRequest::ListCertificatesRequest
ListCertificatesRequest()
AWS_ACM_API
#define AWS_ACM_API
Definition: ACM_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ACM::Model::ListCertificatesRequest::CertificateStatusesHasBeenSet
bool CertificateStatusesHasBeenSet() const
Definition: ListCertificatesRequest.h:48
Aws::ACM::Model::ListCertificatesRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: ListCertificatesRequest.h:123
Aws::ACM::Model::ListCertificatesRequest
Definition: ListCertificatesRequest.h:25
Aws::ACM::Model::ListCertificatesRequest::WithNextToken
ListCertificatesRequest & WithNextToken(Aws::String &&value)
Definition: ListCertificatesRequest.h:165
Aws::ACM::Model::ListCertificatesRequest::GetIncludes
const Filters & GetIncludes() const
Definition: ListCertificatesRequest.h:85
Aws::ACM::Model::ListCertificatesRequest::WithNextToken
ListCertificatesRequest & WithNextToken(const Aws::String &value)
Definition: ListCertificatesRequest.h:158
Aws::ACM::Model::ListCertificatesRequest::SetMaxItems
void SetMaxItems(int value)
Definition: ListCertificatesRequest.h:200
Aws::ACM::Model::ListCertificatesRequest::AddCertificateStatuses
ListCertificatesRequest & AddCertificateStatuses(const CertificateStatus &value)
Definition: ListCertificatesRequest.h:73
Aws::ACM::Model::ListCertificatesRequest::AddCertificateStatuses
ListCertificatesRequest & AddCertificateStatuses(CertificateStatus &&value)
Definition: ListCertificatesRequest.h:78