Class ExternalServiceAttributes.Builder
java.lang.Object
software.amazon.awscdk.services.ecs.ExternalServiceAttributes.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ExternalServiceAttributes>
- Enclosing interface:
- ExternalServiceAttributes
@Stability(Stable)
public static final class ExternalServiceAttributes.Builder
extends Object
implements software.amazon.jsii.Builder<ExternalServiceAttributes>
A builder for
ExternalServiceAttributes-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.Sets the value ofExternalServiceAttributes.getCluster()serviceArn(String serviceArn) Sets the value ofExternalServiceAttributes.getServiceArn()serviceName(String serviceName) Sets the value ofExternalServiceAttributes.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
cluster
Sets the value ofExternalServiceAttributes.getCluster()- Parameters:
cluster- The cluster that hosts the service. This parameter is required.- Returns:
this
-
serviceArn
Sets the value ofExternalServiceAttributes.getServiceArn()- Parameters:
serviceArn- The service ARN.- Returns:
this
-
serviceName
Sets the value ofExternalServiceAttributes.getServiceName()- Parameters:
serviceName- The name of the service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ExternalServiceAttributes>- Returns:
- a new instance of
ExternalServiceAttributes - Throws:
NullPointerException- if any required attribute was not provided
-