/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the docdb-2014-10-31.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.DocDB.Model
{
///
/// A certificate authority (CA) certificate for an Amazon Web Services account.
///
public partial class Certificate
{
private string _certificateArn;
private string _certificateIdentifier;
private string _certificateType;
private string _thumbprint;
private DateTime? _validFrom;
private DateTime? _validTill;
///
/// Gets and sets the property CertificateArn.
///
/// The Amazon Resource Name (ARN) for the certificate.
///
///
///
/// Example: arn:aws:rds:us-east-1::cert:rds-ca-2019
///
///
public string CertificateArn
{
get { return this._certificateArn; }
set { this._certificateArn = value; }
}
// Check to see if CertificateArn property is set
internal bool IsSetCertificateArn()
{
return this._certificateArn != null;
}
///
/// Gets and sets the property CertificateIdentifier.
///
/// The unique key that identifies a certificate.
///
///
///
/// Example: rds-ca-2019
///
///
public string CertificateIdentifier
{
get { return this._certificateIdentifier; }
set { this._certificateIdentifier = value; }
}
// Check to see if CertificateIdentifier property is set
internal bool IsSetCertificateIdentifier()
{
return this._certificateIdentifier != null;
}
///
/// Gets and sets the property CertificateType.
///
/// The type of the certificate.
///
///
///
/// Example: CA
///
///
public string CertificateType
{
get { return this._certificateType; }
set { this._certificateType = value; }
}
// Check to see if CertificateType property is set
internal bool IsSetCertificateType()
{
return this._certificateType != null;
}
///
/// Gets and sets the property Thumbprint.
///
/// The thumbprint of the certificate.
///
///
public string Thumbprint
{
get { return this._thumbprint; }
set { this._thumbprint = value; }
}
// Check to see if Thumbprint property is set
internal bool IsSetThumbprint()
{
return this._thumbprint != null;
}
///
/// Gets and sets the property ValidFrom.
///
/// The starting date-time from which the certificate is valid.
///
///
///
/// Example: 2019-07-31T17:57:09Z
///
///
public DateTime ValidFrom
{
get { return this._validFrom.GetValueOrDefault(); }
set { this._validFrom = value; }
}
// Check to see if ValidFrom property is set
internal bool IsSetValidFrom()
{
return this._validFrom.HasValue;
}
///
/// Gets and sets the property ValidTill.
///
/// The date-time after which the certificate is no longer valid.
///
///
///
/// Example: 2024-07-31T17:57:09Z
///
///
public DateTime ValidTill
{
get { return this._validTill.GetValueOrDefault(); }
set { this._validTill = value; }
}
// Check to see if ValidTill property is set
internal bool IsSetValidTill()
{
return this._validTill.HasValue;
}
}
}