/*
* 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 workspaces-web-2020-07-08.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.WorkSpacesWeb.Model
{
///
/// The certificate.
///
public partial class Certificate
{
private MemoryStream _body;
private string _issuer;
private DateTime? _notValidAfter;
private DateTime? _notValidBefore;
private string _subject;
private string _thumbprint;
///
/// Gets and sets the property Body.
///
/// The body of the certificate.
///
///
public MemoryStream Body
{
get { return this._body; }
set { this._body = value; }
}
// Check to see if Body property is set
internal bool IsSetBody()
{
return this._body != null;
}
///
/// Gets and sets the property Issuer.
///
/// The entity that issued the certificate.
///
///
[AWSProperty(Min=1, Max=256)]
public string Issuer
{
get { return this._issuer; }
set { this._issuer = value; }
}
// Check to see if Issuer property is set
internal bool IsSetIssuer()
{
return this._issuer != null;
}
///
/// Gets and sets the property NotValidAfter.
///
/// The certificate is not valid after this date.
///
///
public DateTime NotValidAfter
{
get { return this._notValidAfter.GetValueOrDefault(); }
set { this._notValidAfter = value; }
}
// Check to see if NotValidAfter property is set
internal bool IsSetNotValidAfter()
{
return this._notValidAfter.HasValue;
}
///
/// Gets and sets the property NotValidBefore.
///
/// The certificate is not valid before this date.
///
///
public DateTime NotValidBefore
{
get { return this._notValidBefore.GetValueOrDefault(); }
set { this._notValidBefore = value; }
}
// Check to see if NotValidBefore property is set
internal bool IsSetNotValidBefore()
{
return this._notValidBefore.HasValue;
}
///
/// Gets and sets the property Subject.
///
/// The entity the certificate belongs to.
///
///
[AWSProperty(Min=1, Max=256)]
public string Subject
{
get { return this._subject; }
set { this._subject = value; }
}
// Check to see if Subject property is set
internal bool IsSetSubject()
{
return this._subject != null;
}
///
/// Gets and sets the property Thumbprint.
///
/// A hexadecimal identifier for the certificate.
///
///
[AWSProperty(Min=64, Max=64)]
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;
}
}
}