@Generated(value="software.amazon.awssdk:codegen") public final class AllocateHostsResponse extends Ec2Response implements ToCopyableBuilder<AllocateHostsResponse.Builder,AllocateHostsResponse>
Contains the output of AllocateHosts.
Modifier and Type | Class and Description |
---|---|
static interface |
AllocateHostsResponse.Builder |
Modifier and Type | Method and Description |
---|---|
static AllocateHostsResponse.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
List<String> |
hostIds()
The ID of the allocated Dedicated Host.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AllocateHostsResponse.Builder> |
serializableBuilderClass() |
AllocateHostsResponse.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
responseMetadata
sdkHttpResponse
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy
public List<String> hostIds()
The ID of the allocated Dedicated Host. This is used to launch an instance onto a specific host.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public AllocateHostsResponse.Builder toBuilder()
toBuilder
in interface ToCopyableBuilder<AllocateHostsResponse.Builder,AllocateHostsResponse>
toBuilder
in class AwsResponse
public static AllocateHostsResponse.Builder builder()
public static Class<? extends AllocateHostsResponse.Builder> serializableBuilderClass()
public int hashCode()
hashCode
in class AwsResponse
public boolean equals(Object obj)
equals
in class AwsResponse
public boolean equalsBySdkFields(Object obj)
equalsBySdkFields
in interface SdkPojo
public String toString()
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField
in class SdkResponse
Copyright © 2019. All rights reserved.