AWS SDK for C++  0.12.9
AWS SDK for C++
CreateKeysAndCertificateResult.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>
18 #include <aws/iot/model/KeyPair.h>
19 
20 namespace Aws
21 {
22 template<typename RESULT_TYPE>
23 class AmazonWebServiceResult;
24 
25 namespace Utils
26 {
27 namespace Json
28 {
29  class JsonValue;
30 } // namespace Json
31 } // namespace Utils
32 namespace IoT
33 {
34 namespace Model
35 {
40  {
41  public:
45 
49  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
50 
54  inline void SetCertificateArn(const Aws::String& value) { m_certificateArn = value; }
55 
59  inline void SetCertificateArn(Aws::String&& value) { m_certificateArn = value; }
60 
64  inline void SetCertificateArn(const char* value) { m_certificateArn.assign(value); }
65 
69  inline CreateKeysAndCertificateResult& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
70 
74  inline CreateKeysAndCertificateResult& WithCertificateArn(Aws::String&& value) { SetCertificateArn(value); return *this;}
75 
79  inline CreateKeysAndCertificateResult& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
80 
85  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
86 
91  inline void SetCertificateId(const Aws::String& value) { m_certificateId = value; }
92 
97  inline void SetCertificateId(Aws::String&& value) { m_certificateId = value; }
98 
103  inline void SetCertificateId(const char* value) { m_certificateId.assign(value); }
104 
109  inline CreateKeysAndCertificateResult& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
110 
115  inline CreateKeysAndCertificateResult& WithCertificateId(Aws::String&& value) { SetCertificateId(value); return *this;}
116 
121  inline CreateKeysAndCertificateResult& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
122 
126  inline const Aws::String& GetCertificatePem() const{ return m_certificatePem; }
127 
131  inline void SetCertificatePem(const Aws::String& value) { m_certificatePem = value; }
132 
136  inline void SetCertificatePem(Aws::String&& value) { m_certificatePem = value; }
137 
141  inline void SetCertificatePem(const char* value) { m_certificatePem.assign(value); }
142 
146  inline CreateKeysAndCertificateResult& WithCertificatePem(const Aws::String& value) { SetCertificatePem(value); return *this;}
147 
151  inline CreateKeysAndCertificateResult& WithCertificatePem(Aws::String&& value) { SetCertificatePem(value); return *this;}
152 
156  inline CreateKeysAndCertificateResult& WithCertificatePem(const char* value) { SetCertificatePem(value); return *this;}
157 
161  inline const KeyPair& GetKeyPair() const{ return m_keyPair; }
162 
166  inline void SetKeyPair(const KeyPair& value) { m_keyPair = value; }
167 
171  inline void SetKeyPair(KeyPair&& value) { m_keyPair = value; }
172 
176  inline CreateKeysAndCertificateResult& WithKeyPair(const KeyPair& value) { SetKeyPair(value); return *this;}
177 
181  inline CreateKeysAndCertificateResult& WithKeyPair(KeyPair&& value) { SetKeyPair(value); return *this;}
182 
183  private:
184  Aws::String m_certificateArn;
185  Aws::String m_certificateId;
186  Aws::String m_certificatePem;
187  KeyPair m_keyPair;
188  };
189 
190 } // namespace Model
191 } // namespace IoT
192 } // namespace Aws
CreateKeysAndCertificateResult & WithCertificatePem(const char *value)
CreateKeysAndCertificateResult & WithCertificateId(const char *value)
CreateKeysAndCertificateResult & WithCertificatePem(Aws::String &&value)
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:34
CreateKeysAndCertificateResult & WithCertificateId(Aws::String &&value)
CreateKeysAndCertificateResult & WithCertificateArn(const Aws::String &value)
CreateKeysAndCertificateResult & WithCertificateArn(const char *value)
CreateKeysAndCertificateResult & WithCertificateArn(Aws::String &&value)
CreateKeysAndCertificateResult & WithKeyPair(KeyPair &&value)
CreateKeysAndCertificateResult & WithKeyPair(const KeyPair &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateKeysAndCertificateResult & WithCertificateId(const Aws::String &value)
CreateKeysAndCertificateResult & WithCertificatePem(const Aws::String &value)
JSON (JavaScript Object Notation).