com.amazonaws.services.ec2.model
Class DescribeKeyPairsRequest

java.lang.Object
  extended by com.amazonaws.AmazonWebServiceRequest
      extended by com.amazonaws.services.ec2.model.DescribeKeyPairsRequest
All Implemented Interfaces:
DryRunSupportedRequest<DescribeKeyPairsRequest>, java.io.Serializable

public class DescribeKeyPairsRequest
extends AmazonWebServiceRequest
implements java.io.Serializable, DryRunSupportedRequest<DescribeKeyPairsRequest>

Container for the parameters to the DescribeKeyPairs operation.

Describes one or more of your key pairs.

For more information about key pairs, see Key Pairs in the Amazon Elastic Compute Cloud User Guide .

See Also:
AmazonEC2.describeKeyPairs(DescribeKeyPairsRequest), Serialized Form

Constructor Summary
DescribeKeyPairsRequest()
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 Request<DescribeKeyPairsRequest> getDryRunRequest()
          This method is intended for internal use only.
 java.util.List<Filter> getFilters()
          One or more filters.
 java.util.List<java.lang.String> getKeyNames()
          One or more key pair names.
 int hashCode()
           
 void setFilters(java.util.Collection<Filter> filters)
          One or more filters.
 void setKeyNames(java.util.Collection<java.lang.String> keyNames)
          One or more key pair names.
 java.lang.String toString()
          Returns a string representation of this object; useful for testing and debugging.
 DescribeKeyPairsRequest withFilters(java.util.Collection<Filter> filters)
          One or more filters.
 DescribeKeyPairsRequest withFilters(Filter... filters)
          One or more filters.
 DescribeKeyPairsRequest withKeyNames(java.util.Collection<java.lang.String> keyNames)
          One or more key pair names.
 DescribeKeyPairsRequest withKeyNames(java.lang.String... keyNames)
          One or more key pair names.
 
Methods inherited from class com.amazonaws.AmazonWebServiceRequest
copyPrivateRequestParameters, getDelegationToken, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setDelegationToken, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DescribeKeyPairsRequest

public DescribeKeyPairsRequest()
Method Detail

getKeyNames

public java.util.List<java.lang.String> getKeyNames()
One or more key pair names.

Default: Describes all your key pairs.

Returns:
One or more key pair names.

Default: Describes all your key pairs.


setKeyNames

public void setKeyNames(java.util.Collection<java.lang.String> keyNames)
One or more key pair names.

Default: Describes all your key pairs.

Parameters:
keyNames - One or more key pair names.

Default: Describes all your key pairs.


withKeyNames

public DescribeKeyPairsRequest withKeyNames(java.lang.String... keyNames)
One or more key pair names.

Default: Describes all your key pairs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyNames - One or more key pair names.

Default: Describes all your key pairs.

Returns:
A reference to this updated object so that method calls can be chained together.

withKeyNames

public DescribeKeyPairsRequest withKeyNames(java.util.Collection<java.lang.String> keyNames)
One or more key pair names.

Default: Describes all your key pairs.

Returns a reference to this object so that method calls can be chained together.

Parameters:
keyNames - One or more key pair names.

Default: Describes all your key pairs.

Returns:
A reference to this updated object so that method calls can be chained together.

getFilters

public java.util.List<Filter> getFilters()
One or more filters.

Returns:
One or more filters.
  • fingerprint - The fingerprint of the key pair.

  • key-name - The name of the key pair.


setFilters

public void setFilters(java.util.Collection<Filter> filters)
One or more filters.

Parameters:
filters - One or more filters.
  • fingerprint - The fingerprint of the key pair.

  • key-name - The name of the key pair.


withFilters

public DescribeKeyPairsRequest withFilters(Filter... filters)
One or more filters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
filters - One or more filters.
  • fingerprint - The fingerprint of the key pair.

  • key-name - The name of the key pair.

Returns:
A reference to this updated object so that method calls can be chained together.

withFilters

public DescribeKeyPairsRequest withFilters(java.util.Collection<Filter> filters)
One or more filters.

Returns a reference to this object so that method calls can be chained together.

Parameters:
filters - One or more filters.
  • fingerprint - The fingerprint of the key pair.

  • key-name - The name of the key pair.

Returns:
A reference to this updated object so that method calls can be chained together.

getDryRunRequest

public Request<DescribeKeyPairsRequest> getDryRunRequest()
This method is intended for internal use only. Returns the marshaled request configured with additional parameters to enable operation dry-run.

Specified by:
getDryRunRequest in interface DryRunSupportedRequest<DescribeKeyPairsRequest>

toString

public java.lang.String toString()
Returns a string representation of this object; useful for testing and debugging.

Overrides:
toString in class java.lang.Object
Returns:
A string representation of this object.
See Also:
Object.toString()

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


Copyright © 2010 Amazon Web Services, Inc. All Rights Reserved.