Class CreateKeyPairResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.lightsail.model.LightsailResponse
-
- software.amazon.awssdk.services.lightsail.model.CreateKeyPairResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>
@Generated("software.amazon.awssdk:codegen") public final class CreateKeyPairResponse extends LightsailResponse implements ToCopyableBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateKeyPairResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateKeyPairResponse.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()KeyPairkeyPair()An array of key-value pairs containing information about the new key pair you just created.Operationoperation()An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.StringprivateKeyBase64()A base64-encoded RSA private key.StringpublicKeyBase64()A base64-encoded public key of thessh-rsatype.List<SdkField<?>>sdkFields()static Class<? extends CreateKeyPairResponse.Builder>serializableBuilderClass()CreateKeyPairResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.lightsail.model.LightsailResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
keyPair
public final KeyPair keyPair()
An array of key-value pairs containing information about the new key pair you just created.
- Returns:
- An array of key-value pairs containing information about the new key pair you just created.
-
publicKeyBase64
public final String publicKeyBase64()
A base64-encoded public key of the
ssh-rsatype.- Returns:
- A base64-encoded public key of the
ssh-rsatype.
-
privateKeyBase64
public final String privateKeyBase64()
A base64-encoded RSA private key.
- Returns:
- A base64-encoded RSA private key.
-
operation
public final Operation operation()
An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
- Returns:
- An array of objects that describe the result of the action, such as the status of the request, the timestamp of the request, and the resources affected by the request.
-
toBuilder
public CreateKeyPairResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateKeyPairResponse.Builder,CreateKeyPairResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static CreateKeyPairResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateKeyPairResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-