public class DescribeKeyPairsRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable, DryRunSupportedRequest<DescribeKeyPairsRequest>
Contains the parameters for DescribeKeyPairs.
Modifier and Type | Field and Description |
---|---|
private SdkInternalList<Filter> |
filters
One or more filters.
|
private SdkInternalList<java.lang.String> |
keyNames
One or more key pair names.
|
NOOP
Constructor and Description |
---|
DescribeKeyPairsRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeKeyPairsRequest |
clone()
Creates a shallow clone of this request.
|
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.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private SdkInternalList<java.lang.String> keyNames
One or more key pair names.
Default: Describes all your key pairs.
private SdkInternalList<Filter> filters
One or more filters.
fingerprint
- The fingerprint of the key pair.
key-name
- The name of the key pair.
public java.util.List<java.lang.String> getKeyNames()
One or more key pair names.
Default: Describes all your key pairs.
Default: Describes all your key pairs.
public void setKeyNames(java.util.Collection<java.lang.String> keyNames)
One or more key pair names.
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)
One or more key pair names.
Default: Describes all your key pairs.
NOTE: This method appends the values to the existing list (if
any). Use setKeyNames(java.util.Collection)
or
withKeyNames(java.util.Collection)
if you want to override the
existing values.
keyNames
- One or more key pair names.
Default: Describes all your key pairs.
public DescribeKeyPairsRequest withKeyNames(java.util.Collection<java.lang.String> keyNames)
One or more key pair names.
Default: Describes all your key pairs.
keyNames
- One or more key pair names.
Default: Describes all your key pairs.
public java.util.List<Filter> getFilters()
One or more filters.
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)
One or more 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)
One or more filters.
fingerprint
- The fingerprint of the key pair.
key-name
- The name of the key pair.
NOTE: This method appends the values to the existing list (if
any). Use setFilters(java.util.Collection)
or
withFilters(java.util.Collection)
if you want to override the
existing values.
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)
One or more 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 Request<DescribeKeyPairsRequest> getDryRunRequest()
getDryRunRequest
in interface DryRunSupportedRequest<DescribeKeyPairsRequest>
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public DescribeKeyPairsRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()