@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class KeyPair extends Object implements Serializable, Cloneable, StructuredPojo
Describes the SSH key pair.
Constructor and Description |
---|
KeyPair() |
Modifier and Type | Method and Description |
---|---|
KeyPair |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE ). |
Date |
getCreatedAt()
The timestamp when the key pair was created (e.g.,
1479816991.349 ). |
String |
getFingerprint()
The RSA fingerprint of the key pair.
|
ResourceLocation |
getLocation()
The region name and Availability Zone where the key pair was created.
|
String |
getName()
The friendly name of the SSH key pair.
|
String |
getResourceType()
The resource type (usually
KeyPair ). |
String |
getSupportCode()
The support code.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE ). |
void |
setCreatedAt(Date createdAt)
The timestamp when the key pair was created (e.g.,
1479816991.349 ). |
void |
setFingerprint(String fingerprint)
The RSA fingerprint of the key pair.
|
void |
setLocation(ResourceLocation location)
The region name and Availability Zone where the key pair was created.
|
void |
setName(String name)
The friendly name of the SSH key pair.
|
void |
setResourceType(ResourceType resourceType)
The resource type (usually
KeyPair ). |
void |
setResourceType(String resourceType)
The resource type (usually
KeyPair ). |
void |
setSupportCode(String supportCode)
The support code.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
KeyPair |
withArn(String arn)
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE ). |
KeyPair |
withCreatedAt(Date createdAt)
The timestamp when the key pair was created (e.g.,
1479816991.349 ). |
KeyPair |
withFingerprint(String fingerprint)
The RSA fingerprint of the key pair.
|
KeyPair |
withLocation(ResourceLocation location)
The region name and Availability Zone where the key pair was created.
|
KeyPair |
withName(String name)
The friendly name of the SSH key pair.
|
KeyPair |
withResourceType(ResourceType resourceType)
The resource type (usually
KeyPair ). |
KeyPair |
withResourceType(String resourceType)
The resource type (usually
KeyPair ). |
KeyPair |
withSupportCode(String supportCode)
The support code.
|
public void setName(String name)
The friendly name of the SSH key pair.
name
- The friendly name of the SSH key pair.public String getName()
The friendly name of the SSH key pair.
public KeyPair withName(String name)
The friendly name of the SSH key pair.
name
- The friendly name of the SSH key pair.public void setArn(String arn)
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).
arn
- The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).public String getArn()
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).public KeyPair withArn(String arn)
The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).
arn
- The Amazon Resource Name (ARN) of the key pair (e.g.,
arn:aws:lightsail:us-east-1:123456789101:KeyPair/05859e3d-331d-48ba-9034-12345EXAMPLE
).public void setSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource in Lightsail. This code enables our support team to look up your Lightsail information
more easily.public String getSupportCode()
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
public KeyPair withSupportCode(String supportCode)
The support code. Include this code in your email to support when you have questions about an instance or another resource in Lightsail. This code enables our support team to look up your Lightsail information more easily.
supportCode
- The support code. Include this code in your email to support when you have questions about an instance or
another resource in Lightsail. This code enables our support team to look up your Lightsail information
more easily.public void setCreatedAt(Date createdAt)
The timestamp when the key pair was created (e.g., 1479816991.349
).
createdAt
- The timestamp when the key pair was created (e.g., 1479816991.349
).public Date getCreatedAt()
The timestamp when the key pair was created (e.g., 1479816991.349
).
1479816991.349
).public KeyPair withCreatedAt(Date createdAt)
The timestamp when the key pair was created (e.g., 1479816991.349
).
createdAt
- The timestamp when the key pair was created (e.g., 1479816991.349
).public void setLocation(ResourceLocation location)
The region name and Availability Zone where the key pair was created.
location
- The region name and Availability Zone where the key pair was created.public ResourceLocation getLocation()
The region name and Availability Zone where the key pair was created.
public KeyPair withLocation(ResourceLocation location)
The region name and Availability Zone where the key pair was created.
location
- The region name and Availability Zone where the key pair was created.public void setResourceType(String resourceType)
The resource type (usually KeyPair
).
resourceType
- The resource type (usually KeyPair
).ResourceType
public String getResourceType()
The resource type (usually KeyPair
).
KeyPair
).ResourceType
public KeyPair withResourceType(String resourceType)
The resource type (usually KeyPair
).
resourceType
- The resource type (usually KeyPair
).ResourceType
public void setResourceType(ResourceType resourceType)
The resource type (usually KeyPair
).
resourceType
- The resource type (usually KeyPair
).ResourceType
public KeyPair withResourceType(ResourceType resourceType)
The resource type (usually KeyPair
).
resourceType
- The resource type (usually KeyPair
).ResourceType
public void setFingerprint(String fingerprint)
The RSA fingerprint of the key pair.
fingerprint
- The RSA fingerprint of the key pair.public String getFingerprint()
The RSA fingerprint of the key pair.
public KeyPair withFingerprint(String fingerprint)
The RSA fingerprint of the key pair.
fingerprint
- The RSA fingerprint of the key pair.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.