Class NonIpInstanceBaseProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.NonIpInstanceBaseProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NonIpInstanceBaseProps>
- Enclosing interface:
- NonIpInstanceBaseProps
@Stability(Stable)
public static final class NonIpInstanceBaseProps.Builder
extends Object
implements software.amazon.jsii.Builder<NonIpInstanceBaseProps>
A builder for
NonIpInstanceBaseProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customAttributes(Map<String, String> customAttributes) Sets the value ofBaseInstanceProps.getCustomAttributes()instanceId(String instanceId) Sets the value ofBaseInstanceProps.getInstanceId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customAttributes
@Stability(Stable) public NonIpInstanceBaseProps.Builder customAttributes(Map<String, String> customAttributes) Sets the value ofBaseInstanceProps.getCustomAttributes()- Parameters:
customAttributes- Custom attributes of the instance.- Returns:
this
-
instanceId
Sets the value ofBaseInstanceProps.getInstanceId()- Parameters:
instanceId- The id of the instance resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<NonIpInstanceBaseProps>- Returns:
- a new instance of
NonIpInstanceBaseProps - Throws:
NullPointerException- if any required attribute was not provided
-