AWS SDK for C++  1.9.123
AWS SDK for C++
TransferCertificateRequest.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 "TransferCertificate"; }
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 TransferCertificateRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
80 
85  inline TransferCertificateRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(std::move(value)); return *this;}
86 
91  inline TransferCertificateRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
92 
93 
97  inline const Aws::String& GetTargetAwsAccount() const{ return m_targetAwsAccount; }
98 
102  inline bool TargetAwsAccountHasBeenSet() const { return m_targetAwsAccountHasBeenSet; }
103 
107  inline void SetTargetAwsAccount(const Aws::String& value) { m_targetAwsAccountHasBeenSet = true; m_targetAwsAccount = value; }
108 
112  inline void SetTargetAwsAccount(Aws::String&& value) { m_targetAwsAccountHasBeenSet = true; m_targetAwsAccount = std::move(value); }
113 
117  inline void SetTargetAwsAccount(const char* value) { m_targetAwsAccountHasBeenSet = true; m_targetAwsAccount.assign(value); }
118 
122  inline TransferCertificateRequest& WithTargetAwsAccount(const Aws::String& value) { SetTargetAwsAccount(value); return *this;}
123 
127  inline TransferCertificateRequest& WithTargetAwsAccount(Aws::String&& value) { SetTargetAwsAccount(std::move(value)); return *this;}
128 
132  inline TransferCertificateRequest& WithTargetAwsAccount(const char* value) { SetTargetAwsAccount(value); return *this;}
133 
134 
138  inline const Aws::String& GetTransferMessage() const{ return m_transferMessage; }
139 
143  inline bool TransferMessageHasBeenSet() const { return m_transferMessageHasBeenSet; }
144 
148  inline void SetTransferMessage(const Aws::String& value) { m_transferMessageHasBeenSet = true; m_transferMessage = value; }
149 
153  inline void SetTransferMessage(Aws::String&& value) { m_transferMessageHasBeenSet = true; m_transferMessage = std::move(value); }
154 
158  inline void SetTransferMessage(const char* value) { m_transferMessageHasBeenSet = true; m_transferMessage.assign(value); }
159 
163  inline TransferCertificateRequest& WithTransferMessage(const Aws::String& value) { SetTransferMessage(value); return *this;}
164 
168  inline TransferCertificateRequest& WithTransferMessage(Aws::String&& value) { SetTransferMessage(std::move(value)); return *this;}
169 
173  inline TransferCertificateRequest& WithTransferMessage(const char* value) { SetTransferMessage(value); return *this;}
174 
175  private:
176 
177  Aws::String m_certificateId;
178  bool m_certificateIdHasBeenSet;
179 
180  Aws::String m_targetAwsAccount;
181  bool m_targetAwsAccountHasBeenSet;
182 
183  Aws::String m_transferMessage;
184  bool m_transferMessageHasBeenSet;
185  };
186 
187 } // namespace Model
188 } // namespace IoT
189 } // namespace Aws
Aws::IoT::Model::TransferCertificateRequest::SetTargetAwsAccount
void SetTargetAwsAccount(Aws::String &&value)
Definition: TransferCertificateRequest.h:112
Aws::Http::URI
Definition: URI.h:32
Aws::IoT::Model::TransferCertificateRequest::SetCertificateId
void SetCertificateId(Aws::String &&value)
Definition: TransferCertificateRequest.h:67
Aws::IoT::Model::TransferCertificateRequest::SetTransferMessage
void SetTransferMessage(const char *value)
Definition: TransferCertificateRequest.h:158
Aws::IoT::Model::TransferCertificateRequest::WithTargetAwsAccount
TransferCertificateRequest & WithTargetAwsAccount(const char *value)
Definition: TransferCertificateRequest.h:132
Aws::IoT::Model::TransferCertificateRequest::TargetAwsAccountHasBeenSet
bool TargetAwsAccountHasBeenSet() const
Definition: TransferCertificateRequest.h:102
Aws::IoT::Model::TransferCertificateRequest::WithTransferMessage
TransferCertificateRequest & WithTransferMessage(Aws::String &&value)
Definition: TransferCertificateRequest.h:168
Aws::IoT::Model::TransferCertificateRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::IoT::Model::TransferCertificateRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::IoT::Model::TransferCertificateRequest::WithTargetAwsAccount
TransferCertificateRequest & WithTargetAwsAccount(Aws::String &&value)
Definition: TransferCertificateRequest.h:127
Aws::IoT::Model::TransferCertificateRequest::CertificateIdHasBeenSet
bool CertificateIdHasBeenSet() const
Definition: TransferCertificateRequest.h:55
Aws::IoT::Model::TransferCertificateRequest::WithTransferMessage
TransferCertificateRequest & WithTransferMessage(const char *value)
Definition: TransferCertificateRequest.h:173
Aws::IoT::Model::TransferCertificateRequest::GetTargetAwsAccount
const Aws::String & GetTargetAwsAccount() const
Definition: TransferCertificateRequest.h:97
Aws::IoT::Model::TransferCertificateRequest::SetCertificateId
void SetCertificateId(const Aws::String &value)
Definition: TransferCertificateRequest.h:61
Aws::IoT::Model::TransferCertificateRequest::GetCertificateId
const Aws::String & GetCertificateId() const
Definition: TransferCertificateRequest.h:49
Aws::IoT::Model::TransferCertificateRequest::WithCertificateId
TransferCertificateRequest & WithCertificateId(const char *value)
Definition: TransferCertificateRequest.h:91
AWSString.h
Aws::IoT::IoTRequest
Definition: IoTRequest.h:17
Aws::IoT::Model::TransferCertificateRequest::WithTargetAwsAccount
TransferCertificateRequest & WithTargetAwsAccount(const Aws::String &value)
Definition: TransferCertificateRequest.h:122
Aws::IoT::Model::TransferCertificateRequest::SetTransferMessage
void SetTransferMessage(const Aws::String &value)
Definition: TransferCertificateRequest.h:148
Aws::IoT::Model::TransferCertificateRequest::GetTransferMessage
const Aws::String & GetTransferMessage() const
Definition: TransferCertificateRequest.h:138
Aws::IoT::Model::TransferCertificateRequest::SetTransferMessage
void SetTransferMessage(Aws::String &&value)
Definition: TransferCertificateRequest.h:153
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::TransferCertificateRequest::SetCertificateId
void SetCertificateId(const char *value)
Definition: TransferCertificateRequest.h:73
Aws::IoT::Model::TransferCertificateRequest
Definition: TransferCertificateRequest.h:30
Aws::IoT::Model::TransferCertificateRequest::WithTransferMessage
TransferCertificateRequest & WithTransferMessage(const Aws::String &value)
Definition: TransferCertificateRequest.h:163
Aws::IoT::Model::TransferCertificateRequest::TransferMessageHasBeenSet
bool TransferMessageHasBeenSet() const
Definition: TransferCertificateRequest.h:143
Aws::IoT::Model::TransferCertificateRequest::WithCertificateId
TransferCertificateRequest & WithCertificateId(Aws::String &&value)
Definition: TransferCertificateRequest.h:85
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::TransferCertificateRequest::WithCertificateId
TransferCertificateRequest & WithCertificateId(const Aws::String &value)
Definition: TransferCertificateRequest.h:79
Aws::IoT::Model::TransferCertificateRequest::TransferCertificateRequest
TransferCertificateRequest()
IoTRequest.h
Aws::IoT::Model::TransferCertificateRequest::SetTargetAwsAccount
void SetTargetAwsAccount(const char *value)
Definition: TransferCertificateRequest.h:117
Aws::IoT::Model::TransferCertificateRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: TransferCertificateRequest.h:38
Aws::IoT::Model::TransferCertificateRequest::SetTargetAwsAccount
void SetTargetAwsAccount(const Aws::String &value)
Definition: TransferCertificateRequest.h:107
IoT_EXPORTS.h