public class DescribeKeyPairsRequest extends AmazonWebServiceRequest implements java.io.Serializable, DryRunSupportedRequest<DescribeKeyPairsRequest>
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 .
Constructor and Description |
---|
DescribeKeyPairsRequest() |
Modifier and Type | Method and Description |
---|---|
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.
|
clone, getCloneRoot, getCloneSource, getGeneralProgressListener, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, setGeneralProgressListener, setRequestCredentials, setRequestMetricCollector, withGeneralProgressListener, withRequestMetricCollector
public java.util.List<java.lang.String> getKeyNames()
Default: Describes all your key pairs.
Default: Describes all your key pairs.
public void setKeyNames(java.util.Collection<java.lang.String> keyNames)
Default: Describes all your key pairs.
keyNames
- One or more key pair names. Default: Describes all your key pairs.
public DescribeKeyPairsRequest withKeyNames(java.lang.String... keyNames)
Default: Describes all your key pairs.
Returns a reference to this object so that method calls can be chained together.
keyNames
- One or more key pair names. Default: Describes all your key pairs.
public DescribeKeyPairsRequest withKeyNames(java.util.Collection<java.lang.String> keyNames)
Default: Describes all your key pairs.
Returns a reference to this object so that method calls can be chained together.
keyNames
- One or more key pair names. Default: Describes all your key pairs.
public java.util.List<Filter> getFilters()
fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
public void setFilters(java.util.Collection<Filter> filters)
fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
filters
- One or more filters. fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
public DescribeKeyPairsRequest withFilters(Filter... filters)
fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
Returns a reference to this object so that method calls can be chained together.
filters
- One or more filters. fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
public DescribeKeyPairsRequest withFilters(java.util.Collection<Filter> filters)
fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
Returns a reference to this object so that method calls can be chained together.
filters
- One or more filters. fingerprint
- The
fingerprint of the key pair.
key-name
- The
name of the key pair.
public Request<DescribeKeyPairsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeKeyPairsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2018 Amazon Web Services, Inc. All Rights Reserved.