Class ServiceAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.servicediscovery.ServiceAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceAttributes>
- Enclosing interface:
ServiceAttributes
@Stability(Stable)
public static final class ServiceAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceAttributes>
A builder for
ServiceAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.discoveryType(DiscoveryType discoveryType) Sets the value ofServiceAttributes.getDiscoveryType()dnsRecordType(DnsRecordType dnsRecordType) Sets the value ofServiceAttributes.getDnsRecordType()namespace(INamespace namespace) Sets the value ofServiceAttributes.getNamespace()routingPolicy(RoutingPolicy routingPolicy) Sets the value ofServiceAttributes.getRoutingPolicy()serviceArn(String serviceArn) Sets the value ofServiceAttributes.getServiceArn()Sets the value ofServiceAttributes.getServiceId()serviceName(String serviceName) Sets the value ofServiceAttributes.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
dnsRecordType
Sets the value ofServiceAttributes.getDnsRecordType()- Parameters:
dnsRecordType- the value to be set. This parameter is required.- Returns:
this
-
namespace
Sets the value ofServiceAttributes.getNamespace()- Parameters:
namespace- the value to be set. This parameter is required.- Returns:
this
-
routingPolicy
Sets the value ofServiceAttributes.getRoutingPolicy()- Parameters:
routingPolicy- the value to be set. This parameter is required.- Returns:
this
-
serviceArn
Sets the value ofServiceAttributes.getServiceArn()- Parameters:
serviceArn- the value to be set. This parameter is required.- Returns:
this
-
serviceId
Sets the value ofServiceAttributes.getServiceId()- Parameters:
serviceId- the value to be set. This parameter is required.- Returns:
this
-
serviceName
Sets the value ofServiceAttributes.getServiceName()- Parameters:
serviceName- the value to be set. This parameter is required.- Returns:
this
-
discoveryType
Sets the value ofServiceAttributes.getDiscoveryType()- Parameters:
discoveryType- the value to be set.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceAttributes>- Returns:
- a new instance of
ServiceAttributes - Throws:
NullPointerException- if any required attribute was not provided
-