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