public class CreateKeyPairResult extends Object implements Serializable
The result of creating a new EC2 key pair.
Constructor and Description |
---|
CreateKeyPairResult() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
KeyPair |
getKeyPair()
The newly created EC2 key pair.
|
int |
hashCode() |
void |
setKeyPair(KeyPair keyPair)
The newly created EC2 key pair.
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CreateKeyPairResult |
withKeyPair(KeyPair keyPair)
The newly created EC2 key pair.
|
public KeyPair getKeyPair()
public void setKeyPair(KeyPair keyPair)
keyPair
- The newly created EC2 key pair.public CreateKeyPairResult withKeyPair(KeyPair keyPair)
Returns a reference to this object so that method calls can be chained together.
keyPair
- The newly created EC2 key pair.public String toString()
toString
in class Object
Object.toString()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.