Class InstanceMetadataOptions.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.aws.instance.InstanceMetadataOptions.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceMetadataOptions>
- Enclosing interface:
- InstanceMetadataOptions
@Stability(Stable) public static final class InstanceMetadataOptions.Builder extends Object implements software.amazon.jsii.Builder<InstanceMetadataOptions>
A builder forInstanceMetadataOptions
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InstanceMetadataOptionsbuild()Builds the configured instance.InstanceMetadataOptions.BuilderhttpEndpoint(String httpEndpoint)Sets the value ofInstanceMetadataOptions.getHttpEndpoint()InstanceMetadataOptions.BuilderhttpPutResponseHopLimit(Number httpPutResponseHopLimit)Sets the value ofInstanceMetadataOptions.getHttpPutResponseHopLimit()InstanceMetadataOptions.BuilderhttpTokens(String httpTokens)Sets the value ofInstanceMetadataOptions.getHttpTokens()InstanceMetadataOptions.BuilderinstanceMetadataTags(String instanceMetadataTags)Sets the value ofInstanceMetadataOptions.getInstanceMetadataTags()
-
-
-
Method Detail
-
httpEndpoint
@Stability(Stable) public InstanceMetadataOptions.Builder httpEndpoint(String httpEndpoint)
Sets the value ofInstanceMetadataOptions.getHttpEndpoint()- Parameters:
httpEndpoint- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#http_endpoint Instance#http_endpoint}.- Returns:
this
-
httpPutResponseHopLimit
@Stability(Stable) public InstanceMetadataOptions.Builder httpPutResponseHopLimit(Number httpPutResponseHopLimit)
Sets the value ofInstanceMetadataOptions.getHttpPutResponseHopLimit()- Parameters:
httpPutResponseHopLimit- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#http_put_response_hop_limit Instance#http_put_response_hop_limit}.- Returns:
this
-
httpTokens
@Stability(Stable) public InstanceMetadataOptions.Builder httpTokens(String httpTokens)
Sets the value ofInstanceMetadataOptions.getHttpTokens()- Parameters:
httpTokens- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#http_tokens Instance#http_tokens}.- Returns:
this
-
instanceMetadataTags
@Stability(Stable) public InstanceMetadataOptions.Builder instanceMetadataTags(String instanceMetadataTags)
Sets the value ofInstanceMetadataOptions.getInstanceMetadataTags()- Parameters:
instanceMetadataTags- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/aws/5.6.1/docs/resources/instance#instance_metadata_tags Instance#instance_metadata_tags}.- Returns:
this
-
build
@Stability(Stable) public InstanceMetadataOptions build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<InstanceMetadataOptions>- Returns:
- a new instance of
InstanceMetadataOptions - Throws:
NullPointerException- if any required attribute was not provided
-
-