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