AWS SDK for C++  0.12.9
AWS SDK for C++
SslConfiguration.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
18 
19 namespace Aws
20 {
21 namespace Utils
22 {
23 namespace Json
24 {
25  class JsonValue;
26 } // namespace Json
27 } // namespace Utils
28 namespace OpsWorks
29 {
30 namespace Model
31 {
32 
37  {
38  public:
41  SslConfiguration& operator=(const Aws::Utils::Json::JsonValue& jsonValue);
42  Aws::Utils::Json::JsonValue Jsonize() const;
43 
47  inline const Aws::String& GetCertificate() const{ return m_certificate; }
48 
52  inline void SetCertificate(const Aws::String& value) { m_certificateHasBeenSet = true; m_certificate = value; }
53 
57  inline void SetCertificate(Aws::String&& value) { m_certificateHasBeenSet = true; m_certificate = value; }
58 
62  inline void SetCertificate(const char* value) { m_certificateHasBeenSet = true; m_certificate.assign(value); }
63 
67  inline SslConfiguration& WithCertificate(const Aws::String& value) { SetCertificate(value); return *this;}
68 
72  inline SslConfiguration& WithCertificate(Aws::String&& value) { SetCertificate(value); return *this;}
73 
77  inline SslConfiguration& WithCertificate(const char* value) { SetCertificate(value); return *this;}
78 
82  inline const Aws::String& GetPrivateKey() const{ return m_privateKey; }
83 
87  inline void SetPrivateKey(const Aws::String& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
88 
92  inline void SetPrivateKey(Aws::String&& value) { m_privateKeyHasBeenSet = true; m_privateKey = value; }
93 
97  inline void SetPrivateKey(const char* value) { m_privateKeyHasBeenSet = true; m_privateKey.assign(value); }
98 
102  inline SslConfiguration& WithPrivateKey(const Aws::String& value) { SetPrivateKey(value); return *this;}
103 
107  inline SslConfiguration& WithPrivateKey(Aws::String&& value) { SetPrivateKey(value); return *this;}
108 
112  inline SslConfiguration& WithPrivateKey(const char* value) { SetPrivateKey(value); return *this;}
113 
118  inline const Aws::String& GetChain() const{ return m_chain; }
119 
124  inline void SetChain(const Aws::String& value) { m_chainHasBeenSet = true; m_chain = value; }
125 
130  inline void SetChain(Aws::String&& value) { m_chainHasBeenSet = true; m_chain = value; }
131 
136  inline void SetChain(const char* value) { m_chainHasBeenSet = true; m_chain.assign(value); }
137 
142  inline SslConfiguration& WithChain(const Aws::String& value) { SetChain(value); return *this;}
143 
148  inline SslConfiguration& WithChain(Aws::String&& value) { SetChain(value); return *this;}
149 
154  inline SslConfiguration& WithChain(const char* value) { SetChain(value); return *this;}
155 
156  private:
157  Aws::String m_certificate;
158  bool m_certificateHasBeenSet;
159  Aws::String m_privateKey;
160  bool m_privateKeyHasBeenSet;
161  Aws::String m_chain;
162  bool m_chainHasBeenSet;
163  };
164 
165 } // namespace Model
166 } // namespace OpsWorks
167 } // namespace Aws
SslConfiguration & WithCertificate(const Aws::String &value)
SslConfiguration & WithChain(const Aws::String &value)
void SetCertificate(const char *value)
void SetPrivateKey(Aws::String &&value)
SslConfiguration & WithCertificate(const char *value)
const Aws::String & GetCertificate() const
void SetChain(const Aws::String &value)
const Aws::String & GetChain() const
SslConfiguration & WithChain(Aws::String &&value)
void SetCertificate(const Aws::String &value)
SslConfiguration & WithChain(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_OPSWORKS_API
const Aws::String & GetPrivateKey() const
void SetPrivateKey(const Aws::String &value)
SslConfiguration & WithCertificate(Aws::String &&value)
SslConfiguration & WithPrivateKey(const char *value)
SslConfiguration & WithPrivateKey(Aws::String &&value)
SslConfiguration & WithPrivateKey(const Aws::String &value)
void SetCertificate(Aws::String &&value)
JSON (JavaScript Object Notation).