AWS SDK for C++  0.14.3
AWS SDK for C++
TransferCertificateRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/iot/IoT_EXPORTS.h>
17 #include <aws/iot/IoTRequest.h>
19 
20 namespace Aws
21 {
22 namespace Http
23 {
24  class URI;
25 } //namespace Http
26 namespace IoT
27 {
28 namespace Model
29 {
30 
35  {
36  public:
38  Aws::String SerializePayload() const override;
39 
40  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
41 
45  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
46 
50  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
51 
55  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
56 
60  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
61 
65  inline TransferCertificateRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
66 
70  inline TransferCertificateRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(value); return *this;}
71 
75  inline TransferCertificateRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
76 
80  inline const Aws::String& GetTargetAwsAccount() const{ return m_targetAwsAccount; }
81 
85  inline void SetTargetAwsAccount(const Aws::String& value) { m_targetAwsAccountHasBeenSet = true; m_targetAwsAccount = value; }
86 
90  inline void SetTargetAwsAccount(Aws::String&& value) { m_targetAwsAccountHasBeenSet = true; m_targetAwsAccount = value; }
91 
95  inline void SetTargetAwsAccount(const char* value) { m_targetAwsAccountHasBeenSet = true; m_targetAwsAccount.assign(value); }
96 
100  inline TransferCertificateRequest& WithTargetAwsAccount(const Aws::String& value) { SetTargetAwsAccount(value); return *this;}
101 
105  inline TransferCertificateRequest& WithTargetAwsAccount(Aws::String&& value) { SetTargetAwsAccount(value); return *this;}
106 
110  inline TransferCertificateRequest& WithTargetAwsAccount(const char* value) { SetTargetAwsAccount(value); return *this;}
111 
115  inline const Aws::String& GetTransferMessage() const{ return m_transferMessage; }
116 
120  inline void SetTransferMessage(const Aws::String& value) { m_transferMessageHasBeenSet = true; m_transferMessage = value; }
121 
125  inline void SetTransferMessage(Aws::String&& value) { m_transferMessageHasBeenSet = true; m_transferMessage = value; }
126 
130  inline void SetTransferMessage(const char* value) { m_transferMessageHasBeenSet = true; m_transferMessage.assign(value); }
131 
135  inline TransferCertificateRequest& WithTransferMessage(const Aws::String& value) { SetTransferMessage(value); return *this;}
136 
140  inline TransferCertificateRequest& WithTransferMessage(Aws::String&& value) { SetTransferMessage(value); return *this;}
141 
145  inline TransferCertificateRequest& WithTransferMessage(const char* value) { SetTransferMessage(value); return *this;}
146 
147  private:
148  Aws::String m_certificateId;
149  bool m_certificateIdHasBeenSet;
150  Aws::String m_targetAwsAccount;
151  bool m_targetAwsAccountHasBeenSet;
152  Aws::String m_transferMessage;
153  bool m_transferMessageHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace IoT
158 } // namespace Aws
TransferCertificateRequest & WithCertificateId(Aws::String &&value)
TransferCertificateRequest & WithTargetAwsAccount(Aws::String &&value)
TransferCertificateRequest & WithTransferMessage(Aws::String &&value)
TransferCertificateRequest & WithTargetAwsAccount(const Aws::String &value)
TransferCertificateRequest & WithCertificateId(const char *value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
TransferCertificateRequest & WithTargetAwsAccount(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
TransferCertificateRequest & WithTransferMessage(const char *value)
TransferCertificateRequest & WithTransferMessage(const Aws::String &value)
JSON (JavaScript Object Notation).
TransferCertificateRequest & WithCertificateId(const Aws::String &value)