Interface ModifyInstanceMetadataDefaultsRequest.Builder
-
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<ModifyInstanceMetadataDefaultsRequest.Builder,ModifyInstanceMetadataDefaultsRequest>,Ec2Request.Builder,SdkBuilder<ModifyInstanceMetadataDefaultsRequest.Builder,ModifyInstanceMetadataDefaultsRequest>,SdkPojo,SdkRequest.Builder
- Enclosing class:
- ModifyInstanceMetadataDefaultsRequest
@Mutable @NotThreadSafe public static interface ModifyInstanceMetadataDefaultsRequest.Builder extends Ec2Request.Builder, SdkPojo, CopyableBuilder<ModifyInstanceMetadataDefaultsRequest.Builder,ModifyInstanceMetadataDefaultsRequest>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ModifyInstanceMetadataDefaultsRequest.BuilderdryRun(Boolean dryRun)Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response.ModifyInstanceMetadataDefaultsRequest.BuilderhttpEndpoint(String httpEndpoint)Enables or disables the IMDS endpoint on an instance.ModifyInstanceMetadataDefaultsRequest.BuilderhttpEndpoint(DefaultInstanceMetadataEndpointState httpEndpoint)Enables or disables the IMDS endpoint on an instance.ModifyInstanceMetadataDefaultsRequest.BuilderhttpPutResponseHopLimit(Integer httpPutResponseHopLimit)The maximum number of hops that the metadata token can travel.ModifyInstanceMetadataDefaultsRequest.BuilderhttpTokens(String httpTokens)Indicates whether IMDSv2 is required.ModifyInstanceMetadataDefaultsRequest.BuilderhttpTokens(MetadataDefaultHttpTokensState httpTokens)Indicates whether IMDSv2 is required.ModifyInstanceMetadataDefaultsRequest.BuilderhttpTokensEnforced(String httpTokensEnforced)Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch.ModifyInstanceMetadataDefaultsRequest.BuilderhttpTokensEnforced(DefaultHttpTokensEnforcedState httpTokensEnforced)Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch.ModifyInstanceMetadataDefaultsRequest.BuilderinstanceMetadataTags(String instanceMetadataTags)Enables or disables access to an instance's tags from the instance metadata.ModifyInstanceMetadataDefaultsRequest.BuilderinstanceMetadataTags(DefaultInstanceMetadataTagsState instanceMetadataTags)Enables or disables access to an instance's tags from the instance metadata.ModifyInstanceMetadataDefaultsRequest.BuilderoverrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)ModifyInstanceMetadataDefaultsRequest.BuilderoverrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)-
Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.services.ec2.model.Ec2Request.Builder
build
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
-
-
-
Method Detail
-
httpTokens
ModifyInstanceMetadataDefaultsRequest.Builder httpTokens(String 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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetadataDefaultHttpTokensState,MetadataDefaultHttpTokensState
-
-
httpTokens
ModifyInstanceMetadataDefaultsRequest.Builder httpTokens(MetadataDefaultHttpTokensState 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.
- Parameters:
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.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
MetadataDefaultHttpTokensState,MetadataDefaultHttpTokensState
-
-
httpPutResponseHopLimit
ModifyInstanceMetadataDefaultsRequest.Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel. To indicate no preference, specify
-1.Possible values: Integers from
1to64, and-1to indicate no preference- Parameters:
httpPutResponseHopLimit- The maximum number of hops that the metadata token can travel. To indicate no preference, specify-1.Possible values: Integers from
1to64, and-1to indicate no preference- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpEndpoint
ModifyInstanceMetadataDefaultsRequest.Builder httpEndpoint(String httpEndpoint)
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DefaultInstanceMetadataEndpointState,DefaultInstanceMetadataEndpointState
-
httpEndpoint
ModifyInstanceMetadataDefaultsRequest.Builder httpEndpoint(DefaultInstanceMetadataEndpointState httpEndpoint)
Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint- Enables or disables the IMDS endpoint on an instance. When disabled, the instance metadata can't be accessed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DefaultInstanceMetadataEndpointState,DefaultInstanceMetadataEndpointState
-
instanceMetadataTags
ModifyInstanceMetadataDefaultsRequest.Builder instanceMetadataTags(String instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.
- Parameters:
instanceMetadataTags- Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DefaultInstanceMetadataTagsState,DefaultInstanceMetadataTagsState
-
instanceMetadataTags
ModifyInstanceMetadataDefaultsRequest.Builder instanceMetadataTags(DefaultInstanceMetadataTagsState instanceMetadataTags)
Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.
- Parameters:
instanceMetadataTags- Enables or disables access to an instance's tags from the instance metadata. For more information, see View tags for your EC2 instances using instance metadata in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DefaultInstanceMetadataTagsState,DefaultInstanceMetadataTagsState
-
dryRun
ModifyInstanceMetadataDefaultsRequest.Builder dryRun(Boolean dryRun)
Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response is
DryRunOperation. Otherwise, it isUnauthorizedOperation.- Parameters:
dryRun- Checks whether you have the required permissions for the operation, without actually making the request, and provides an error response. If you have the required permissions, the error response isDryRunOperation. Otherwise, it isUnauthorizedOperation.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpTokensEnforced
ModifyInstanceMetadataDefaultsRequest.Builder httpTokensEnforced(String httpTokensEnforced)
Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (
HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide.- Parameters:
httpTokensEnforced- Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DefaultHttpTokensEnforcedState,DefaultHttpTokensEnforcedState
-
httpTokensEnforced
ModifyInstanceMetadataDefaultsRequest.Builder httpTokensEnforced(DefaultHttpTokensEnforcedState httpTokensEnforced)
Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (
HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide.- Parameters:
httpTokensEnforced- Specifies whether to enforce the requirement of IMDSv2 on an instance at the time of launch. When enforcement is enabled, the instance can't launch unless IMDSv2 (HttpTokens) is set torequired. For more information, see Enforce IMDSv2 at the account level in the Amazon EC2 User Guide.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
DefaultHttpTokensEnforcedState,DefaultHttpTokensEnforcedState
-
overrideConfiguration
ModifyInstanceMetadataDefaultsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
overrideConfiguration
ModifyInstanceMetadataDefaultsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer)
- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder
-
-