AWS SDK for C++  0.14.3
AWS SDK for C++
RegisterCertificateRequest.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& GetCertificatePem() const{ return m_certificatePem; }
46 
50  inline void SetCertificatePem(const Aws::String& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
51 
55  inline void SetCertificatePem(Aws::String&& value) { m_certificatePemHasBeenSet = true; m_certificatePem = value; }
56 
60  inline void SetCertificatePem(const char* value) { m_certificatePemHasBeenSet = true; m_certificatePem.assign(value); }
61 
65  inline RegisterCertificateRequest& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
66 
70  inline RegisterCertificateRequest& WithCertificatePem(Aws::String&& value) { SetCertificatePem(value); return *this;}
71 
75  inline RegisterCertificateRequest& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
76 
80  inline const Aws::String& GetCaCertificatePem() const{ return m_caCertificatePem; }
81 
85  inline void SetCaCertificatePem(const Aws::String& value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem = value; }
86 
90  inline void SetCaCertificatePem(Aws::String&& value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem = value; }
91 
95  inline void SetCaCertificatePem(const char* value) { m_caCertificatePemHasBeenSet = true; m_caCertificatePem.assign(value); }
96 
100  inline RegisterCertificateRequest& WithCaCertificatePem(const Aws::String& value) { SetCaCertificatePem(value); return *this;}
101 
105  inline RegisterCertificateRequest& WithCaCertificatePem(Aws::String&& value) { SetCaCertificatePem(value); return *this;}
106 
110  inline RegisterCertificateRequest& WithCaCertificatePem(const char* value) { SetCaCertificatePem(value); return *this;}
111 
115  inline bool GetSetAsActive() const{ return m_setAsActive; }
116 
120  inline void SetSetAsActive(bool value) { m_setAsActiveHasBeenSet = true; m_setAsActive = value; }
121 
125  inline RegisterCertificateRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;}
126 
127  private:
128  Aws::String m_certificatePem;
129  bool m_certificatePemHasBeenSet;
130  Aws::String m_caCertificatePem;
131  bool m_caCertificatePemHasBeenSet;
132  bool m_setAsActive;
133  bool m_setAsActiveHasBeenSet;
134  };
135 
136 } // namespace Model
137 } // namespace IoT
138 } // namespace Aws
RegisterCertificateRequest & WithCertificatePem(const Aws::String &value)
RegisterCertificateRequest & WithCaCertificatePem(const Aws::String &value)
RegisterCertificateRequest & WithCertificatePem(Aws::String &&value)
RegisterCertificateRequest & WithCaCertificatePem(Aws::String &&value)
RegisterCertificateRequest & WithCertificatePem(const char *value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
RegisterCertificateRequest & WithSetAsActive(bool value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RegisterCertificateRequest & WithCaCertificatePem(const char *value)
JSON (JavaScript Object Notation).