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