Class CfnServiceFunctionProps.Builder
java.lang.Object
software.amazon.awscdk.services.resiliencehubv2.CfnServiceFunctionProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnServiceFunctionProps>
- Enclosing interface:
CfnServiceFunctionProps
@Stability(Stable)
public static final class CfnServiceFunctionProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnServiceFunctionProps>
A builder for
CfnServiceFunctionProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.criticality(String criticality) Sets the value ofCfnServiceFunctionProps.getCriticality()description(String description) Sets the value ofCfnServiceFunctionProps.getDescription()Sets the value ofCfnServiceFunctionProps.getName()serviceArn(String serviceArn) Sets the value ofCfnServiceFunctionProps.getServiceArn()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
criticality
Sets the value ofCfnServiceFunctionProps.getCriticality()- Parameters:
criticality- The criticality of the service function. This parameter is required.- Returns:
this
-
name
Sets the value ofCfnServiceFunctionProps.getName()- Parameters:
name- The name of the service function. This parameter is required.- Returns:
this
-
serviceArn
Sets the value ofCfnServiceFunctionProps.getServiceArn()- Parameters:
serviceArn- The ARN of the parent service. This parameter is required.- Returns:
this
-
description
Sets the value ofCfnServiceFunctionProps.getDescription()- Parameters:
description- The description of the service function.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnServiceFunctionProps>- Returns:
- a new instance of
CfnServiceFunctionProps - Throws:
NullPointerException- if any required attribute was not provided
-