Class Host
- java.lang.Object
-
- software.amazon.awssdk.services.ssmsap.model.Host
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Host.Builder,Host>
@Generated("software.amazon.awssdk:codegen") public final class Host extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Host.Builder,Host>
Describes the properties of the Dedicated Host.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceHost.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Host.Builderbuilder()Stringec2InstanceId()The ID of Amazon EC2 instance.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhostIp()The IP address of the Dedicated Host.StringhostName()The name of the Dedicated Host.HostRolehostRole()The role of the Dedicated Host.StringhostRoleAsString()The role of the Dedicated Host.StringinstanceId()The instance ID of the instance on the Dedicated Host.StringosVersion()The version of the operating system.List<SdkField<?>>sdkFields()static Class<? extends Host.Builder>serializableBuilderClass()Host.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
-
hostName
public final String hostName()
The name of the Dedicated Host.
- Returns:
- The name of the Dedicated Host.
-
hostIp
public final String hostIp()
The IP address of the Dedicated Host.
- Returns:
- The IP address of the Dedicated Host.
-
ec2InstanceId
public final String ec2InstanceId()
The ID of Amazon EC2 instance.
- Returns:
- The ID of Amazon EC2 instance.
-
instanceId
public final String instanceId()
The instance ID of the instance on the Dedicated Host.
- Returns:
- The instance ID of the instance on the Dedicated Host.
-
hostRole
public final HostRole hostRole()
The role of the Dedicated Host.
If the service returns an enum value that is not available in the current SDK version,
hostRolewill returnHostRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhostRoleAsString().- Returns:
- The role of the Dedicated Host.
- See Also:
HostRole
-
hostRoleAsString
public final String hostRoleAsString()
The role of the Dedicated Host.
If the service returns an enum value that is not available in the current SDK version,
hostRolewill returnHostRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhostRoleAsString().- Returns:
- The role of the Dedicated Host.
- See Also:
HostRole
-
osVersion
public final String osVersion()
The version of the operating system.
- Returns:
- The version of the operating system.
-
toBuilder
public Host.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Host.Builder,Host>
-
builder
public static Host.Builder builder()
-
serializableBuilderClass
public static Class<? extends Host.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.
-
-