AWS SDK for C++  1.8.71
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
CreateCertificateFromCsrRequest & WithCertificateSigningRequest(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
CreateCertificateFromCsrRequest & WithCertificateSigningRequest(Aws::String &&value)
CreateCertificateFromCsrRequest & WithCertificateSigningRequest(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateCertificateFromCsrRequest & WithSetAsActive(bool value)