AWS SDK for C++  1.9.125
AWS SDK for C++
RejectCertificateTransferRequest.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 IoT
15 {
16 namespace Model
17 {
18 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "RejectCertificateTransfer"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
43  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
44 
49  inline bool CertificateIdHasBeenSet() const { return m_certificateIdHasBeenSet; }
50 
55  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
56 
61  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = std::move(value); }
62 
67  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
68 
73  inline RejectCertificateTransferRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
74 
79  inline RejectCertificateTransferRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
80 
85  inline RejectCertificateTransferRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
86 
87 
91  inline const Aws::String& GetRejectReason() const{ return m_rejectReason; }
92 
96  inline bool RejectReasonHasBeenSet() const { return m_rejectReasonHasBeenSet; }
97 
101  inline void SetRejectReason(const Aws::String& value) { m_rejectReasonHasBeenSet = true; m_rejectReason = value; }
102 
106  inline void SetRejectReason(Aws::String&& value) { m_rejectReasonHasBeenSet = true; m_rejectReason = std::move(value); }
107 
111  inline void SetRejectReason(const char* value) { m_rejectReasonHasBeenSet = true; m_rejectReason.assign(value); }
112 
116  inline RejectCertificateTransferRequest& WithRejectReason(const Aws::String& value) { SetRejectReason(value); return *this;}
117 
121  inline RejectCertificateTransferRequest& WithRejectReason(Aws::String&& value) { SetRejectReason(std::move(value)); return *this;}
122 
126  inline RejectCertificateTransferRequest& WithRejectReason(const char* value) { SetRejectReason(value); return *this;}
127 
128  private:
129 
130  Aws::String m_certificateId;
131  bool m_certificateIdHasBeenSet;
132 
133  Aws::String m_rejectReason;
134  bool m_rejectReasonHasBeenSet;
135  };
136 
137 } // namespace Model
138 } // namespace IoT
139 } // namespace Aws
Aws::IoT::Model::RejectCertificateTransferRequest::SetRejectReason
void SetRejectReason(const Aws::String &value)
Definition: RejectCertificateTransferRequest.h:101
Aws::IoT::Model::RejectCertificateTransferRequest::WithCertificateId
RejectCertificateTransferRequest & WithCertificateId(const char *value)
Definition: RejectCertificateTransferRequest.h:85
Aws::IoT::Model::RejectCertificateTransferRequest::GetRejectReason
const Aws::String & GetRejectReason() const
Definition: RejectCertificateTransferRequest.h:91
Aws::IoT::Model::RejectCertificateTransferRequest::WithRejectReason
RejectCertificateTransferRequest & WithRejectReason(const Aws::String &value)
Definition: RejectCertificateTransferRequest.h:116
Aws::IoT::Model::RejectCertificateTransferRequest::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: RejectCertificateTransferRequest.h:43
Aws::IoT::Model::RejectCertificateTransferRequest::WithRejectReason
RejectCertificateTransferRequest & WithRejectReason(const char *value)
Definition: RejectCertificateTransferRequest.h:126
Aws::IoT::Model::RejectCertificateTransferRequest::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: RejectCertificateTransferRequest.h:49
Aws::IoT::Model::RejectCertificateTransferRequest::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: RejectCertificateTransferRequest.h:55
Aws::IoT::Model::RejectCertificateTransferRequest
Definition: RejectCertificateTransferRequest.h:26
Aws::IoT::Model::RejectCertificateTransferRequest::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: RejectCertificateTransferRequest.h:61
Aws::IoT::Model::RejectCertificateTransferRequest::SetRejectReason
void SetRejectReason(const char *value)
Definition: RejectCertificateTransferRequest.h:111
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::RejectCertificateTransferRequest::WithCertificateId
RejectCertificateTransferRequest & WithCertificateId(const Aws::String &value)
Definition: RejectCertificateTransferRequest.h:73
Aws::IoT::Model::RejectCertificateTransferRequest::WithCertificateId
RejectCertificateTransferRequest & WithCertificateId(Aws::String &&value)
Definition: RejectCertificateTransferRequest.h:79
Aws::IoT::Model::RejectCertificateTransferRequest::WithRejectReason
RejectCertificateTransferRequest & WithRejectReason(Aws::String &&value)
Definition: RejectCertificateTransferRequest.h:121
Aws::IoT::Model::RejectCertificateTransferRequest::SetCertificateId
void SetCertificateId(const char *value)
Definition: RejectCertificateTransferRequest.h:67
Aws
Definition: AccessManagementClient.h:15
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::RejectCertificateTransferRequest::SetRejectReason
void SetRejectReason(Aws::String &&value)
Definition: RejectCertificateTransferRequest.h:106
Aws::IoT::Model::RejectCertificateTransferRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::RejectCertificateTransferRequest::RejectCertificateTransferRequest
RejectCertificateTransferRequest()
Aws::IoT::Model::RejectCertificateTransferRequest::RejectReasonHasBeenSet
bool RejectReasonHasBeenSet() const
Definition: RejectCertificateTransferRequest.h:96
IoT_EXPORTS.h
Aws::IoT::Model::RejectCertificateTransferRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: RejectCertificateTransferRequest.h:34