Class ServiceFunctionReference.Builder
java.lang.Object
software.amazon.awscdk.interfaces.resiliencehubv2.ServiceFunctionReference.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<ServiceFunctionReference>
- Enclosing interface:
ServiceFunctionReference
@Stability(Stable)
public static final class ServiceFunctionReference.Builder
extends Object
implements software.amazon.jsii.Builder<ServiceFunctionReference>
A builder for
ServiceFunctionReference-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.serviceArn(String serviceArn) Sets the value ofServiceFunctionReference.getServiceArn()serviceFunctionId(String serviceFunctionId) Sets the value ofServiceFunctionReference.getServiceFunctionId()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
serviceArn
Sets the value ofServiceFunctionReference.getServiceArn()- Parameters:
serviceArn- The ServiceArn of the ServiceFunction resource. This parameter is required.- Returns:
this
-
serviceFunctionId
@Stability(Stable) public ServiceFunctionReference.Builder serviceFunctionId(String serviceFunctionId) Sets the value ofServiceFunctionReference.getServiceFunctionId()- Parameters:
serviceFunctionId- The ServiceFunctionId of the ServiceFunction resource. This parameter is required.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<ServiceFunctionReference>- Returns:
- a new instance of
ServiceFunctionReference - Throws:
NullPointerException- if any required attribute was not provided
-