AWS SDK for C++  0.14.3
AWS SDK for C++
AcceptCertificateTransferRequest.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 AcceptCertificateTransferRequest& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
66 
70  inline AcceptCertificateTransferRequest& WithCertificateId(Aws::String&& value) { SetCertificateId(value); return *this;}
71 
75  inline AcceptCertificateTransferRequest& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
76 
80  inline bool GetSetAsActive() const{ return m_setAsActive; }
81 
85  inline void SetSetAsActive(bool value) { m_setAsActiveHasBeenSet = true; m_setAsActive = value; }
86 
90  inline AcceptCertificateTransferRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;}
91 
92  private:
93  Aws::String m_certificateId;
94  bool m_certificateIdHasBeenSet;
95  bool m_setAsActive;
96  bool m_setAsActiveHasBeenSet;
97  };
98 
99 } // namespace Model
100 } // namespace IoT
101 } // namespace Aws
AcceptCertificateTransferRequest & WithCertificateId(const Aws::String &value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
AcceptCertificateTransferRequest & WithSetAsActive(bool value)
AcceptCertificateTransferRequest & WithCertificateId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
AcceptCertificateTransferRequest & WithCertificateId(Aws::String &&value)
JSON (JavaScript Object Notation).