AWS SDK for C++  1.9.109
AWS SDK for C++
AcceptCertificateTransferRequest.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 "AcceptCertificateTransfer"; }
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 AcceptCertificateTransferRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
80 
85  inline AcceptCertificateTransferRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
86 
91  inline AcceptCertificateTransferRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
92 
93 
97  inline bool GetSetAsActive() const{ return m_setAsActive; }
98 
102  inline bool SetAsActiveHasBeenSet() const { return m_setAsActiveHasBeenSet; }
103 
107  inline void SetSetAsActive(bool value) { m_setAsActiveHasBeenSet = true; m_setAsActive = value; }
108 
112  inline AcceptCertificateTransferRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;}
113 
114  private:
115 
116  Aws::String m_certificateId;
117  bool m_certificateIdHasBeenSet;
118 
119  bool m_setAsActive;
120  bool m_setAsActiveHasBeenSet;
121  };
122 
123 } // namespace Model
124 } // namespace IoT
125 } // namespace Aws
Aws::IoT::Model::AcceptCertificateTransferRequest::WithCertificateId
AcceptCertificateTransferRequest & WithCertificateId(const char *value)
Definition: AcceptCertificateTransferRequest.h:91
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::AcceptCertificateTransferRequest
Definition: AcceptCertificateTransferRequest.h:30
Aws::IoT::Model::AcceptCertificateTransferRequest::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: AcceptCertificateTransferRequest.h:67
Aws::IoT::Model::AcceptCertificateTransferRequest::GetSetAsActive
bool GetSetAsActive() const
Definition: AcceptCertificateTransferRequest.h:97
Aws::IoT::Model::AcceptCertificateTransferRequest::SetAsActiveHasBeenSet
bool SetAsActiveHasBeenSet() const
Definition: AcceptCertificateTransferRequest.h:102
Aws::IoT::Model::AcceptCertificateTransferRequest::SetSetAsActive
void SetSetAsActive(bool value)
Definition: AcceptCertificateTransferRequest.h:107
Aws::IoT::Model::AcceptCertificateTransferRequest::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: AcceptCertificateTransferRequest.h:55
Aws::IoT::Model::AcceptCertificateTransferRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: AcceptCertificateTransferRequest.h:38
Aws::IoT::Model::AcceptCertificateTransferRequest::SetCertificateId
void SetCertificateId(const char *value)
Definition: AcceptCertificateTransferRequest.h:73
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::AcceptCertificateTransferRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::AcceptCertificateTransferRequest::WithCertificateId
AcceptCertificateTransferRequest & WithCertificateId(Aws::String &&value)
Definition: AcceptCertificateTransferRequest.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::AcceptCertificateTransferRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::AcceptCertificateTransferRequest::WithCertificateId
AcceptCertificateTransferRequest & WithCertificateId(const Aws::String &value)
Definition: AcceptCertificateTransferRequest.h:79
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::AcceptCertificateTransferRequest::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: AcceptCertificateTransferRequest.h:49
IoTRequest.h
Aws::IoT::Model::AcceptCertificateTransferRequest::AcceptCertificateTransferRequest
AcceptCertificateTransferRequest()
Aws::IoT::Model::AcceptCertificateTransferRequest::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: AcceptCertificateTransferRequest.h:61
Aws::IoT::Model::AcceptCertificateTransferRequest::WithSetAsActive
AcceptCertificateTransferRequest & WithSetAsActive(bool value)
Definition: AcceptCertificateTransferRequest.h:112
IoT_EXPORTS.h