AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateCertificateFromCsrRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/iot/IoTRequest.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Http {
15class URI;
16} // namespace Http
17namespace IoT {
18namespace Model {
19
27 public:
28 AWS_IOT_API CreateCertificateFromCsrRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateCertificateFromCsr"; }
35
36 AWS_IOT_API Aws::String SerializePayload() const override;
37
38 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
44 inline const Aws::String& GetCertificateSigningRequest() const { return m_certificateSigningRequest; }
45 inline bool CertificateSigningRequestHasBeenSet() const { return m_certificateSigningRequestHasBeenSet; }
46 template <typename CertificateSigningRequestT = Aws::String>
47 void SetCertificateSigningRequest(CertificateSigningRequestT&& value) {
48 m_certificateSigningRequestHasBeenSet = true;
49 m_certificateSigningRequest = std::forward<CertificateSigningRequestT>(value);
50 }
51 template <typename CertificateSigningRequestT = Aws::String>
53 SetCertificateSigningRequest(std::forward<CertificateSigningRequestT>(value));
54 return *this;
55 }
57
59
62 inline bool GetSetAsActive() const { return m_setAsActive; }
63 inline bool SetAsActiveHasBeenSet() const { return m_setAsActiveHasBeenSet; }
64 inline void SetSetAsActive(bool value) {
65 m_setAsActiveHasBeenSet = true;
66 m_setAsActive = value;
67 }
69 SetSetAsActive(value);
70 return *this;
71 }
73 private:
74 Aws::String m_certificateSigningRequest;
75
76 bool m_setAsActive{false};
77 bool m_certificateSigningRequestHasBeenSet = false;
78 bool m_setAsActiveHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace IoT
83} // namespace Aws
AWS_IOT_API Aws::String SerializePayload() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetCertificateSigningRequest(CertificateSigningRequestT &&value)
CreateCertificateFromCsrRequest & WithCertificateSigningRequest(CertificateSigningRequestT &&value)
CreateCertificateFromCsrRequest & WithSetAsActive(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String