AWS SDK for C++  0.12.9
AWS SDK for C++
ViewerCertificate.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
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace CloudFront
31 {
32 namespace Model
33 {
34 
40  {
41  public:
44  ViewerCertificate& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void AddToNode(Aws::Utils::Xml::XmlNode& parentNode) const;
47 
54  inline bool GetCloudFrontDefaultCertificate() const{ return m_cloudFrontDefaultCertificate; }
55 
62  inline void SetCloudFrontDefaultCertificate(bool value) { m_cloudFrontDefaultCertificateHasBeenSet = true; m_cloudFrontDefaultCertificate = value; }
63 
70  inline ViewerCertificate& WithCloudFrontDefaultCertificate(bool value) { SetCloudFrontDefaultCertificate(value); return *this;}
71 
79  inline const Aws::String& GetIAMCertificateId() const{ return m_iAMCertificateId; }
80 
88  inline void SetIAMCertificateId(const Aws::String& value) { m_iAMCertificateIdHasBeenSet = true; m_iAMCertificateId = value; }
89 
97  inline void SetIAMCertificateId(Aws::String&& value) { m_iAMCertificateIdHasBeenSet = true; m_iAMCertificateId = value; }
98 
106  inline void SetIAMCertificateId(const char* value) { m_iAMCertificateIdHasBeenSet = true; m_iAMCertificateId.assign(value); }
107 
115  inline ViewerCertificate& WithIAMCertificateId(const Aws::String& value) { SetIAMCertificateId(value); return *this;}
116 
124  inline ViewerCertificate& WithIAMCertificateId(Aws::String&& value) { SetIAMCertificateId(value); return *this;}
125 
133  inline ViewerCertificate& WithIAMCertificateId(const char* value) { SetIAMCertificateId(value); return *this;}
134 
142  inline const Aws::String& GetACMCertificateArn() const{ return m_aCMCertificateArn; }
143 
151  inline void SetACMCertificateArn(const Aws::String& value) { m_aCMCertificateArnHasBeenSet = true; m_aCMCertificateArn = value; }
152 
160  inline void SetACMCertificateArn(Aws::String&& value) { m_aCMCertificateArnHasBeenSet = true; m_aCMCertificateArn = value; }
161 
169  inline void SetACMCertificateArn(const char* value) { m_aCMCertificateArnHasBeenSet = true; m_aCMCertificateArn.assign(value); }
170 
178  inline ViewerCertificate& WithACMCertificateArn(const Aws::String& value) { SetACMCertificateArn(value); return *this;}
179 
187  inline ViewerCertificate& WithACMCertificateArn(Aws::String&& value) { SetACMCertificateArn(value); return *this;}
188 
196  inline ViewerCertificate& WithACMCertificateArn(const char* value) { SetACMCertificateArn(value); return *this;}
197 
209  inline const SSLSupportMethod& GetSSLSupportMethod() const{ return m_sSLSupportMethod; }
210 
222  inline void SetSSLSupportMethod(const SSLSupportMethod& value) { m_sSLSupportMethodHasBeenSet = true; m_sSLSupportMethod = value; }
223 
235  inline void SetSSLSupportMethod(SSLSupportMethod&& value) { m_sSLSupportMethodHasBeenSet = true; m_sSLSupportMethod = value; }
236 
248  inline ViewerCertificate& WithSSLSupportMethod(const SSLSupportMethod& value) { SetSSLSupportMethod(value); return *this;}
249 
261  inline ViewerCertificate& WithSSLSupportMethod(SSLSupportMethod&& value) { SetSSLSupportMethod(value); return *this;}
262 
276  inline const MinimumProtocolVersion& GetMinimumProtocolVersion() const{ return m_minimumProtocolVersion; }
277 
291  inline void SetMinimumProtocolVersion(const MinimumProtocolVersion& value) { m_minimumProtocolVersionHasBeenSet = true; m_minimumProtocolVersion = value; }
292 
306  inline void SetMinimumProtocolVersion(MinimumProtocolVersion&& value) { m_minimumProtocolVersionHasBeenSet = true; m_minimumProtocolVersion = value; }
307 
321  inline ViewerCertificate& WithMinimumProtocolVersion(const MinimumProtocolVersion& value) { SetMinimumProtocolVersion(value); return *this;}
322 
336  inline ViewerCertificate& WithMinimumProtocolVersion(MinimumProtocolVersion&& value) { SetMinimumProtocolVersion(value); return *this;}
337 
338  private:
339  bool m_cloudFrontDefaultCertificate;
340  bool m_cloudFrontDefaultCertificateHasBeenSet;
341  Aws::String m_iAMCertificateId;
342  bool m_iAMCertificateIdHasBeenSet;
343  Aws::String m_aCMCertificateArn;
344  bool m_aCMCertificateArnHasBeenSet;
345  SSLSupportMethod m_sSLSupportMethod;
346  bool m_sSLSupportMethodHasBeenSet;
347  MinimumProtocolVersion m_minimumProtocolVersion;
348  bool m_minimumProtocolVersionHasBeenSet;
349  };
350 
351 } // namespace Model
352 } // namespace CloudFront
353 } // namespace Aws
void SetSSLSupportMethod(SSLSupportMethod &&value)
ViewerCertificate & WithSSLSupportMethod(const SSLSupportMethod &value)
const SSLSupportMethod & GetSSLSupportMethod() const
ViewerCertificate & WithIAMCertificateId(const Aws::String &value)
void SetACMCertificateArn(const Aws::String &value)
const Aws::String & GetIAMCertificateId() const
ViewerCertificate & WithIAMCertificateId(const char *value)
void SetMinimumProtocolVersion(const MinimumProtocolVersion &value)
const MinimumProtocolVersion & GetMinimumProtocolVersion() const
void SetSSLSupportMethod(const SSLSupportMethod &value)
ViewerCertificate & WithACMCertificateArn(const char *value)
#define AWS_CLOUDFRONT_API
ViewerCertificate & WithMinimumProtocolVersion(MinimumProtocolVersion &&value)
void SetMinimumProtocolVersion(MinimumProtocolVersion &&value)
ViewerCertificate & WithIAMCertificateId(Aws::String &&value)
ViewerCertificate & WithACMCertificateArn(const Aws::String &value)
const Aws::String & GetACMCertificateArn() const
void SetIAMCertificateId(Aws::String &&value)
ViewerCertificate & WithCloudFrontDefaultCertificate(bool value)
void SetIAMCertificateId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetACMCertificateArn(Aws::String &&value)
ViewerCertificate & WithACMCertificateArn(Aws::String &&value)
ViewerCertificate & WithMinimumProtocolVersion(const MinimumProtocolVersion &value)
ViewerCertificate & WithSSLSupportMethod(SSLSupportMethod &&value)
JSON (JavaScript Object Notation).