AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateCertificateRequest.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 <aws/iot/model/CertificateStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Http
16{
17 class URI;
18} //namespace Http
19namespace IoT
20{
21namespace 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_IOT_API Aws::String SerializePayload() const override;
41
42 AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
50 inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
51 inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
52 inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
53 inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
54 inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
55 inline UpdateCertificateRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
56 inline UpdateCertificateRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
57 inline UpdateCertificateRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
59
61
68 inline const CertificateStatus& GetNewStatus() const{ return m_newStatus; }
69 inline bool NewStatusHasBeenSet() const { return m_newStatusHasBeenSet; }
70 inline void SetNewStatus(const CertificateStatus& value) { m_newStatusHasBeenSet = true; m_newStatus = value; }
71 inline void SetNewStatus(CertificateStatus&& value) { m_newStatusHasBeenSet = true; m_newStatus = std::move(value); }
72 inline UpdateCertificateRequest& WithNewStatus(const CertificateStatus& value) { SetNewStatus(value); return *this;}
73 inline UpdateCertificateRequest& WithNewStatus(CertificateStatus&& value) { SetNewStatus(std::move(value)); return *this;}
75 private:
76
77 Aws::String m_certificateId;
78 bool m_certificateIdHasBeenSet = false;
79
80 CertificateStatus m_newStatus;
81 bool m_newStatusHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace IoT
86} // namespace Aws
void SetNewStatus(const CertificateStatus &value)
UpdateCertificateRequest & WithCertificateId(const char *value)
virtual const char * GetServiceRequestName() const override
AWS_IOT_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
UpdateCertificateRequest & WithNewStatus(const CertificateStatus &value)
const CertificateStatus & GetNewStatus() const
UpdateCertificateRequest & WithCertificateId(Aws::String &&value)
UpdateCertificateRequest & WithCertificateId(const Aws::String &value)
AWS_IOT_API Aws::String SerializePayload() const override
UpdateCertificateRequest & WithNewStatus(CertificateStatus &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String