Class NonIpInstanceProps.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.NonIpInstanceProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<NonIpInstanceProps>
- Enclosing interface:
- NonIpInstanceProps
@Stability(Stable)
public static final class NonIpInstanceProps.Builder
extends Object
implements software.amazon.jsii.Builder<NonIpInstanceProps>
A builder for
NonIpInstanceProps-
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()Sets the value ofNonIpInstanceProps.getService()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
service
Sets the value ofNonIpInstanceProps.getService()- Parameters:
service- The Cloudmap service this resource is registered to. This parameter is required.- Returns:
this
-
customAttributes
@Stability(Stable) public NonIpInstanceProps.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<NonIpInstanceProps>- Returns:
- a new instance of
NonIpInstanceProps - Throws:
NullPointerException- if any required attribute was not provided
-