AWS SDK for C++  0.14.3
AWS SDK for C++
CACertificate.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>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Json
26 {
27  class JsonValue;
28 } // namespace Json
29 } // namespace Utils
30 namespace IoT
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  CACertificate();
43  CACertificate& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
44  Aws::Utils::Json::JsonValue Jsonize() const;
45 
49  inline const Aws::String& GetCertificateArn() const{ return m_certificateArn; }
50 
54  inline void SetCertificateArn(const Aws::String& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
55 
59  inline void SetCertificateArn(Aws::String&& value) { m_certificateArnHasBeenSet = true; m_certificateArn = value; }
60 
64  inline void SetCertificateArn(const char* value) { m_certificateArnHasBeenSet = true; m_certificateArn.assign(value); }
65 
69  inline CACertificate& WithCertificateArn(const Aws::String& value) { SetCertificateArn(value); return *this;}
70 
74  inline CACertificate& WithCertificateArn(Aws::String&& value) { SetCertificateArn(value); return *this;}
75 
79  inline CACertificate& WithCertificateArn(const char* value) { SetCertificateArn(value); return *this;}
80 
84  inline const Aws::String& GetCertificateId() const{ return m_certificateId; }
85 
89  inline void SetCertificateId(const Aws::String& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
90 
94  inline void SetCertificateId(Aws::String&& value) { m_certificateIdHasBeenSet = true; m_certificateId = value; }
95 
99  inline void SetCertificateId(const char* value) { m_certificateIdHasBeenSet = true; m_certificateId.assign(value); }
100 
104  inline CACertificate& WithCertificateId(const Aws::String& value) { SetCertificateId(value); return *this;}
105 
109  inline CACertificate& WithCertificateId(Aws::String&& value) { SetCertificateId(value); return *this;}
110 
114  inline CACertificate& WithCertificateId(const char* value) { SetCertificateId(value); return *this;}
115 
120  inline const CACertificateStatus& GetStatus() const{ return m_status; }
121 
126  inline void SetStatus(const CACertificateStatus& value) { m_statusHasBeenSet = true; m_status = value; }
127 
132  inline void SetStatus(CACertificateStatus&& value) { m_statusHasBeenSet = true; m_status = value; }
133 
138  inline CACertificate& WithStatus(const CACertificateStatus& value) { SetStatus(value); return *this;}
139 
144  inline CACertificate& WithStatus(CACertificateStatus&& value) { SetStatus(value); return *this;}
145 
149  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
150 
154  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
155 
159  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
160 
164  inline CACertificate& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
165 
169  inline CACertificate& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(value); return *this;}
170 
171  private:
172  Aws::String m_certificateArn;
173  bool m_certificateArnHasBeenSet;
174  Aws::String m_certificateId;
175  bool m_certificateIdHasBeenSet;
176  CACertificateStatus m_status;
177  bool m_statusHasBeenSet;
178  Aws::Utils::DateTime m_creationDate;
179  bool m_creationDateHasBeenSet;
180  };
181 
182 } // namespace Model
183 } // namespace IoT
184 } // namespace Aws
void SetCertificateId(const Aws::String &value)
Definition: CACertificate.h:89
CACertificate & WithCreationDate(Aws::Utils::DateTime &&value)
CACertificate & WithCertificateArn(const char *value)
Definition: CACertificate.h:79
CACertificate & WithCertificateId(const char *value)
void SetCertificateArn(const Aws::String &value)
Definition: CACertificate.h:54
CACertificate & WithStatus(CACertificateStatus &&value)
CACertificate & WithCertificateId(const Aws::String &value)
void SetStatus(CACertificateStatus &&value)
const Aws::Utils::DateTime & GetCreationDate() const
void SetStatus(const CACertificateStatus &value)
void SetCertificateId(Aws::String &&value)
Definition: CACertificate.h:94
const Aws::String & GetCertificateId() const
Definition: CACertificate.h:84
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:37
CACertificate & WithCertificateArn(Aws::String &&value)
Definition: CACertificate.h:74
void SetCreationDate(Aws::Utils::DateTime &&value)
const Aws::String & GetCertificateArn() const
Definition: CACertificate.h:49
void SetCertificateArn(Aws::String &&value)
Definition: CACertificate.h:59
void SetCreationDate(const Aws::Utils::DateTime &value)
CACertificate & WithCreationDate(const Aws::Utils::DateTime &value)
CACertificate & WithStatus(const CACertificateStatus &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetCertificateId(const char *value)
Definition: CACertificate.h:99
const CACertificateStatus & GetStatus() const
CACertificate & WithCertificateArn(const Aws::String &value)
Definition: CACertificate.h:69
CACertificate & WithCertificateId(Aws::String &&value)
void SetCertificateArn(const char *value)
Definition: CACertificate.h:64
JSON (JavaScript Object Notation).