/*
* 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 ec2-2016-11-15.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.EC2.Model
{
///
/// Container for the parameters to the DescribeKeyPairs operation.
/// Describes the specified key pairs or all of your key pairs.
///
///
///
/// For more information about key pairs, see Amazon
/// EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.
///
///
public partial class DescribeKeyPairsRequest : AmazonEC2Request
{
private List _filters = new List();
private bool? _includePublicKey;
private List _keyNames = new List();
private List _keyPairIds = new List();
///
/// Gets and sets the property Filters.
///
/// The filters.
///
/// -
///
///
key-pair-id
- The ID of the key pair.
///
/// -
///
///
fingerprint
- The fingerprint of the key pair.
///
/// -
///
///
key-name
- The name of the key pair.
///
/// -
///
///
tag-key
- The key of a tag assigned to the resource. Use this filter
/// to find all resources assigned a tag with a specific key, regardless of the tag value.
///
/// -
///
///
tag
:<key> - The key/value combination of a tag assigned to the
/// resource. Use the tag key in the filter name and the tag value as the filter value.
/// For example, to find all resources that have a tag with the key Owner
/// and the value TeamA
, specify tag:Owner
for the filter name
/// and TeamA
for the filter value.
///
///
///
public List Filters
{
get { return this._filters; }
set { this._filters = value; }
}
// Check to see if Filters property is set
internal bool IsSetFilters()
{
return this._filters != null && this._filters.Count > 0;
}
///
/// Gets and sets the property IncludePublicKey.
///
/// If true
, the public key material is included in the response.
///
///
///
/// Default: false
///
///
public bool IncludePublicKey
{
get { return this._includePublicKey.GetValueOrDefault(); }
set { this._includePublicKey = value; }
}
// Check to see if IncludePublicKey property is set
internal bool IsSetIncludePublicKey()
{
return this._includePublicKey.HasValue;
}
///
/// Gets and sets the property KeyNames.
///
/// The key pair names.
///
///
///
/// Default: Describes all of your key pairs.
///
///
public List KeyNames
{
get { return this._keyNames; }
set { this._keyNames = value; }
}
// Check to see if KeyNames property is set
internal bool IsSetKeyNames()
{
return this._keyNames != null && this._keyNames.Count > 0;
}
///
/// Gets and sets the property KeyPairIds.
///
/// The IDs of the key pairs.
///
///
public List KeyPairIds
{
get { return this._keyPairIds; }
set { this._keyPairIds = value; }
}
// Check to see if KeyPairIds property is set
internal bool IsSetKeyPairIds()
{
return this._keyPairIds != null && this._keyPairIds.Count > 0;
}
}
}