Class ServiceReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.refactorspaces.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 TypeMethodDescriptionapplicationIdentifier(String applicationIdentifier) Sets the value ofServiceReference.getApplicationIdentifier()build()Builds the configured instance.environmentIdentifier(String environmentIdentifier) Sets the value ofServiceReference.getEnvironmentIdentifier()serviceArn(String serviceArn) Sets the value ofServiceReference.getServiceArn()serviceIdentifier(String serviceIdentifier) Sets the value ofServiceReference.getServiceIdentifier()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
applicationIdentifier
@Stability(Stable) public ServiceReference.Builder applicationIdentifier(String applicationIdentifier) Sets the value ofServiceReference.getApplicationIdentifier()- Parameters:
applicationIdentifier- The ApplicationIdentifier of the Service resource. This parameter is required.- Returns:
this
-
environmentIdentifier
@Stability(Stable) public ServiceReference.Builder environmentIdentifier(String environmentIdentifier) Sets the value ofServiceReference.getEnvironmentIdentifier()- Parameters:
environmentIdentifier- The EnvironmentIdentifier of the Service resource. This parameter is required.- Returns:
this
-
serviceArn
Sets the value ofServiceReference.getServiceArn()- Parameters:
serviceArn- The ARN of the Service resource. This parameter is required.- Returns:
this
-
serviceIdentifier
Sets the value ofServiceReference.getServiceIdentifier()- Parameters:
serviceIdentifier- The ServiceIdentifier of the Service resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceReference>- Returns:
- a new instance of
ServiceReference - Throws:
NullPointerException- if any required attribute was not provided
-