AWS SDK for C++  1.9.20
AWS SDK for C++
CreateCertificateFromCsrRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
8 #include <aws/iot/IoTRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Http
15 {
16  class URI;
17 } //namespace Http
18 namespace IoT
19 {
20 namespace Model
21 {
22 
30  {
31  public:
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::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
48  inline const Aws::String& GetCertificateSigningRequest() const{ return m_certificateSigningRequest; }
49 
53  inline bool CertificateSigningRequestHasBeenSet() const { return m_certificateSigningRequestHasBeenSet; }
54 
58  inline void SetCertificateSigningRequest(const Aws::String& value) { m_certificateSigningRequestHasBeenSet = true; m_certificateSigningRequest = value; }
59 
63  inline void SetCertificateSigningRequest(Aws::String&& value) { m_certificateSigningRequestHasBeenSet = true; m_certificateSigningRequest = std::move(value); }
64 
68  inline void SetCertificateSigningRequest(const char* value) { m_certificateSigningRequestHasBeenSet = true; m_certificateSigningRequest.assign(value); }
69 
73  inline CreateCertificateFromCsrRequest& WithCertificateSigningRequest(const Aws::String& value) { SetCertificateSigningRequest(value); return *this;}
74 
78  inline CreateCertificateFromCsrRequest& WithCertificateSigningRequest(Aws::String&& value) { SetCertificateSigningRequest(std::move(value)); return *this;}
79 
83  inline CreateCertificateFromCsrRequest& WithCertificateSigningRequest(const char* value) { SetCertificateSigningRequest(value); return *this;}
84 
85 
89  inline bool GetSetAsActive() const{ return m_setAsActive; }
90 
94  inline bool SetAsActiveHasBeenSet() const { return m_setAsActiveHasBeenSet; }
95 
99  inline void SetSetAsActive(bool value) { m_setAsActiveHasBeenSet = true; m_setAsActive = value; }
100 
104  inline CreateCertificateFromCsrRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;}
105 
106  private:
107 
108  Aws::String m_certificateSigningRequest;
109  bool m_certificateSigningRequestHasBeenSet;
110 
111  bool m_setAsActive;
112  bool m_setAsActiveHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace IoT
117 } // namespace Aws
Aws::IoT::Model::CreateCertificateFromCsrRequest::WithCertificateSigningRequest
CreateCertificateFromCsrRequest & WithCertificateSigningRequest(const Aws::String &value)
Definition: CreateCertificateFromCsrRequest.h:73
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::CreateCertificateFromCsrRequest::WithCertificateSigningRequest
CreateCertificateFromCsrRequest & WithCertificateSigningRequest(const char *value)
Definition: CreateCertificateFromCsrRequest.h:83
Aws::IoT::Model::CreateCertificateFromCsrRequest::SetAsActiveHasBeenSet
bool SetAsActiveHasBeenSet() const
Definition: CreateCertificateFromCsrRequest.h:94
Aws::IoT::Model::CreateCertificateFromCsrRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::CreateCertificateFromCsrRequest::CreateCertificateFromCsrRequest
CreateCertificateFromCsrRequest()
Aws::IoT::Model::CreateCertificateFromCsrRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::CreateCertificateFromCsrRequest
Definition: CreateCertificateFromCsrRequest.h:30
Aws::IoT::Model::CreateCertificateFromCsrRequest::GetSetAsActive
bool GetSetAsActive() const
Definition: CreateCertificateFromCsrRequest.h:89
Aws::IoT::Model::CreateCertificateFromCsrRequest::SetCertificateSigningRequest
void SetCertificateSigningRequest(Aws::String &&value)
Definition: CreateCertificateFromCsrRequest.h:63
Aws::IoT::Model::CreateCertificateFromCsrRequest::WithSetAsActive
CreateCertificateFromCsrRequest & WithSetAsActive(bool value)
Definition: CreateCertificateFromCsrRequest.h:104
Aws::IoT::Model::CreateCertificateFromCsrRequest::WithCertificateSigningRequest
CreateCertificateFromCsrRequest & WithCertificateSigningRequest(Aws::String &&value)
Definition: CreateCertificateFromCsrRequest.h:78
Aws::IoT::Model::CreateCertificateFromCsrRequest::SetCertificateSigningRequest
void SetCertificateSigningRequest(const char *value)
Definition: CreateCertificateFromCsrRequest.h:68
Aws::IoT::Model::CreateCertificateFromCsrRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateCertificateFromCsrRequest.h:38
Aws::IoT::Model::CreateCertificateFromCsrRequest::CertificateSigningRequestHasBeenSet
bool CertificateSigningRequestHasBeenSet() const
Definition: CreateCertificateFromCsrRequest.h:53
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::CreateCertificateFromCsrRequest::GetCertificateSigningRequest
const Aws::String & GetCertificateSigningRequest() const
Definition: CreateCertificateFromCsrRequest.h:48
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::CreateCertificateFromCsrRequest::SetSetAsActive
void SetSetAsActive(bool value)
Definition: CreateCertificateFromCsrRequest.h:99
IoTRequest.h
Aws::IoT::Model::CreateCertificateFromCsrRequest::SetCertificateSigningRequest
void SetCertificateSigningRequest(const Aws::String &value)
Definition: CreateCertificateFromCsrRequest.h:58
IoT_EXPORTS.h