/*
* 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 lightsail-2016-11-28.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.Lightsail.Model
{
///
/// Container for the parameters to the GetCertificates operation.
/// Returns information about one or more Amazon Lightsail SSL/TLS certificates.
///
///
///
/// To get a summary of a certificate, omit includeCertificateDetails
from
/// your request. The response will include only the certificate Amazon Resource Name
/// (ARN), certificate name, domain name, and tags.
///
///
///
public partial class GetCertificatesRequest : AmazonLightsailRequest
{
private string _certificateName;
private List _certificateStatuses = new List();
private bool? _includeCertificateDetails;
private string _pageToken;
///
/// Gets and sets the property CertificateName.
///
/// The name for the certificate for which to return information.
///
///
///
/// When omitted, the response includes all of your certificates in the Amazon Web Services
/// Region where the request is made.
///
///
public string CertificateName
{
get { return this._certificateName; }
set { this._certificateName = value; }
}
// Check to see if CertificateName property is set
internal bool IsSetCertificateName()
{
return this._certificateName != null;
}
///
/// Gets and sets the property CertificateStatuses.
///
/// The status of the certificates for which to return information.
///
///
///
/// For example, specify ISSUED
to return only certificates with an ISSUED
/// status.
///
///
///
/// When omitted, the response includes all of your certificates in the Amazon Web Services
/// Region where the request is made, regardless of their current status.
///
///
public List CertificateStatuses
{
get { return this._certificateStatuses; }
set { this._certificateStatuses = value; }
}
// Check to see if CertificateStatuses property is set
internal bool IsSetCertificateStatuses()
{
return this._certificateStatuses != null && this._certificateStatuses.Count > 0;
}
///
/// Gets and sets the property IncludeCertificateDetails.
///
/// Indicates whether to include detailed information about the certificates in the response.
///
///
///
/// When omitted, the response includes only the certificate names, Amazon Resource Names
/// (ARNs), domain names, and tags.
///
///
public bool IncludeCertificateDetails
{
get { return this._includeCertificateDetails.GetValueOrDefault(); }
set { this._includeCertificateDetails = value; }
}
// Check to see if IncludeCertificateDetails property is set
internal bool IsSetIncludeCertificateDetails()
{
return this._includeCertificateDetails.HasValue;
}
///
/// Gets and sets the property PageToken.
///
/// The token to advance to the next page of results from your request.
///
///
///
/// To get a page token, perform an initial GetCertificates
request. If your
/// results are paginated, the response will return a next page token that you can specify
/// as the page token in a subsequent request.
///
///
public string PageToken
{
get { return this._pageToken; }
set { this._pageToken = value; }
}
// Check to see if PageToken property is set
internal bool IsSetPageToken()
{
return this._pageToken != null;
}
}
}