Package com.amazonaws.services.ec2.model
Class DescribeKeyPairsResult
- java.lang.Object
-
- com.amazonaws.services.ec2.model.DescribeKeyPairsResult
-
- All Implemented Interfaces:
Serializable
,Cloneable
public class DescribeKeyPairsResult extends Object implements Serializable, Cloneable
Contains the output of DescribeKeyPairs.
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DescribeKeyPairsResult()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DescribeKeyPairsResult
clone()
boolean
equals(Object obj)
List<KeyPairInfo>
getKeyPairs()
Information about one or more key pairs.int
hashCode()
void
setKeyPairs(Collection<KeyPairInfo> keyPairs)
Information about one or more key pairs.String
toString()
Returns a string representation of this object; useful for testing and debugging.DescribeKeyPairsResult
withKeyPairs(KeyPairInfo... keyPairs)
Information about one or more key pairs.DescribeKeyPairsResult
withKeyPairs(Collection<KeyPairInfo> keyPairs)
Information about one or more key pairs.
-
-
-
Method Detail
-
getKeyPairs
public List<KeyPairInfo> getKeyPairs()
Information about one or more key pairs.
- Returns:
- Information about one or more key pairs.
-
setKeyPairs
public void setKeyPairs(Collection<KeyPairInfo> keyPairs)
Information about one or more key pairs.
- Parameters:
keyPairs
- Information about one or more key pairs.
-
withKeyPairs
public DescribeKeyPairsResult withKeyPairs(KeyPairInfo... keyPairs)
Information about one or more key pairs.
NOTE: This method appends the values to the existing list (if any). Use
setKeyPairs(java.util.Collection)
orwithKeyPairs(java.util.Collection)
if you want to override the existing values.- Parameters:
keyPairs
- Information about one or more key pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
withKeyPairs
public DescribeKeyPairsResult withKeyPairs(Collection<KeyPairInfo> keyPairs)
Information about one or more key pairs.
- Parameters:
keyPairs
- Information about one or more key pairs.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
toString
public String toString()
Returns a string representation of this object; useful for testing and debugging.- Overrides:
toString
in classObject
- Returns:
- A string representation of this object.
- See Also:
Object.toString()
-
clone
public DescribeKeyPairsResult clone()
-
-