Class FleetInstanceMetadataOptionsRequest
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<FleetInstanceMetadataOptionsRequest.Builder,FleetInstanceMetadataOptionsRequest>
Describes the metadata options for the instances. Supported only for fleets of type instant.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()Enables or disables the HTTP metadata endpoint on your instances.final StringEnables or disables the HTTP metadata endpoint on your instances.final IntegerThe desired HTTP PUT response hop limit for instance metadata requests.final FleetHttpTokensStateIndicates whether IMDSv2 is required.final StringIndicates whether IMDSv2 is required.static Class<? extends FleetInstanceMetadataOptionsRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
httpTokens
Indicates whether IMDSv2 is required.
-
optional- IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required- IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
If the service returns an enum value that is not available in the current SDK version,
httpTokenswill returnFleetHttpTokensState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpTokensAsString().- Returns:
- Indicates whether IMDSv2 is required.
-
optional- IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required- IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
-
- See Also:
-
-
httpTokensAsString
Indicates whether IMDSv2 is required.
-
optional- IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required- IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
If the service returns an enum value that is not available in the current SDK version,
httpTokenswill returnFleetHttpTokensState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpTokensAsString().- Returns:
- Indicates whether IMDSv2 is required.
-
optional- IMDSv2 is optional, which means that you can use either IMDSv2 or IMDSv1. -
required- IMDSv2 is required, which means that IMDSv1 is disabled, and you must use IMDSv2.
-
- See Also:
-
-
httpPutResponseHopLimit
The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the further instance metadata requests can travel.
Default:
1Possible values: Integers from 1 to 64
- Returns:
- The desired HTTP PUT response hop limit for instance metadata requests. The larger the number, the
further instance metadata requests can travel.
Default:
1Possible values: Integers from 1 to 64
-
httpEndpoint
Enables or disables the HTTP metadata endpoint on your instances.
-
enabled- The HTTP metadata endpoint is enabled. -
disabled- The HTTP metadata endpoint is disabled.
If the service returns an enum value that is not available in the current SDK version,
httpEndpointwill returnFleetInstanceMetadataEndpointState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpEndpointAsString().- Returns:
- Enables or disables the HTTP metadata endpoint on your instances.
-
enabled- The HTTP metadata endpoint is enabled. -
disabled- The HTTP metadata endpoint is disabled.
-
- See Also:
-
-
httpEndpointAsString
Enables or disables the HTTP metadata endpoint on your instances.
-
enabled- The HTTP metadata endpoint is enabled. -
disabled- The HTTP metadata endpoint is disabled.
If the service returns an enum value that is not available in the current SDK version,
httpEndpointwill returnFleetInstanceMetadataEndpointState.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromhttpEndpointAsString().- Returns:
- Enables or disables the HTTP metadata endpoint on your instances.
-
enabled- The HTTP metadata endpoint is enabled. -
disabled- The HTTP metadata endpoint is disabled.
-
- See Also:
-
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<FleetInstanceMetadataOptionsRequest.Builder,FleetInstanceMetadataOptionsRequest>
-
builder
-
serializableBuilderClass
public static Class<? extends FleetInstanceMetadataOptionsRequest.Builder> serializableBuilderClass() -
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-