AWS SDK for C++  1.9.104
AWS SDK for C++
UpdateCertificateRequest.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>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Http
16 {
17  class URI;
18 } //namespace Http
19 namespace IoT
20 {
21 namespace Model
22 {
23 
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 "UpdateCertificate"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
49  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
50 
55  inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
56 
61  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
62 
67  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
68 
73  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
74 
79  inline UpdateCertificateRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
80 
85  inline UpdateCertificateRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
86 
91  inline UpdateCertificateRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
92 
93 
101  inline const CertificateStatus& GetNewStatus() const{ return m_newStatus; }
102 
110  inline bool NewStatusHasBeenSet() const { return m_newStatusHasBeenSet; }
111 
119  inline void SetNewStatus(const CertificateStatus& value) { m_newStatusHasBeenSet = true; m_newStatus = value; }
120 
128  inline void SetNewStatus(CertificateStatus&& value) { m_newStatusHasBeenSet = true; m_newStatus = std::move(value); }
129 
137  inline UpdateCertificateRequest& WithNewStatus(const CertificateStatus& value) { SetNewStatus(value); return *this;}
138 
146  inline UpdateCertificateRequest& WithNewStatus(CertificateStatus&& value) { SetNewStatus(std::move(value)); return *this;}
147 
148  private:
149 
150  Aws::String m_certificateId;
151  bool m_certificateIdHasBeenSet;
152 
153  CertificateStatus m_newStatus;
154  bool m_newStatusHasBeenSet;
155  };
156 
157 } // namespace Model
158 } // namespace IoT
159 } // namespace Aws
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::UpdateCertificateRequest::WithCertificateId
UpdateCertificateRequest & WithCertificateId(Aws::String &&value)
Definition: UpdateCertificateRequest.h:85
CertificateStatus.h
Aws::IoT::Model::UpdateCertificateRequest::WithNewStatus
UpdateCertificateRequest & WithNewStatus(const CertificateStatus &value)
Definition: UpdateCertificateRequest.h:137
Aws::IoT::Model::UpdateCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateCertificateRequest.h:38
Aws::IoT::Model::CertificateStatus
CertificateStatus
Definition: CertificateStatus.h:17
Aws::IoT::Model::UpdateCertificateRequest::WithNewStatus
UpdateCertificateRequest & WithNewStatus(CertificateStatus &&value)
Definition: UpdateCertificateRequest.h:146
Aws::IoT::Model::UpdateCertificateRequest::WithCertificateId
UpdateCertificateRequest & WithCertificateId(const Aws::String &value)
Definition: UpdateCertificateRequest.h:79
Aws::IoT::Model::UpdateCertificateRequest
Definition: UpdateCertificateRequest.h:30
Aws::IoT::Model::UpdateCertificateRequest::NewStatusHasBeenSet
bool NewStatusHasBeenSet() const
Definition: UpdateCertificateRequest.h:110
Aws::IoT::Model::UpdateCertificateRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::UpdateCertificateRequest::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: UpdateCertificateRequest.h:61
Aws::IoT::Model::UpdateCertificateRequest::SetNewStatus
void SetNewStatus(const CertificateStatus &value)
Definition: UpdateCertificateRequest.h:119
Aws::IoT::Model::UpdateCertificateRequest::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: UpdateCertificateRequest.h:67
Aws::IoT::Model::UpdateCertificateRequest::UpdateCertificateRequest
UpdateCertificateRequest()
Aws::IoT::Model::UpdateCertificateRequest::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: UpdateCertificateRequest.h:55
Aws::IoT::Model::UpdateCertificateRequest::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: UpdateCertificateRequest.h:49
AWSString.h
Aws::IoT::Model::UpdateCertificateRequest::SetCertificateId
void SetCertificateId(const char *value)
Definition: UpdateCertificateRequest.h:73
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::UpdateCertificateRequest::SetNewStatus
void SetNewStatus(CertificateStatus &&value)
Definition: UpdateCertificateRequest.h:128
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::UpdateCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
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::UpdateCertificateRequest::GetNewStatus
const CertificateStatus & GetNewStatus() const
Definition: UpdateCertificateRequest.h:101
IoTRequest.h
IoT_EXPORTS.h
Aws::IoT::Model::UpdateCertificateRequest::WithCertificateId
UpdateCertificateRequest & WithCertificateId(const char *value)
Definition: UpdateCertificateRequest.h:91