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