text: ﻿/*
  * Copyright 2010-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
  *
  * Licensed under the Apache License, Version 2.0 (the "License").
  * You may not use this file except in compliance with the License.
  * A copy of the License is located at
  *
  *  http://aws.amazon.com/apache2.0
  *
  * or in the "license" file accompanying this file. This file is distributed
  * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
  * express or implied. See the License for the specific language governing
  * permissions and limitations under the License.
  */
  
  #pragma once
  #include <aws/apigateway/APIGateway_EXPORTS.h>
  #include <aws/core/utils/memory/stl/AWSString.h>
  #include <aws/core/utils/DateTime.h>
  #include <utility>
  
  namespace Aws
  {
  namespace Utils
  {
  namespace Json
  {
    class JsonValue;
    class JsonView;
  } // namespace Json
  } // namespace Utils
  namespace APIGateway
  {
  namespace Model
  {
  
    /**
     * <p>Represents a client certificate used to configure client-side SSL
     * authentication while sending requests to the integration endpoint.</p> <div
     * class="remarks">Client certificates are used to authenticate an API by the
     * backend server. To authenticate an API client (or user), use IAM roles and
     * policies, a custom <a>Authorizer</a> or an Amazon Cognito user pool.</div> <div
     * class="seeAlso"> <a
     * href="https://docs.aws.amazon.com/apigateway/latest/developerguide/getting-started-client-side-ssl-authentication.html">Use
     * Client-Side Certificate</a> </div><p><h3>See Also:</h3>   <a
     * href="http://docs.aws.amazon.com/goto/WebAPI/apigateway-2015-07-09/ClientCertificate">AWS
     * API Reference</a></p>
     */
    class AWS_APIGATEWAY_API ClientCertificate
    {
    public:
      ClientCertificate();
      ClientCertificate(Aws::Utils::Json::JsonView jsonValue);
      ClientCertificate& operator=(Aws::Utils::Json::JsonView jsonValue);
      Aws::Utils::Json::JsonValue Jsonize() const;
  
  
      /**
       * <p>The identifier of the client certificate.</p>
       */
      inline const Aws::String& GetClientCertificateId() const{ return m_clientCertificateId; }
  
      /**
       * <p>The identifier of the client certificate.</p>
       */
      inline void SetClientCertificateId(const Aws::String& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = value; }
  
      /**
       * <p>The identifier of the client certificate.</p>
       */
      inline void SetClientCertificateId(Aws::String&& value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId = std::move(value); }
  
      /**
       * <p>The identifier of the client certificate.</p>
       */
      inline void SetClientCertificateId(const char* value) { m_clientCertificateIdHasBeenSet = true; m_clientCertificateId.assign(value); }
  
      /**
       * <p>The identifier of the client certificate.</p>
       */
      inline ClientCertificate& WithClientCertificateId(const Aws::String& value) { SetClientCertificateId(value); return *this;}
  
      /**
       * <p>The identifier of the client certificate.</p>
       */
      inline ClientCertificate& WithClientCertificateId(Aws::String&& value) { SetClientCertificateId(std::move(value)); return *this;}
  
      /**
       * <p>The identifier of the client certificate.</p>
       */
      inline ClientCertificate& WithClientCertificateId(const char* value) { SetClientCertificateId(value); return *this;}
  
  
      /**
       * <p>The description of the client certificate.</p>
       */
      inline const Aws::String& GetDescription() const{ return m_description; }
  
      /**
       * <p>The description of the client certificate.</p>
       */
      inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
  
      /**
       * <p>The description of the client certificate.</p>
       */
      inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
  
      /**
       * <p>The description of the client certificate.</p>
       */
      inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
  
      /**
       * <p>The description of the client certificate.</p>
       */
      inline ClientCertificate& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
  
      /**
       * <p>The description of the client certificate.</p>
       */
      inline ClientCertificate& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
  
      /**
       * <p>The description of the client certificate.</p>
       */
      inline ClientCertificate& WithDescription(const char* value) { SetDescription(value); return *this;}
  
  
      /**
       * <p>The PEM-encoded public key of the client certificate, which can be used to
       * configure certificate authentication in the integration endpoint .</p>
       */
      inline const Aws::String& GetPemEncodedCertificate() const{ return m_pemEncodedCertificate; }
  
      /**
       * <p>The PEM-encoded public key of the client certificate, which can be used to
       * configure certificate authentication in the integration endpoint .</p>
       */
      inline void SetPemEncodedCertificate(const Aws::String& value) { m_pemEncodedCertificateHasBeenSet = true; m_pemEncodedCertificate = value; }
  
      /**
       * <p>The PEM-encoded public key of the client certificate, which can be used to
       * configure certificate authentication in the integration endpoint .</p>
       */
      inline void SetPemEncodedCertificate(Aws::String&& value) { m_pemEncodedCertificateHasBeenSet = true; m_pemEncodedCertificate = std::move(value); }
  
      /**
       * <p>The PEM-encoded public key of the client certificate, which can be used to
       * configure certificate authentication in the integration endpoint .</p>
       */
      inline void SetPemEncodedCertificate(const char* value) { m_pemEncodedCertificateHasBeenSet = true; m_pemEncodedCertificate.assign(value); }
  
      /**
       * <p>The PEM-encoded public key of the client certificate, which can be used to
       * configure certificate authentication in the integration endpoint .</p>
       */
      inline ClientCertificate& WithPemEncodedCertificate(const Aws::String& value) { SetPemEncodedCertificate(value); return *this;}
  
      /**
       * <p>The PEM-encoded public key of the client certificate, which can be used to
       * configure certificate authentication in the integration endpoint .</p>
       */
      inline ClientCertificate& WithPemEncodedCertificate(Aws::String&& value) { SetPemEncodedCertificate(std::move(value)); return *this;}
  
      /**
       * <p>The PEM-encoded public key of the client certificate, which can be used to
       * configure certificate authentication in the integration endpoint .</p>
       */
      inline ClientCertificate& WithPemEncodedCertificate(const char* value) { SetPemEncodedCertificate(value); return *this;}
  
  
      /**
       * <p>The timestamp when the client certificate was created.</p>
       */
      inline const Aws::Utils::DateTime& GetCreatedDate() const{ return m_createdDate; }
  
      /**
       * <p>The timestamp when the client certificate was created.</p>
       */
      inline void SetCreatedDate(const Aws::Utils::DateTime& value) { m_createdDateHasBeenSet = true; m_createdDate = value; }
  
      /**
       * <p>The timestamp when the client certificate was created.</p>
       */
      inline void SetCreatedDate(Aws::Utils::DateTime&& value) { m_createdDateHasBeenSet = true; m_createdDate = std::move(value); }
  
      /**
       * <p>The timestamp when the client certificate was created.</p>
       */
      inline ClientCertificate& WithCreatedDate(const Aws::Utils::DateTime& value) { SetCreatedDate(value); return *this;}
  
      /**
       * <p>The timestamp when the client certificate was created.</p>
       */
      inline ClientCertificate& WithCreatedDate(Aws::Utils::DateTime&& value) { SetCreatedDate(std::move(value)); return *this;}
  
  
      /**
       * <p>The timestamp when the client certificate will expire.</p>
       */
      inline const Aws::Utils::DateTime& GetExpirationDate() const{ return m_expirationDate; }
  
      /**
       * <p>The timestamp when the client certificate will expire.</p>
       */
      inline void SetExpirationDate(const Aws::Utils::DateTime& value) { m_expirationDateHasBeenSet = true; m_expirationDate = value; }
  
      /**
       * <p>The timestamp when the client certificate will expire.</p>
       */
      inline void SetExpirationDate(Aws::Utils::DateTime&& value) { m_expirationDateHasBeenSet = true; m_expirationDate = std::move(value); }
  
      /**
       * <p>The timestamp when the client certificate will expire.</p>
       */
      inline ClientCertificate& WithExpirationDate(const Aws::Utils::DateTime& value) { SetExpirationDate(value); return *this;}
  
      /**
       * <p>The timestamp when the client certificate will expire.</p>
       */
      inline ClientCertificate& WithExpirationDate(Aws::Utils::DateTime&& value) { SetExpirationDate(std::move(value)); return *this;}
  
    private:
  
      Aws::String m_clientCertificateId;
      bool m_clientCertificateIdHasBeenSet;
  
      Aws::String m_description;
      bool m_descriptionHasBeenSet;
  
      Aws::String m_pemEncodedCertificate;
      bool m_pemEncodedCertificateHasBeenSet;
  
      Aws::Utils::DateTime m_createdDate;
      bool m_createdDateHasBeenSet;
  
      Aws::Utils::DateTime m_expirationDate;
      bool m_expirationDateHasBeenSet;
    };
  
  } // namespace Model
  } // namespace APIGateway
  } // namespace Aws
  