Class SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.synthetics.events.SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps>
- Enclosing interface:
SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps
@Stability(Experimental)
public static final class SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder
extends Object
implements software.amazon.jsii.Builder<SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionartifactLocation(List<String> artifactLocation) build()Builds the configured instance.canaryName(List<String> canaryName) canaryRunId(List<String> canaryRunId) canaryRunTimeline(SyntheticsCanaryTestRunSuccessful.CanaryRunTimeline canaryRunTimeline) eventMetadata(AWSEventMetadataProps eventMetadata) stateReason(List<String> stateReason) testRunStatus(List<String> testRunStatus)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder accountId(List<String> accountId) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getAccountId()- Parameters:
accountId- account-id property. Specify an array of string values to match this event if the actual value of account-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
artifactLocation
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder artifactLocation(List<String> artifactLocation) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getArtifactLocation()- Parameters:
artifactLocation- artifact-location property. Specify an array of string values to match this event if the actual value of artifact-location is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
canaryId
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder canaryId(List<String> canaryId) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getCanaryId()- Parameters:
canaryId- canary-id property. Specify an array of string values to match this event if the actual value of canary-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
canaryName
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder canaryName(List<String> canaryName) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getCanaryName()- Parameters:
canaryName- canary-name property. Specify an array of string values to match this event if the actual value of canary-name is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
canaryRunId
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder canaryRunId(List<String> canaryRunId) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getCanaryRunId()- Parameters:
canaryRunId- canary-run-id property. Specify an array of string values to match this event if the actual value of canary-run-id is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
canaryRunTimeline
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder canaryRunTimeline(SyntheticsCanaryTestRunSuccessful.CanaryRunTimeline canaryRunTimeline) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getCanaryRunTimeline()- Parameters:
canaryRunTimeline- canary-run-timeline property. Specify an array of string values to match this event if the actual value of canary-run-timeline is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
eventMetadata
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
message
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder message(List<String> message) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getMessage()- Parameters:
message- message property. Specify an array of string values to match this event if the actual value of message is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
stateReason
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder stateReason(List<String> stateReason) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getStateReason()- Parameters:
stateReason- state-reason property. Specify an array of string values to match this event if the actual value of state-reason is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
testRunStatus
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.Builder testRunStatus(List<String> testRunStatus) Sets the value ofSyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps.getTestRunStatus()- Parameters:
testRunStatus- test-run-status property. Specify an array of string values to match this event if the actual value of test-run-status is one of the values in the array. Use one of the constructors on theaws_events.Matchfor more advanced matching options.- Returns:
this
-
build
@Stability(Experimental) public SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps>- Returns:
- a new instance of
SyntheticsCanaryTestRunSuccessful.SyntheticsCanaryTestRunSuccessfulProps - Throws:
NullPointerException- if any required attribute was not provided
-