Interface InstanceMetadataDefaultsResponse.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<InstanceMetadataDefaultsResponse.Builder,InstanceMetadataDefaultsResponse>
,SdkBuilder<InstanceMetadataDefaultsResponse.Builder,InstanceMetadataDefaultsResponse>
,SdkPojo
- Enclosing class:
- InstanceMetadataDefaultsResponse
public static interface InstanceMetadataDefaultsResponse.Builder extends SdkPojo, CopyableBuilder<InstanceMetadataDefaultsResponse.Builder,InstanceMetadataDefaultsResponse>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InstanceMetadataDefaultsResponse.Builder
httpEndpoint(String httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled.InstanceMetadataDefaultsResponse.Builder
httpEndpoint(InstanceMetadataEndpointState httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled.InstanceMetadataDefaultsResponse.Builder
httpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel.InstanceMetadataDefaultsResponse.Builder
httpTokens(String httpTokens)
Indicates whether IMDSv2 is required.InstanceMetadataDefaultsResponse.Builder
httpTokens(HttpTokensState httpTokens)
Indicates whether IMDSv2 is required.InstanceMetadataDefaultsResponse.Builder
instanceMetadataTags(String instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled.InstanceMetadataDefaultsResponse.Builder
instanceMetadataTags(InstanceMetadataTagsState instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled.InstanceMetadataDefaultsResponse.Builder
managedBy(String managedBy)
The entity that manages the IMDS default settings.InstanceMetadataDefaultsResponse.Builder
managedBy(ManagedBy managedBy)
The entity that manages the IMDS default settings.InstanceMetadataDefaultsResponse.Builder
managedExceptionMessage(String managedExceptionMessage)
The customized exception message that is specified in the declarative policy.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
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
InstanceMetadataDefaultsResponse.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:
HttpTokensState
,HttpTokensState
-
-
httpTokens
InstanceMetadataDefaultsResponse.Builder httpTokens(HttpTokensState 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:
HttpTokensState
,HttpTokensState
-
-
httpPutResponseHopLimit
InstanceMetadataDefaultsResponse.Builder httpPutResponseHopLimit(Integer httpPutResponseHopLimit)
The maximum number of hops that the metadata token can travel.
- Parameters:
httpPutResponseHopLimit
- The maximum number of hops that the metadata token can travel.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
httpEndpoint
InstanceMetadataDefaultsResponse.Builder httpEndpoint(String httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint
- Indicates whether the IMDS endpoint for an instance is enabled or disabled. 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:
InstanceMetadataEndpointState
,InstanceMetadataEndpointState
-
httpEndpoint
InstanceMetadataDefaultsResponse.Builder httpEndpoint(InstanceMetadataEndpointState httpEndpoint)
Indicates whether the IMDS endpoint for an instance is enabled or disabled. When disabled, the instance metadata can't be accessed.
- Parameters:
httpEndpoint
- Indicates whether the IMDS endpoint for an instance is enabled or disabled. 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:
InstanceMetadataEndpointState
,InstanceMetadataEndpointState
-
instanceMetadataTags
InstanceMetadataDefaultsResponse.Builder instanceMetadataTags(String instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
- Parameters:
instanceMetadataTags
- Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the 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:
InstanceMetadataTagsState
,InstanceMetadataTagsState
-
instanceMetadataTags
InstanceMetadataDefaultsResponse.Builder instanceMetadataTags(InstanceMetadataTagsState instanceMetadataTags)
Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the instance metadata in the Amazon EC2 User Guide.
- Parameters:
instanceMetadataTags
- Indicates whether access to instance tags from the instance metadata is enabled or disabled. For more information, see Work with instance tags using the 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:
InstanceMetadataTagsState
,InstanceMetadataTagsState
-
managedBy
InstanceMetadataDefaultsResponse.Builder managedBy(String managedBy)
The entity that manages the IMDS default settings. Possible values include:
-
account
- The IMDS default settings are managed by the account. -
declarative-policy
- The IMDS default settings are managed by a declarative policy and can't be modified by the account.
- Parameters:
managedBy
- The entity that manages the IMDS default settings. Possible values include:-
account
- The IMDS default settings are managed by the account. -
declarative-policy
- The IMDS default settings are managed by a declarative policy and can't be modified by the account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ManagedBy
,ManagedBy
-
-
managedBy
InstanceMetadataDefaultsResponse.Builder managedBy(ManagedBy managedBy)
The entity that manages the IMDS default settings. Possible values include:
-
account
- The IMDS default settings are managed by the account. -
declarative-policy
- The IMDS default settings are managed by a declarative policy and can't be modified by the account.
- Parameters:
managedBy
- The entity that manages the IMDS default settings. Possible values include:-
account
- The IMDS default settings are managed by the account. -
declarative-policy
- The IMDS default settings are managed by a declarative policy and can't be modified by the account.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ManagedBy
,ManagedBy
-
-
managedExceptionMessage
InstanceMetadataDefaultsResponse.Builder managedExceptionMessage(String managedExceptionMessage)
The customized exception message that is specified in the declarative policy.
- Parameters:
managedExceptionMessage
- The customized exception message that is specified in the declarative policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-