AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GetCertificatesRequest.h
1
6#pragma once
7#include <aws/lightsail/Lightsail_EXPORTS.h>
8#include <aws/lightsail/LightsailRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/lightsail/model/CertificateStatus.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Lightsail
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_LIGHTSAIL_API GetCertificatesRequest();
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "GetCertificates"; }
33
34 AWS_LIGHTSAIL_API Aws::String SerializePayload() const override;
35
37
38
40
47 inline const Aws::Vector<CertificateStatus>& GetCertificateStatuses() const{ return m_certificateStatuses; }
48 inline bool CertificateStatusesHasBeenSet() const { return m_certificateStatusesHasBeenSet; }
49 inline void SetCertificateStatuses(const Aws::Vector<CertificateStatus>& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses = value; }
50 inline void SetCertificateStatuses(Aws::Vector<CertificateStatus>&& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses = std::move(value); }
53 inline GetCertificatesRequest& AddCertificateStatuses(const CertificateStatus& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses.push_back(value); return *this; }
54 inline GetCertificatesRequest& AddCertificateStatuses(CertificateStatus&& value) { m_certificateStatusesHasBeenSet = true; m_certificateStatuses.push_back(std::move(value)); return *this; }
56
58
63 inline bool GetIncludeCertificateDetails() const{ return m_includeCertificateDetails; }
64 inline bool IncludeCertificateDetailsHasBeenSet() const { return m_includeCertificateDetailsHasBeenSet; }
65 inline void SetIncludeCertificateDetails(bool value) { m_includeCertificateDetailsHasBeenSet = true; m_includeCertificateDetails = value; }
68
70
75 inline const Aws::String& GetCertificateName() const{ return m_certificateName; }
76 inline bool CertificateNameHasBeenSet() const { return m_certificateNameHasBeenSet; }
77 inline void SetCertificateName(const Aws::String& value) { m_certificateNameHasBeenSet = true; m_certificateName = value; }
78 inline void SetCertificateName(Aws::String&& value) { m_certificateNameHasBeenSet = true; m_certificateName = std::move(value); }
79 inline void SetCertificateName(const char* value) { m_certificateNameHasBeenSet = true; m_certificateName.assign(value); }
80 inline GetCertificatesRequest& WithCertificateName(const Aws::String& value) { SetCertificateName(value); return *this;}
81 inline GetCertificatesRequest& WithCertificateName(Aws::String&& value) { SetCertificateName(std::move(value)); return *this;}
82 inline GetCertificatesRequest& WithCertificateName(const char* value) { SetCertificateName(value); return *this;}
84
86
92 inline const Aws::String& GetPageToken() const{ return m_pageToken; }
93 inline bool PageTokenHasBeenSet() const { return m_pageTokenHasBeenSet; }
94 inline void SetPageToken(const Aws::String& value) { m_pageTokenHasBeenSet = true; m_pageToken = value; }
95 inline void SetPageToken(Aws::String&& value) { m_pageTokenHasBeenSet = true; m_pageToken = std::move(value); }
96 inline void SetPageToken(const char* value) { m_pageTokenHasBeenSet = true; m_pageToken.assign(value); }
97 inline GetCertificatesRequest& WithPageToken(const Aws::String& value) { SetPageToken(value); return *this;}
98 inline GetCertificatesRequest& WithPageToken(Aws::String&& value) { SetPageToken(std::move(value)); return *this;}
99 inline GetCertificatesRequest& WithPageToken(const char* value) { SetPageToken(value); return *this;}
101 private:
102
103 Aws::Vector<CertificateStatus> m_certificateStatuses;
104 bool m_certificateStatusesHasBeenSet = false;
105
106 bool m_includeCertificateDetails;
107 bool m_includeCertificateDetailsHasBeenSet = false;
108
109 Aws::String m_certificateName;
110 bool m_certificateNameHasBeenSet = false;
111
112 Aws::String m_pageToken;
113 bool m_pageTokenHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace Lightsail
118} // namespace Aws
AWS_LIGHTSAIL_API Aws::String SerializePayload() const override
const Aws::Vector< CertificateStatus > & GetCertificateStatuses() const
AWS_LIGHTSAIL_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
GetCertificatesRequest & WithCertificateStatuses(Aws::Vector< CertificateStatus > &&value)
GetCertificatesRequest & WithCertificateName(Aws::String &&value)
void SetCertificateStatuses(const Aws::Vector< CertificateStatus > &value)
GetCertificatesRequest & WithPageToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
GetCertificatesRequest & WithPageToken(Aws::String &&value)
GetCertificatesRequest & AddCertificateStatuses(CertificateStatus &&value)
GetCertificatesRequest & WithIncludeCertificateDetails(bool value)
GetCertificatesRequest & WithCertificateName(const Aws::String &value)
GetCertificatesRequest & AddCertificateStatuses(const CertificateStatus &value)
GetCertificatesRequest & WithCertificateStatuses(const Aws::Vector< CertificateStatus > &value)
GetCertificatesRequest & WithPageToken(const char *value)
GetCertificatesRequest & WithCertificateName(const char *value)
void SetCertificateStatuses(Aws::Vector< CertificateStatus > &&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