Class ContainerReference.Builder
java.lang.Object
software.amazon.awscdk.services.lightsail.ContainerReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ContainerReference>
- Enclosing interface:
ContainerReference
@Stability(Stable)
public static final class ContainerReference.Builder
extends Object
implements software.amazon.jsii.Builder<ContainerReference>
A builder for
ContainerReference
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.containerArn
(String containerArn) Sets the value ofContainerReference.getContainerArn()
serviceName
(String serviceName) Sets the value ofContainerReference.getServiceName()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
containerArn
Sets the value ofContainerReference.getContainerArn()
- Parameters:
containerArn
- The ARN of the Container resource. This parameter is required.- Returns:
this
-
serviceName
Sets the value ofContainerReference.getServiceName()
- Parameters:
serviceName
- The ServiceName of the Container resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<ContainerReference>
- Returns:
- a new instance of
ContainerReference
- Throws:
NullPointerException
- if any required attribute was not provided
-