@Stability(value=Stable) public static final class Ec2ServiceAttributes.Builder extends Object implements software.amazon.jsii.Builder<Ec2ServiceAttributes>
Ec2ServiceAttributes
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Ec2ServiceAttributes |
build()
Builds the configured instance.
|
Ec2ServiceAttributes.Builder |
cluster(ICluster cluster)
Sets the value of
Ec2ServiceAttributes.getCluster() |
Ec2ServiceAttributes.Builder |
serviceArn(String serviceArn)
Sets the value of
Ec2ServiceAttributes.getServiceArn() |
Ec2ServiceAttributes.Builder |
serviceName(String serviceName)
Sets the value of
Ec2ServiceAttributes.getServiceName() |
@Stability(value=Stable) public Ec2ServiceAttributes.Builder cluster(ICluster cluster)
Ec2ServiceAttributes.getCluster()
cluster
- The cluster that hosts the service. This parameter is required.this
@Stability(value=Stable) public Ec2ServiceAttributes.Builder serviceArn(String serviceArn)
Ec2ServiceAttributes.getServiceArn()
serviceArn
- The service ARN.this
@Stability(value=Stable) public Ec2ServiceAttributes.Builder serviceName(String serviceName)
Ec2ServiceAttributes.getServiceName()
serviceName
- The name of the service.this
@Stability(value=Stable) public Ec2ServiceAttributes build()
build
in interface software.amazon.jsii.Builder<Ec2ServiceAttributes>
Ec2ServiceAttributes
NullPointerException
- if any required attribute was not providedCopyright © 2021. All rights reserved.