Class RestoreServerRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.opsworkscm.model.OpsWorksCmRequest
-
- software.amazon.awssdk.services.opsworkscm.model.RestoreServerRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
@Generated("software.amazon.awssdk:codegen") public final class RestoreServerRequest extends OpsWorksCmRequest implements ToCopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRestoreServerRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringbackupId()The ID of the backup that you want to use to restore a server.static RestoreServerRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceType()The type of instance to restore.StringkeyPair()The name of the key pair to set on the new EC2 instance.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends RestoreServerRequest.Builder>serializableBuilderClass()StringserverName()The name of the server that you want to restore.RestoreServerRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
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
-
backupId
public final String backupId()
The ID of the backup that you want to use to restore a server.
- Returns:
- The ID of the backup that you want to use to restore a server.
-
serverName
public final String serverName()
The name of the server that you want to restore.
- Returns:
- The name of the server that you want to restore.
-
instanceType
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 arem5.large,r5.xlarge, andr5.2xlarge. If you do not specify this parameter, RestoreServer uses the instance type from the specified backup.- Returns:
- The type of instance to restore. Valid values must be specified in the following format:
^([cm][34]|t2).*For example,m5.large. Valid values arem5.large,r5.xlarge, andr5.2xlarge. If you do not specify this parameter, RestoreServer uses the instance type from the specified backup.
-
keyPair
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.
- Returns:
- 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.
-
toBuilder
public RestoreServerRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<RestoreServerRequest.Builder,RestoreServerRequest>- Specified by:
toBuilderin classOpsWorksCmRequest
-
builder
public static RestoreServerRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends RestoreServerRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
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 classSdkRequest
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-