AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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