@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) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz)
Used to retrieve the value of a field from any class that extends
SdkRequest . |
int |
hashCode() |
String |
instanceType()
The type of the instance to create.
|
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()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
overrideConfiguration
copy
public String backupId()
The ID of the backup that you want to use to restore a server.
public String serverName()
The name of the server that you want to restore.
public String instanceType()
The type of the instance to create. Valid values must be specified in the following format:
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
,
m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer uses the
instance type from the specified backup.
^([cm][34]|t2).*
For example, m4.large
. Valid values are t2.medium
, m4.large
, and m4.2xlarge
. If you do not specify this parameter, RestoreServer
uses the instance type from the specified backup.public 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()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
toBuilder
in class OpsWorksCmRequest
public static RestoreServerRequest.Builder builder()
public static Class<? extends RestoreServerRequest.Builder> serializableBuilderClass()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
SdkRequest
SdkRequest
. The field name
specified should match the member name from the corresponding service-2.json model specified in the
codegen-resources folder for a given service. The class specifies what class to cast the returned value to.
If the returned value is also a modeled class, the SdkRequest.getValueForField(String, Class)
method will
again be available.getValueForField
in class SdkRequest
fieldName
- The name of the member to be retrieved.clazz
- The class to cast the returned object to.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.