AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
GetCertificatesResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/lightsail/Lightsail_EXPORTS.h>
10#include <aws/lightsail/model/CertificateSummary.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace Lightsail {
24namespace Model {
26 public:
27 AWS_LIGHTSAIL_API GetCertificatesResult() = default;
30
32
35 inline const Aws::Vector<CertificateSummary>& GetCertificates() const { return m_certificates; }
36 template <typename CertificatesT = Aws::Vector<CertificateSummary>>
37 void SetCertificates(CertificatesT&& value) {
38 m_certificatesHasBeenSet = true;
39 m_certificates = std::forward<CertificatesT>(value);
40 }
41 template <typename CertificatesT = Aws::Vector<CertificateSummary>>
42 GetCertificatesResult& WithCertificates(CertificatesT&& value) {
43 SetCertificates(std::forward<CertificatesT>(value));
44 return *this;
45 }
46 template <typename CertificatesT = CertificateSummary>
47 GetCertificatesResult& AddCertificates(CertificatesT&& value) {
48 m_certificatesHasBeenSet = true;
49 m_certificates.emplace_back(std::forward<CertificatesT>(value));
50 return *this;
51 }
53
55
61 inline const Aws::String& GetNextPageToken() const { return m_nextPageToken; }
62 template <typename NextPageTokenT = Aws::String>
63 void SetNextPageToken(NextPageTokenT&& value) {
64 m_nextPageTokenHasBeenSet = true;
65 m_nextPageToken = std::forward<NextPageTokenT>(value);
66 }
67 template <typename NextPageTokenT = Aws::String>
68 GetCertificatesResult& WithNextPageToken(NextPageTokenT&& value) {
69 SetNextPageToken(std::forward<NextPageTokenT>(value));
70 return *this;
71 }
73
75
76 inline const Aws::String& GetRequestId() const { return m_requestId; }
77 template <typename RequestIdT = Aws::String>
78 void SetRequestId(RequestIdT&& value) {
79 m_requestIdHasBeenSet = true;
80 m_requestId = std::forward<RequestIdT>(value);
81 }
82 template <typename RequestIdT = Aws::String>
83 GetCertificatesResult& WithRequestId(RequestIdT&& value) {
84 SetRequestId(std::forward<RequestIdT>(value));
85 return *this;
86 }
88 private:
90 bool m_certificatesHasBeenSet = false;
91
92 Aws::String m_nextPageToken;
93 bool m_nextPageTokenHasBeenSet = false;
94
95 Aws::String m_requestId;
96 bool m_requestIdHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Lightsail
101} // namespace Aws
GetCertificatesResult & WithRequestId(RequestIdT &&value)
GetCertificatesResult & WithCertificates(CertificatesT &&value)
GetCertificatesResult & WithNextPageToken(NextPageTokenT &&value)
AWS_LIGHTSAIL_API GetCertificatesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_LIGHTSAIL_API GetCertificatesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< CertificateSummary > & GetCertificates() const
AWS_LIGHTSAIL_API GetCertificatesResult()=default
GetCertificatesResult & AddCertificates(CertificatesT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue