"use strict";var _a;Object.defineProperty(exports,"__esModule",{value:!0}),exports.StateMachineFragment=void 0;const jsiiDeprecationWarnings=require("../../.warnings.jsii.js"),JSII_RTTI_SYMBOL_1=Symbol.for("jsii.rtti"),constructs_1=require("constructs"),chain_1=require("./chain"),parallel_1=require("./states/parallel"),state_1=require("./states/state");class StateMachineFragment extends constructs_1.Construct{get id(){return this.node.id}prefixStates(prefix){return state_1.State.prefixStates(this,prefix||`${this.id}: `),this}toSingleState(options={}){jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_SingleStateOptions(options);const stateId=options.stateId||this.id;return this.prefixStates(options.prefixStates||`${stateId}: `),new parallel_1.Parallel(this,stateId,options).branch(this)}next(next){return jsiiDeprecationWarnings.aws_cdk_lib_aws_stepfunctions_IChainable(next),chain_1.Chain.start(this).next(next)}}exports.StateMachineFragment=StateMachineFragment,_a=JSII_RTTI_SYMBOL_1,StateMachineFragment[_a]={fqn:"aws-cdk-lib.aws_stepfunctions.StateMachineFragment",version:"2.13.0"};
//# sourceMappingURL=state-machine-fragment.js.map
