public static final class IpInstanceBaseProps.Builder
extends java.lang.Object
IpInstanceBaseProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
IpInstanceBaseProps |
build()
Builds the configured instance.
|
IpInstanceBaseProps.Builder |
customAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)
Sets the value of
BaseInstanceProps.getCustomAttributes() |
IpInstanceBaseProps.Builder |
instanceId(java.lang.String instanceId)
Sets the value of
BaseInstanceProps.getInstanceId() |
IpInstanceBaseProps.Builder |
ipv4(java.lang.String ipv4)
Sets the value of
IpInstanceBaseProps.getIpv4() |
IpInstanceBaseProps.Builder |
ipv6(java.lang.String ipv6)
Sets the value of
IpInstanceBaseProps.getIpv6() |
IpInstanceBaseProps.Builder |
port(java.lang.Number port)
Sets the value of
IpInstanceBaseProps.getPort() |
public IpInstanceBaseProps.Builder ipv4(java.lang.String ipv4)
IpInstanceBaseProps.getIpv4()
ipv4
- If the service that you specify contains a template for an A record, the IPv4 address that you want AWS Cloud Map to use for the value of the A record.this
public IpInstanceBaseProps.Builder ipv6(java.lang.String ipv6)
IpInstanceBaseProps.getIpv6()
ipv6
- If the service that you specify contains a template for an AAAA record, the IPv6 address that you want AWS Cloud Map to use for the value of the AAAA record.this
public IpInstanceBaseProps.Builder port(java.lang.Number port)
IpInstanceBaseProps.getPort()
port
- The port on the endpoint that you want AWS Cloud Map to perform health checks on.
This value is also used for
the port value in an SRV record if the service that you specify includes an SRV record. You can also specify a
default port that is applied to all instances in the Service configuration.this
public IpInstanceBaseProps.Builder customAttributes(java.util.Map<java.lang.String,java.lang.String> customAttributes)
BaseInstanceProps.getCustomAttributes()
customAttributes
- Custom attributes of the instance.this
public IpInstanceBaseProps.Builder instanceId(java.lang.String instanceId)
BaseInstanceProps.getInstanceId()
instanceId
- The id of the instance resource.this
public IpInstanceBaseProps build()
IpInstanceBaseProps
java.lang.NullPointerException
- if any required attribute was not provided