public class DescribeKeyPairsRequest extends AmazonWebServiceRequest implements Serializable, DryRunSupportedRequest<DescribeKeyPairsRequest>
DescribeKeyPairs operation
.
The DescribeKeyPairs operation returns information about key pairs available to you. If you specify key pairs, information about those key pairs is returned. Otherwise, information for all registered key pairs is returned.
Constructor and Description |
---|
DescribeKeyPairsRequest() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Request<DescribeKeyPairsRequest> |
getDryRunRequest()
This method is intended for internal use only.
|
List<Filter> |
getFilters()
A list of filters used to match properties for KeyPairs.
|
List<String> |
getKeyNames()
The optional list of key pair names to describe.
|
int |
hashCode() |
void |
setFilters(Collection<Filter> filters)
A list of filters used to match properties for KeyPairs.
|
void |
setKeyNames(Collection<String> keyNames)
The optional list of key pair names to describe.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
DescribeKeyPairsRequest |
withFilters(Collection<Filter> filters)
A list of filters used to match properties for KeyPairs.
|
DescribeKeyPairsRequest |
withFilters(Filter... filters)
A list of filters used to match properties for KeyPairs.
|
DescribeKeyPairsRequest |
withKeyNames(Collection<String> keyNames)
The optional list of key pair names to describe.
|
DescribeKeyPairsRequest |
withKeyNames(String... keyNames)
The optional list of key pair names to describe.
|
copyPrivateRequestParameters, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setRequestCredentials, setRequestMetricCollector, withRequestMetricCollector
public List<String> getKeyNames()
public void setKeyNames(Collection<String> keyNames)
keyNames
- The optional list of key pair names to describe.public DescribeKeyPairsRequest withKeyNames(String... keyNames)
Returns a reference to this object so that method calls can be chained together.
keyNames
- The optional list of key pair names to describe.public DescribeKeyPairsRequest withKeyNames(Collection<String> keyNames)
Returns a reference to this object so that method calls can be chained together.
keyNames
- The optional list of key pair names to describe.public List<Filter> getFilters()
public void setFilters(Collection<Filter> filters)
filters
- A list of filters used to match properties for KeyPairs. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public DescribeKeyPairsRequest withFilters(Filter... filters)
Returns a reference to this object so that method calls can be chained together.
filters
- A list of filters used to match properties for KeyPairs. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public DescribeKeyPairsRequest withFilters(Collection<Filter> filters)
Returns a reference to this object so that method calls can be chained together.
filters
- A list of filters used to match properties for KeyPairs. For a
complete reference to the available filter keys for this operation,
see the Amazon
EC2 API reference.public Request<DescribeKeyPairsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeKeyPairsRequest>
public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.