Class InstanceRequireImdsv2AspectProps.Builder
java.lang.Object
software.amazon.awscdk.services.ec2.InstanceRequireImdsv2AspectProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<InstanceRequireImdsv2AspectProps>
- Enclosing interface:
InstanceRequireImdsv2AspectProps
@Stability(Stable)
public static final class InstanceRequireImdsv2AspectProps.Builder
extends Object
implements software.amazon.jsii.Builder<InstanceRequireImdsv2AspectProps>
A builder for
InstanceRequireImdsv2AspectProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.suppressLaunchTemplateWarning
(Boolean suppressLaunchTemplateWarning) Sets the value ofInstanceRequireImdsv2AspectProps.getSuppressLaunchTemplateWarning()
suppressWarnings
(Boolean suppressWarnings) Sets the value ofInstanceRequireImdsv2AspectProps.getSuppressWarnings()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
suppressLaunchTemplateWarning
@Stability(Stable) public InstanceRequireImdsv2AspectProps.Builder suppressLaunchTemplateWarning(Boolean suppressLaunchTemplateWarning) Sets the value ofInstanceRequireImdsv2AspectProps.getSuppressLaunchTemplateWarning()
- Parameters:
suppressLaunchTemplateWarning
- Whether warnings that would be raised when an Instance is associated with an existing Launch Template should be suppressed or not. You can set this totrue
ifLaunchTemplateImdsAspect
is being used alongside this Aspect to suppress false-positive warnings because any Launch Templates associated with Instances will still be covered.- Returns:
this
-
suppressWarnings
@Stability(Stable) public InstanceRequireImdsv2AspectProps.Builder suppressWarnings(Boolean suppressWarnings) Sets the value ofInstanceRequireImdsv2AspectProps.getSuppressWarnings()
- Parameters:
suppressWarnings
- Whether warning annotations from this Aspect should be suppressed or not.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<InstanceRequireImdsv2AspectProps>
- Returns:
- a new instance of
InstanceRequireImdsv2AspectProps
- Throws:
NullPointerException
- if any required attribute was not provided
-