Class CfnEC2Fleet.InstanceMetadataOptionsRequestProperty.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.CfnEC2Fleet.InstanceMetadataOptionsRequestProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnEC2Fleet.InstanceMetadataOptionsRequestProperty>
- Enclosing interface:
CfnEC2Fleet.InstanceMetadataOptionsRequestProperty
@Stability(Stable)
public static final class CfnEC2Fleet.InstanceMetadataOptionsRequestProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnEC2Fleet.InstanceMetadataOptionsRequestProperty>
A builder for
CfnEC2Fleet.InstanceMetadataOptionsRequestProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.httpEndpoint(String httpEndpoint) Sets the value ofCfnEC2Fleet.InstanceMetadataOptionsRequestProperty.getHttpEndpoint()httpPutResponseHopLimit(Number httpPutResponseHopLimit) httpTokens(String httpTokens) Sets the value ofCfnEC2Fleet.InstanceMetadataOptionsRequestProperty.getHttpTokens()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
httpEndpoint
@Stability(Stable) public CfnEC2Fleet.InstanceMetadataOptionsRequestProperty.Builder httpEndpoint(String httpEndpoint) Sets the value ofCfnEC2Fleet.InstanceMetadataOptionsRequestProperty.getHttpEndpoint()- Parameters:
httpEndpoint- the value to be set.- Returns:
this
-
httpPutResponseHopLimit
@Stability(Stable) public CfnEC2Fleet.InstanceMetadataOptionsRequestProperty.Builder httpPutResponseHopLimit(Number httpPutResponseHopLimit) - Parameters:
httpPutResponseHopLimit- the value to be set.- Returns:
this
-
httpTokens
@Stability(Stable) public CfnEC2Fleet.InstanceMetadataOptionsRequestProperty.Builder httpTokens(String httpTokens) Sets the value ofCfnEC2Fleet.InstanceMetadataOptionsRequestProperty.getHttpTokens()- Parameters:
httpTokens- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnEC2Fleet.InstanceMetadataOptionsRequestProperty>- Returns:
- a new instance of
CfnEC2Fleet.InstanceMetadataOptionsRequestProperty - Throws:
NullPointerException- if any required attribute was not provided
-