/*
* 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 cloudtrail-2013-11-01.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.CloudTrail.Model
{
///
/// Contains information about a returned public key.
///
public partial class PublicKey
{
private string _fingerprint;
private DateTime? _validityEndTime;
private DateTime? _validityStartTime;
private MemoryStream _value;
///
/// Gets and sets the property Fingerprint.
///
/// The fingerprint of the public key.
///
///
public string Fingerprint
{
get { return this._fingerprint; }
set { this._fingerprint = value; }
}
// Check to see if Fingerprint property is set
internal bool IsSetFingerprint()
{
return this._fingerprint != null;
}
///
/// Gets and sets the property ValidityEndTime.
///
/// The ending time of validity of the public key.
///
///
public DateTime ValidityEndTime
{
get { return this._validityEndTime.GetValueOrDefault(); }
set { this._validityEndTime = value; }
}
// Check to see if ValidityEndTime property is set
internal bool IsSetValidityEndTime()
{
return this._validityEndTime.HasValue;
}
///
/// Gets and sets the property ValidityStartTime.
///
/// The starting time of validity of the public key.
///
///
public DateTime ValidityStartTime
{
get { return this._validityStartTime.GetValueOrDefault(); }
set { this._validityStartTime = value; }
}
// Check to see if ValidityStartTime property is set
internal bool IsSetValidityStartTime()
{
return this._validityStartTime.HasValue;
}
///
/// Gets and sets the property Value.
///
/// The DER encoded public key value in PKCS#1 format.
///
///
public MemoryStream Value
{
get { return this._value; }
set { this._value = value; }
}
// Check to see if Value property is set
internal bool IsSetValue()
{
return this._value != null;
}
}
}