Class HostInstance
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.HostInstance
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HostInstance.Builder,HostInstance>
@Generated("software.amazon.awssdk:codegen") public final class HostInstance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HostInstance.Builder,HostInstance>
Describes an instance running on a Dedicated Host.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHostInstance.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static HostInstance.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceId()The ID of instance that is running on the Dedicated Host.StringinstanceType()The instance type (for example,m3.medium) of the running instance.StringownerId()The ID of the Amazon Web Services account that owns the instance.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends HostInstance.Builder>serializableBuilderClass()HostInstance.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
instanceId
public final String instanceId()
The ID of instance that is running on the Dedicated Host.
- Returns:
- The ID of instance that is running on the Dedicated Host.
-
instanceType
public final String instanceType()
The instance type (for example,
m3.medium) of the running instance.- Returns:
- The instance type (for example,
m3.medium) of the running instance.
-
ownerId
public final String ownerId()
The ID of the Amazon Web Services account that owns the instance.
- Returns:
- The ID of the Amazon Web Services account that owns the instance.
-
toBuilder
public HostInstance.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<HostInstance.Builder,HostInstance>
-
builder
public static HostInstance.Builder builder()
-
serializableBuilderClass
public static Class<? extends HostInstance.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-