AWS SDK for C++  0.14.3
AWS SDK for C++
RegisterCACertificateRequest.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& GetCaCertificate() const{ return m_caCertificate; }
46 
50  inline void SetCaCertificate(const Aws::String& value) { m_caCertificateHasBeenSet = true; m_caCertificate = value; }
51 
55  inline void SetCaCertificate(Aws::String&& value) { m_caCertificateHasBeenSet = true; m_caCertificate = value; }
56 
60  inline void SetCaCertificate(const char* value) { m_caCertificateHasBeenSet = true; m_caCertificate.assign(value); }
61 
65  inline RegisterCACertificateRequest& WithCaCertificate(const Aws::String& value) { SetCaCertificate(value); return *this;}
66 
70  inline RegisterCACertificateRequest& WithCaCertificate(Aws::String&& value) { SetCaCertificate(value); return *this;}
71 
75  inline RegisterCACertificateRequest& WithCaCertificate(const char* value) { SetCaCertificate(value); return *this;}
76 
80  inline const Aws::String& GetVerificationCertificate() const{ return m_verificationCertificate; }
81 
85  inline void SetVerificationCertificate(const Aws::String& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = value; }
86 
90  inline void SetVerificationCertificate(Aws::String&& value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate = value; }
91 
95  inline void SetVerificationCertificate(const char* value) { m_verificationCertificateHasBeenSet = true; m_verificationCertificate.assign(value); }
96 
100  inline RegisterCACertificateRequest& WithVerificationCertificate(const Aws::String& value) { SetVerificationCertificate(value); return *this;}
101 
105  inline RegisterCACertificateRequest& WithVerificationCertificate(Aws::String&& value) { SetVerificationCertificate(value); return *this;}
106 
110  inline RegisterCACertificateRequest& WithVerificationCertificate(const char* value) { SetVerificationCertificate(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 RegisterCACertificateRequest& WithSetAsActive(bool value) { SetSetAsActive(value); return *this;}
126 
131  inline bool GetAllowAutoRegistration() const{ return m_allowAutoRegistration; }
132 
137  inline void SetAllowAutoRegistration(bool value) { m_allowAutoRegistrationHasBeenSet = true; m_allowAutoRegistration = value; }
138 
143  inline RegisterCACertificateRequest& WithAllowAutoRegistration(bool value) { SetAllowAutoRegistration(value); return *this;}
144 
145  private:
146  Aws::String m_caCertificate;
147  bool m_caCertificateHasBeenSet;
148  Aws::String m_verificationCertificate;
149  bool m_verificationCertificateHasBeenSet;
150  bool m_setAsActive;
151  bool m_setAsActiveHasBeenSet;
152  bool m_allowAutoRegistration;
153  bool m_allowAutoRegistrationHasBeenSet;
154  };
155 
156 } // namespace Model
157 } // namespace IoT
158 } // namespace Aws
RegisterCACertificateRequest & WithVerificationCertificate(Aws::String &&value)
RegisterCACertificateRequest & WithAllowAutoRegistration(bool value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
RegisterCACertificateRequest & WithVerificationCertificate(const Aws::String &value)
RegisterCACertificateRequest & WithCaCertificate(const Aws::String &value)
RegisterCACertificateRequest & WithCaCertificate(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
RegisterCACertificateRequest & WithVerificationCertificate(const char *value)
RegisterCACertificateRequest & WithSetAsActive(bool value)
JSON (JavaScript Object Notation).
RegisterCACertificateRequest & WithCaCertificate(const char *value)