AWS SDK for C++  1.9.109
AWS SDK for C++
DeleteCertificateRequest.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 
29  {
30  public:
32 
33  // Service request name is the Operation name which will send this request out,
34  // each operation should has unique request name, so that we can get operation's name from this request.
35  // Note: this is not true for response, multiple operations may have the same response name,
36  // so we can not get operation's name from response.
37  inline virtual const char* GetServiceRequestName() const override { return "DeleteCertificate"; }
38 
39  Aws::String SerializePayload() const override;
40 
41  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42 
43 
48  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
49 
54  inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
55 
60  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
61 
66  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
67 
72  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
73 
78  inline DeleteCertificateRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
79 
84  inline DeleteCertificateRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
85 
90  inline DeleteCertificateRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
91 
92 
97  inline bool GetForceDelete() const{ return m_forceDelete; }
98 
103  inline bool ForceDeleteHasBeenSet() const { return m_forceDeleteHasBeenSet; }
104 
109  inline void SetForceDelete(bool value) { m_forceDeleteHasBeenSet = true; m_forceDelete = value; }
110 
115  inline DeleteCertificateRequest& WithForceDelete(bool value) { SetForceDelete(value); return *this;}
116 
117  private:
118 
119  Aws::String m_certificateId;
120  bool m_certificateIdHasBeenSet;
121 
122  bool m_forceDelete;
123  bool m_forceDeleteHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace IoT
128 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::DeleteCertificateRequest::WithCertificateId
DeleteCertificateRequest & WithCertificateId(const char *value)
Definition: DeleteCertificateRequest.h:90
Aws::IoT::Model::DeleteCertificateRequest::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: DeleteCertificateRequest.h:60
Aws::IoT::Model::DeleteCertificateRequest::SetCertificateId
void SetCertificateId(const char *value)
Definition: DeleteCertificateRequest.h:72
Aws::IoT::Model::DeleteCertificateRequest::SetForceDelete
void SetForceDelete(bool value)
Definition: DeleteCertificateRequest.h:109
Aws::IoT::Model::DeleteCertificateRequest::WithForceDelete
DeleteCertificateRequest & WithForceDelete(bool value)
Definition: DeleteCertificateRequest.h:115
Aws::IoT::Model::DeleteCertificateRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::DeleteCertificateRequest::GetForceDelete
bool GetForceDelete() const
Definition: DeleteCertificateRequest.h:97
Aws::IoT::Model::DeleteCertificateRequest::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: DeleteCertificateRequest.h:54
Aws::IoT::Model::DeleteCertificateRequest
Definition: DeleteCertificateRequest.h:29
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::DeleteCertificateRequest::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: DeleteCertificateRequest.h:48
Aws::IoT::Model::DeleteCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DeleteCertificateRequest.h:37
Aws::IoT::Model::DeleteCertificateRequest::WithCertificateId
DeleteCertificateRequest & WithCertificateId(const Aws::String &value)
Definition: DeleteCertificateRequest.h:78
Aws::IoT::Model::DeleteCertificateRequest::ForceDeleteHasBeenSet
bool ForceDeleteHasBeenSet() const
Definition: DeleteCertificateRequest.h:103
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::DeleteCertificateRequest::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: DeleteCertificateRequest.h:66
Aws::IoT::Model::DeleteCertificateRequest::WithCertificateId
DeleteCertificateRequest & WithCertificateId(Aws::String &&value)
Definition: DeleteCertificateRequest.h:84
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
IoTRequest.h
Aws::IoT::Model::DeleteCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::DeleteCertificateRequest::DeleteCertificateRequest
DeleteCertificateRequest()
IoT_EXPORTS.h