@Generated(value="software.amazon.awssdk:codegen") public final class RestoreServerRequest extends OpsWorksCmRequest implements ToCopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
RestoreServerRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
backupId()
The ID of the backup that you want to use to restore a server.
|
static RestoreServerRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
instanceType()
The type of instance to restore.
|
String |
keyPair()
The name of the key pair to set on the new EC2 instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends RestoreServerRequest.Builder> |
serializableBuilderClass() |
String |
serverName()
The name of the server that you want to restore.
|
RestoreServerRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String backupId()
The ID of the backup that you want to use to restore a server.
public final String serverName()
The name of the server that you want to restore.
public final String instanceType()
The type of instance to restore. Valid values must be specified in the following format:
^([cm][34]|t2).* For example, m5.large. Valid values are m5.large,
r5.xlarge, and r5.2xlarge. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
^([cm][34]|t2).* For example, m5.large. Valid values are m5.large,
r5.xlarge, and r5.2xlarge. If you do not specify this parameter, RestoreServer
uses the instance type from the specified backup.public final String keyPair()
The name of the key pair to set on the new EC2 instance. This can be helpful if the administrator no longer has the SSH key.
public RestoreServerRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>toBuilder in class OpsWorksCmRequestpublic static RestoreServerRequest.Builder builder()
public static Class<? extends RestoreServerRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.