Class SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder
java.lang.Object
software.amazon.awscdk.mixins.preview.services.synthetics.events.SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps>
- Enclosing interface:
SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps
@Stability(Experimental)
public static final class SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder
extends Object
implements software.amazon.jsii.Builder<SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps>
-
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(SyntheticsCanaryTestRunFailure.CanaryRunTimeline canaryRunTimeline) eventMetadata(AWSEventMetadataProps eventMetadata) stateReason(List<String> stateReason) testRunStatus(List<String> testRunStatus)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accountId
@Stability(Experimental) public SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder accountId(List<String> accountId) - 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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder artifactLocation(List<String> artifactLocation) Sets the value ofSyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder canaryId(List<String> canaryId) - 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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder canaryName(List<String> canaryName) Sets the value ofSyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder canaryRunId(List<String> canaryRunId) Sets the value ofSyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder canaryRunTimeline(SyntheticsCanaryTestRunFailure.CanaryRunTimeline canaryRunTimeline) Sets the value ofSyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder eventMetadata(AWSEventMetadataProps eventMetadata) Sets the value ofSyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.getEventMetadata()- Parameters:
eventMetadata- EventBridge event metadata.- Returns:
this
-
message
@Stability(Experimental) public SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder message(List<String> message) - 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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder stateReason(List<String> stateReason) Sets the value ofSyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.Builder testRunStatus(List<String> testRunStatus) Sets the value ofSyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps.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 SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps>- Returns:
- a new instance of
SyntheticsCanaryTestRunFailure.SyntheticsCanaryTestRunFailureProps - Throws:
NullPointerException- if any required attribute was not provided
-