software.amazon.awssdk.services.sfn.model.HistoryEvent Maven / Gradle / Ivy
Show all versions of stepfunctions Show documentation
/*
* Copyright 2012-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
* the License. A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
* and limitations under the License.
*/
package software.amazon.awssdk.services.sfn.model;
import java.time.Instant;
import java.util.Objects;
import java.util.Optional;
import java.util.function.Consumer;
import javax.annotation.Generated;
import software.amazon.awssdk.annotations.SdkInternalApi;
import software.amazon.awssdk.core.protocol.ProtocolMarshaller;
import software.amazon.awssdk.core.protocol.StructuredPojo;
import software.amazon.awssdk.services.sfn.transform.HistoryEventMarshaller;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*
* Contains details about the events of an execution.
*
*/
@Generated("software.amazon.awssdk:codegen")
public class HistoryEvent implements StructuredPojo, ToCopyableBuilder {
private final Instant timestamp;
private final String type;
private final Long id;
private final Long previousEventId;
private final ActivityFailedEventDetails activityFailedEventDetails;
private final ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails;
private final ActivityScheduledEventDetails activityScheduledEventDetails;
private final ActivityStartedEventDetails activityStartedEventDetails;
private final ActivitySucceededEventDetails activitySucceededEventDetails;
private final ActivityTimedOutEventDetails activityTimedOutEventDetails;
private final ExecutionFailedEventDetails executionFailedEventDetails;
private final ExecutionStartedEventDetails executionStartedEventDetails;
private final ExecutionSucceededEventDetails executionSucceededEventDetails;
private final ExecutionAbortedEventDetails executionAbortedEventDetails;
private final ExecutionTimedOutEventDetails executionTimedOutEventDetails;
private final LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails;
private final LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails;
private final LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails;
private final LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails;
private final LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails;
private final LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails;
private final StateEnteredEventDetails stateEnteredEventDetails;
private final StateExitedEventDetails stateExitedEventDetails;
private HistoryEvent(BuilderImpl builder) {
this.timestamp = builder.timestamp;
this.type = builder.type;
this.id = builder.id;
this.previousEventId = builder.previousEventId;
this.activityFailedEventDetails = builder.activityFailedEventDetails;
this.activityScheduleFailedEventDetails = builder.activityScheduleFailedEventDetails;
this.activityScheduledEventDetails = builder.activityScheduledEventDetails;
this.activityStartedEventDetails = builder.activityStartedEventDetails;
this.activitySucceededEventDetails = builder.activitySucceededEventDetails;
this.activityTimedOutEventDetails = builder.activityTimedOutEventDetails;
this.executionFailedEventDetails = builder.executionFailedEventDetails;
this.executionStartedEventDetails = builder.executionStartedEventDetails;
this.executionSucceededEventDetails = builder.executionSucceededEventDetails;
this.executionAbortedEventDetails = builder.executionAbortedEventDetails;
this.executionTimedOutEventDetails = builder.executionTimedOutEventDetails;
this.lambdaFunctionFailedEventDetails = builder.lambdaFunctionFailedEventDetails;
this.lambdaFunctionScheduleFailedEventDetails = builder.lambdaFunctionScheduleFailedEventDetails;
this.lambdaFunctionScheduledEventDetails = builder.lambdaFunctionScheduledEventDetails;
this.lambdaFunctionStartFailedEventDetails = builder.lambdaFunctionStartFailedEventDetails;
this.lambdaFunctionSucceededEventDetails = builder.lambdaFunctionSucceededEventDetails;
this.lambdaFunctionTimedOutEventDetails = builder.lambdaFunctionTimedOutEventDetails;
this.stateEnteredEventDetails = builder.stateEnteredEventDetails;
this.stateExitedEventDetails = builder.stateExitedEventDetails;
}
/**
*
* The date the event occurred.
*
*
* @return The date the event occurred.
*/
public Instant timestamp() {
return timestamp;
}
/**
*
* The type of the event.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return
* {@link HistoryEventType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #typeString}.
*
*
* @return The type of the event.
* @see HistoryEventType
*/
public HistoryEventType type() {
return HistoryEventType.fromValue(type);
}
/**
*
* The type of the event.
*
*
* If the service returns an enum value that is not available in the current SDK version, {@link #type} will return
* {@link HistoryEventType#UNKNOWN_TO_SDK_VERSION}. The raw value returned by the service is available from
* {@link #typeString}.
*
*
* @return The type of the event.
* @see HistoryEventType
*/
public String typeString() {
return type;
}
/**
*
* The id of the event. Events are numbered sequentially, starting at one.
*
*
* @return The id of the event. Events are numbered sequentially, starting at one.
*/
public Long id() {
return id;
}
/**
*
* The id of the previous event.
*
*
* @return The id of the previous event.
*/
public Long previousEventId() {
return previousEventId;
}
/**
* Returns the value of the ActivityFailedEventDetails property for this object.
*
* @return The value of the ActivityFailedEventDetails property for this object.
*/
public ActivityFailedEventDetails activityFailedEventDetails() {
return activityFailedEventDetails;
}
/**
*
* Contains details about an activity schedule event which failed during an execution.
*
*
* @return Contains details about an activity schedule event which failed during an execution.
*/
public ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails() {
return activityScheduleFailedEventDetails;
}
/**
* Returns the value of the ActivityScheduledEventDetails property for this object.
*
* @return The value of the ActivityScheduledEventDetails property for this object.
*/
public ActivityScheduledEventDetails activityScheduledEventDetails() {
return activityScheduledEventDetails;
}
/**
* Returns the value of the ActivityStartedEventDetails property for this object.
*
* @return The value of the ActivityStartedEventDetails property for this object.
*/
public ActivityStartedEventDetails activityStartedEventDetails() {
return activityStartedEventDetails;
}
/**
* Returns the value of the ActivitySucceededEventDetails property for this object.
*
* @return The value of the ActivitySucceededEventDetails property for this object.
*/
public ActivitySucceededEventDetails activitySucceededEventDetails() {
return activitySucceededEventDetails;
}
/**
* Returns the value of the ActivityTimedOutEventDetails property for this object.
*
* @return The value of the ActivityTimedOutEventDetails property for this object.
*/
public ActivityTimedOutEventDetails activityTimedOutEventDetails() {
return activityTimedOutEventDetails;
}
/**
* Returns the value of the ExecutionFailedEventDetails property for this object.
*
* @return The value of the ExecutionFailedEventDetails property for this object.
*/
public ExecutionFailedEventDetails executionFailedEventDetails() {
return executionFailedEventDetails;
}
/**
* Returns the value of the ExecutionStartedEventDetails property for this object.
*
* @return The value of the ExecutionStartedEventDetails property for this object.
*/
public ExecutionStartedEventDetails executionStartedEventDetails() {
return executionStartedEventDetails;
}
/**
* Returns the value of the ExecutionSucceededEventDetails property for this object.
*
* @return The value of the ExecutionSucceededEventDetails property for this object.
*/
public ExecutionSucceededEventDetails executionSucceededEventDetails() {
return executionSucceededEventDetails;
}
/**
* Returns the value of the ExecutionAbortedEventDetails property for this object.
*
* @return The value of the ExecutionAbortedEventDetails property for this object.
*/
public ExecutionAbortedEventDetails executionAbortedEventDetails() {
return executionAbortedEventDetails;
}
/**
* Returns the value of the ExecutionTimedOutEventDetails property for this object.
*
* @return The value of the ExecutionTimedOutEventDetails property for this object.
*/
public ExecutionTimedOutEventDetails executionTimedOutEventDetails() {
return executionTimedOutEventDetails;
}
/**
* Returns the value of the LambdaFunctionFailedEventDetails property for this object.
*
* @return The value of the LambdaFunctionFailedEventDetails property for this object.
*/
public LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails() {
return lambdaFunctionFailedEventDetails;
}
/**
* Returns the value of the LambdaFunctionScheduleFailedEventDetails property for this object.
*
* @return The value of the LambdaFunctionScheduleFailedEventDetails property for this object.
*/
public LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails() {
return lambdaFunctionScheduleFailedEventDetails;
}
/**
* Returns the value of the LambdaFunctionScheduledEventDetails property for this object.
*
* @return The value of the LambdaFunctionScheduledEventDetails property for this object.
*/
public LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails() {
return lambdaFunctionScheduledEventDetails;
}
/**
*
* Contains details about a lambda function which failed to start during an execution.
*
*
* @return Contains details about a lambda function which failed to start during an execution.
*/
public LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails() {
return lambdaFunctionStartFailedEventDetails;
}
/**
*
* Contains details about a lambda function which terminated successfully during an execution.
*
*
* @return Contains details about a lambda function which terminated successfully during an execution.
*/
public LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails() {
return lambdaFunctionSucceededEventDetails;
}
/**
* Returns the value of the LambdaFunctionTimedOutEventDetails property for this object.
*
* @return The value of the LambdaFunctionTimedOutEventDetails property for this object.
*/
public LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails() {
return lambdaFunctionTimedOutEventDetails;
}
/**
* Returns the value of the StateEnteredEventDetails property for this object.
*
* @return The value of the StateEnteredEventDetails property for this object.
*/
public StateEnteredEventDetails stateEnteredEventDetails() {
return stateEnteredEventDetails;
}
/**
* Returns the value of the StateExitedEventDetails property for this object.
*
* @return The value of the StateExitedEventDetails property for this object.
*/
public StateExitedEventDetails stateExitedEventDetails() {
return stateExitedEventDetails;
}
@Override
public Builder toBuilder() {
return new BuilderImpl(this);
}
public static Builder builder() {
return new BuilderImpl();
}
public static Class extends Builder> serializableBuilderClass() {
return BuilderImpl.class;
}
@Override
public int hashCode() {
int hashCode = 1;
hashCode = 31 * hashCode + Objects.hashCode(timestamp());
hashCode = 31 * hashCode + Objects.hashCode(typeString());
hashCode = 31 * hashCode + Objects.hashCode(id());
hashCode = 31 * hashCode + Objects.hashCode(previousEventId());
hashCode = 31 * hashCode + Objects.hashCode(activityFailedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(activityScheduleFailedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(activityScheduledEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(activityStartedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(activitySucceededEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(activityTimedOutEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(executionFailedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(executionStartedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(executionSucceededEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(executionAbortedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(executionTimedOutEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(lambdaFunctionFailedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(lambdaFunctionScheduleFailedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(lambdaFunctionScheduledEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(lambdaFunctionStartFailedEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(lambdaFunctionSucceededEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(lambdaFunctionTimedOutEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(stateEnteredEventDetails());
hashCode = 31 * hashCode + Objects.hashCode(stateExitedEventDetails());
return hashCode;
}
@Override
public boolean equals(Object obj) {
if (this == obj) {
return true;
}
if (obj == null) {
return false;
}
if (!(obj instanceof HistoryEvent)) {
return false;
}
HistoryEvent other = (HistoryEvent) obj;
return Objects.equals(timestamp(), other.timestamp()) && Objects.equals(typeString(), other.typeString())
&& Objects.equals(id(), other.id()) && Objects.equals(previousEventId(), other.previousEventId())
&& Objects.equals(activityFailedEventDetails(), other.activityFailedEventDetails())
&& Objects.equals(activityScheduleFailedEventDetails(), other.activityScheduleFailedEventDetails())
&& Objects.equals(activityScheduledEventDetails(), other.activityScheduledEventDetails())
&& Objects.equals(activityStartedEventDetails(), other.activityStartedEventDetails())
&& Objects.equals(activitySucceededEventDetails(), other.activitySucceededEventDetails())
&& Objects.equals(activityTimedOutEventDetails(), other.activityTimedOutEventDetails())
&& Objects.equals(executionFailedEventDetails(), other.executionFailedEventDetails())
&& Objects.equals(executionStartedEventDetails(), other.executionStartedEventDetails())
&& Objects.equals(executionSucceededEventDetails(), other.executionSucceededEventDetails())
&& Objects.equals(executionAbortedEventDetails(), other.executionAbortedEventDetails())
&& Objects.equals(executionTimedOutEventDetails(), other.executionTimedOutEventDetails())
&& Objects.equals(lambdaFunctionFailedEventDetails(), other.lambdaFunctionFailedEventDetails())
&& Objects.equals(lambdaFunctionScheduleFailedEventDetails(), other.lambdaFunctionScheduleFailedEventDetails())
&& Objects.equals(lambdaFunctionScheduledEventDetails(), other.lambdaFunctionScheduledEventDetails())
&& Objects.equals(lambdaFunctionStartFailedEventDetails(), other.lambdaFunctionStartFailedEventDetails())
&& Objects.equals(lambdaFunctionSucceededEventDetails(), other.lambdaFunctionSucceededEventDetails())
&& Objects.equals(lambdaFunctionTimedOutEventDetails(), other.lambdaFunctionTimedOutEventDetails())
&& Objects.equals(stateEnteredEventDetails(), other.stateEnteredEventDetails())
&& Objects.equals(stateExitedEventDetails(), other.stateExitedEventDetails());
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder("{");
if (timestamp() != null) {
sb.append("Timestamp: ").append(timestamp()).append(",");
}
if (typeString() != null) {
sb.append("Type: ").append(typeString()).append(",");
}
if (id() != null) {
sb.append("Id: ").append(id()).append(",");
}
if (previousEventId() != null) {
sb.append("PreviousEventId: ").append(previousEventId()).append(",");
}
if (activityFailedEventDetails() != null) {
sb.append("ActivityFailedEventDetails: ").append(activityFailedEventDetails()).append(",");
}
if (activityScheduleFailedEventDetails() != null) {
sb.append("ActivityScheduleFailedEventDetails: ").append(activityScheduleFailedEventDetails()).append(",");
}
if (activityScheduledEventDetails() != null) {
sb.append("ActivityScheduledEventDetails: ").append(activityScheduledEventDetails()).append(",");
}
if (activityStartedEventDetails() != null) {
sb.append("ActivityStartedEventDetails: ").append(activityStartedEventDetails()).append(",");
}
if (activitySucceededEventDetails() != null) {
sb.append("ActivitySucceededEventDetails: ").append(activitySucceededEventDetails()).append(",");
}
if (activityTimedOutEventDetails() != null) {
sb.append("ActivityTimedOutEventDetails: ").append(activityTimedOutEventDetails()).append(",");
}
if (executionFailedEventDetails() != null) {
sb.append("ExecutionFailedEventDetails: ").append(executionFailedEventDetails()).append(",");
}
if (executionStartedEventDetails() != null) {
sb.append("ExecutionStartedEventDetails: ").append(executionStartedEventDetails()).append(",");
}
if (executionSucceededEventDetails() != null) {
sb.append("ExecutionSucceededEventDetails: ").append(executionSucceededEventDetails()).append(",");
}
if (executionAbortedEventDetails() != null) {
sb.append("ExecutionAbortedEventDetails: ").append(executionAbortedEventDetails()).append(",");
}
if (executionTimedOutEventDetails() != null) {
sb.append("ExecutionTimedOutEventDetails: ").append(executionTimedOutEventDetails()).append(",");
}
if (lambdaFunctionFailedEventDetails() != null) {
sb.append("LambdaFunctionFailedEventDetails: ").append(lambdaFunctionFailedEventDetails()).append(",");
}
if (lambdaFunctionScheduleFailedEventDetails() != null) {
sb.append("LambdaFunctionScheduleFailedEventDetails: ").append(lambdaFunctionScheduleFailedEventDetails())
.append(",");
}
if (lambdaFunctionScheduledEventDetails() != null) {
sb.append("LambdaFunctionScheduledEventDetails: ").append(lambdaFunctionScheduledEventDetails()).append(",");
}
if (lambdaFunctionStartFailedEventDetails() != null) {
sb.append("LambdaFunctionStartFailedEventDetails: ").append(lambdaFunctionStartFailedEventDetails()).append(",");
}
if (lambdaFunctionSucceededEventDetails() != null) {
sb.append("LambdaFunctionSucceededEventDetails: ").append(lambdaFunctionSucceededEventDetails()).append(",");
}
if (lambdaFunctionTimedOutEventDetails() != null) {
sb.append("LambdaFunctionTimedOutEventDetails: ").append(lambdaFunctionTimedOutEventDetails()).append(",");
}
if (stateEnteredEventDetails() != null) {
sb.append("StateEnteredEventDetails: ").append(stateEnteredEventDetails()).append(",");
}
if (stateExitedEventDetails() != null) {
sb.append("StateExitedEventDetails: ").append(stateExitedEventDetails()).append(",");
}
if (sb.length() > 1) {
sb.setLength(sb.length() - 1);
}
sb.append("}");
return sb.toString();
}
public Optional getValueForField(String fieldName, Class clazz) {
switch (fieldName) {
case "timestamp":
return Optional.of(clazz.cast(timestamp()));
case "type":
return Optional.of(clazz.cast(typeString()));
case "id":
return Optional.of(clazz.cast(id()));
case "previousEventId":
return Optional.of(clazz.cast(previousEventId()));
case "activityFailedEventDetails":
return Optional.of(clazz.cast(activityFailedEventDetails()));
case "activityScheduleFailedEventDetails":
return Optional.of(clazz.cast(activityScheduleFailedEventDetails()));
case "activityScheduledEventDetails":
return Optional.of(clazz.cast(activityScheduledEventDetails()));
case "activityStartedEventDetails":
return Optional.of(clazz.cast(activityStartedEventDetails()));
case "activitySucceededEventDetails":
return Optional.of(clazz.cast(activitySucceededEventDetails()));
case "activityTimedOutEventDetails":
return Optional.of(clazz.cast(activityTimedOutEventDetails()));
case "executionFailedEventDetails":
return Optional.of(clazz.cast(executionFailedEventDetails()));
case "executionStartedEventDetails":
return Optional.of(clazz.cast(executionStartedEventDetails()));
case "executionSucceededEventDetails":
return Optional.of(clazz.cast(executionSucceededEventDetails()));
case "executionAbortedEventDetails":
return Optional.of(clazz.cast(executionAbortedEventDetails()));
case "executionTimedOutEventDetails":
return Optional.of(clazz.cast(executionTimedOutEventDetails()));
case "lambdaFunctionFailedEventDetails":
return Optional.of(clazz.cast(lambdaFunctionFailedEventDetails()));
case "lambdaFunctionScheduleFailedEventDetails":
return Optional.of(clazz.cast(lambdaFunctionScheduleFailedEventDetails()));
case "lambdaFunctionScheduledEventDetails":
return Optional.of(clazz.cast(lambdaFunctionScheduledEventDetails()));
case "lambdaFunctionStartFailedEventDetails":
return Optional.of(clazz.cast(lambdaFunctionStartFailedEventDetails()));
case "lambdaFunctionSucceededEventDetails":
return Optional.of(clazz.cast(lambdaFunctionSucceededEventDetails()));
case "lambdaFunctionTimedOutEventDetails":
return Optional.of(clazz.cast(lambdaFunctionTimedOutEventDetails()));
case "stateEnteredEventDetails":
return Optional.of(clazz.cast(stateEnteredEventDetails()));
case "stateExitedEventDetails":
return Optional.of(clazz.cast(stateExitedEventDetails()));
default:
return Optional.empty();
}
}
@SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
HistoryEventMarshaller.getInstance().marshall(this, protocolMarshaller);
}
public interface Builder extends CopyableBuilder {
/**
*
* The date the event occurred.
*
*
* @param timestamp
* The date the event occurred.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder timestamp(Instant timestamp);
/**
*
* The type of the event.
*
*
* @param type
* The type of the event.
* @see HistoryEventType
* @return Returns a reference to this object so that method calls can be chained together.
* @see HistoryEventType
*/
Builder type(String type);
/**
*
* The type of the event.
*
*
* @param type
* The type of the event.
* @see HistoryEventType
* @return Returns a reference to this object so that method calls can be chained together.
* @see HistoryEventType
*/
Builder type(HistoryEventType type);
/**
*
* The id of the event. Events are numbered sequentially, starting at one.
*
*
* @param id
* The id of the event. Events are numbered sequentially, starting at one.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder id(Long id);
/**
*
* The id of the previous event.
*
*
* @param previousEventId
* The id of the previous event.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder previousEventId(Long previousEventId);
/**
* Sets the value of the ActivityFailedEventDetails property for this object.
*
* @param activityFailedEventDetails
* The new value for the ActivityFailedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityFailedEventDetails(ActivityFailedEventDetails activityFailedEventDetails);
/**
* Sets the value of the ActivityFailedEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ActivityFailedEventDetails.Builder} avoiding the
* need to create one manually via {@link ActivityFailedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ActivityFailedEventDetails.Builder#build()} is called immediately
* and its result is passed to {@link #activityFailedEventDetails(ActivityFailedEventDetails)}.
*
* @param activityFailedEventDetails
* a consumer that will call methods on {@link ActivityFailedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #activityFailedEventDetails(ActivityFailedEventDetails)
*/
default Builder activityFailedEventDetails(Consumer activityFailedEventDetails) {
return activityFailedEventDetails(ActivityFailedEventDetails.builder().apply(activityFailedEventDetails).build());
}
/**
*
* Contains details about an activity schedule event which failed during an execution.
*
*
* @param activityScheduleFailedEventDetails
* Contains details about an activity schedule event which failed during an execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityScheduleFailedEventDetails(ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails);
/**
*
* Contains details about an activity schedule event which failed during an execution.
*
* This is a convenience that creates an instance of the {@link ActivityScheduleFailedEventDetails.Builder}
* avoiding the need to create one manually via {@link ActivityScheduleFailedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ActivityScheduleFailedEventDetails.Builder#build()} is called
* immediately and its result is passed to
* {@link #activityScheduleFailedEventDetails(ActivityScheduleFailedEventDetails)}.
*
* @param activityScheduleFailedEventDetails
* a consumer that will call methods on {@link ActivityScheduleFailedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #activityScheduleFailedEventDetails(ActivityScheduleFailedEventDetails)
*/
default Builder activityScheduleFailedEventDetails(
Consumer activityScheduleFailedEventDetails) {
return activityScheduleFailedEventDetails(ActivityScheduleFailedEventDetails.builder()
.apply(activityScheduleFailedEventDetails).build());
}
/**
* Sets the value of the ActivityScheduledEventDetails property for this object.
*
* @param activityScheduledEventDetails
* The new value for the ActivityScheduledEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityScheduledEventDetails(ActivityScheduledEventDetails activityScheduledEventDetails);
/**
* Sets the value of the ActivityScheduledEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ActivityScheduledEventDetails.Builder} avoiding
* the need to create one manually via {@link ActivityScheduledEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ActivityScheduledEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #activityScheduledEventDetails(ActivityScheduledEventDetails)}
* .
*
* @param activityScheduledEventDetails
* a consumer that will call methods on {@link ActivityScheduledEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #activityScheduledEventDetails(ActivityScheduledEventDetails)
*/
default Builder activityScheduledEventDetails(
Consumer activityScheduledEventDetails) {
return activityScheduledEventDetails(ActivityScheduledEventDetails.builder().apply(activityScheduledEventDetails)
.build());
}
/**
* Sets the value of the ActivityStartedEventDetails property for this object.
*
* @param activityStartedEventDetails
* The new value for the ActivityStartedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityStartedEventDetails(ActivityStartedEventDetails activityStartedEventDetails);
/**
* Sets the value of the ActivityStartedEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ActivityStartedEventDetails.Builder} avoiding
* the need to create one manually via {@link ActivityStartedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ActivityStartedEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #activityStartedEventDetails(ActivityStartedEventDetails)}.
*
* @param activityStartedEventDetails
* a consumer that will call methods on {@link ActivityStartedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #activityStartedEventDetails(ActivityStartedEventDetails)
*/
default Builder activityStartedEventDetails(Consumer activityStartedEventDetails) {
return activityStartedEventDetails(ActivityStartedEventDetails.builder().apply(activityStartedEventDetails).build());
}
/**
* Sets the value of the ActivitySucceededEventDetails property for this object.
*
* @param activitySucceededEventDetails
* The new value for the ActivitySucceededEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activitySucceededEventDetails(ActivitySucceededEventDetails activitySucceededEventDetails);
/**
* Sets the value of the ActivitySucceededEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ActivitySucceededEventDetails.Builder} avoiding
* the need to create one manually via {@link ActivitySucceededEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ActivitySucceededEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #activitySucceededEventDetails(ActivitySucceededEventDetails)}
* .
*
* @param activitySucceededEventDetails
* a consumer that will call methods on {@link ActivitySucceededEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #activitySucceededEventDetails(ActivitySucceededEventDetails)
*/
default Builder activitySucceededEventDetails(
Consumer activitySucceededEventDetails) {
return activitySucceededEventDetails(ActivitySucceededEventDetails.builder().apply(activitySucceededEventDetails)
.build());
}
/**
* Sets the value of the ActivityTimedOutEventDetails property for this object.
*
* @param activityTimedOutEventDetails
* The new value for the ActivityTimedOutEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityTimedOutEventDetails(ActivityTimedOutEventDetails activityTimedOutEventDetails);
/**
* Sets the value of the ActivityTimedOutEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ActivityTimedOutEventDetails.Builder} avoiding
* the need to create one manually via {@link ActivityTimedOutEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ActivityTimedOutEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #activityTimedOutEventDetails(ActivityTimedOutEventDetails)}.
*
* @param activityTimedOutEventDetails
* a consumer that will call methods on {@link ActivityTimedOutEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #activityTimedOutEventDetails(ActivityTimedOutEventDetails)
*/
default Builder activityTimedOutEventDetails(Consumer activityTimedOutEventDetails) {
return activityTimedOutEventDetails(ActivityTimedOutEventDetails.builder().apply(activityTimedOutEventDetails)
.build());
}
/**
* Sets the value of the ExecutionFailedEventDetails property for this object.
*
* @param executionFailedEventDetails
* The new value for the ExecutionFailedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionFailedEventDetails(ExecutionFailedEventDetails executionFailedEventDetails);
/**
* Sets the value of the ExecutionFailedEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ExecutionFailedEventDetails.Builder} avoiding
* the need to create one manually via {@link ExecutionFailedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ExecutionFailedEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #executionFailedEventDetails(ExecutionFailedEventDetails)}.
*
* @param executionFailedEventDetails
* a consumer that will call methods on {@link ExecutionFailedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #executionFailedEventDetails(ExecutionFailedEventDetails)
*/
default Builder executionFailedEventDetails(Consumer executionFailedEventDetails) {
return executionFailedEventDetails(ExecutionFailedEventDetails.builder().apply(executionFailedEventDetails).build());
}
/**
* Sets the value of the ExecutionStartedEventDetails property for this object.
*
* @param executionStartedEventDetails
* The new value for the ExecutionStartedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionStartedEventDetails(ExecutionStartedEventDetails executionStartedEventDetails);
/**
* Sets the value of the ExecutionStartedEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ExecutionStartedEventDetails.Builder} avoiding
* the need to create one manually via {@link ExecutionStartedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ExecutionStartedEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #executionStartedEventDetails(ExecutionStartedEventDetails)}.
*
* @param executionStartedEventDetails
* a consumer that will call methods on {@link ExecutionStartedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #executionStartedEventDetails(ExecutionStartedEventDetails)
*/
default Builder executionStartedEventDetails(Consumer executionStartedEventDetails) {
return executionStartedEventDetails(ExecutionStartedEventDetails.builder().apply(executionStartedEventDetails)
.build());
}
/**
* Sets the value of the ExecutionSucceededEventDetails property for this object.
*
* @param executionSucceededEventDetails
* The new value for the ExecutionSucceededEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionSucceededEventDetails(ExecutionSucceededEventDetails executionSucceededEventDetails);
/**
* Sets the value of the ExecutionSucceededEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ExecutionSucceededEventDetails.Builder} avoiding
* the need to create one manually via {@link ExecutionSucceededEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ExecutionSucceededEventDetails.Builder#build()} is called
* immediately and its result is passed to
* {@link #executionSucceededEventDetails(ExecutionSucceededEventDetails)}.
*
* @param executionSucceededEventDetails
* a consumer that will call methods on {@link ExecutionSucceededEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #executionSucceededEventDetails(ExecutionSucceededEventDetails)
*/
default Builder executionSucceededEventDetails(
Consumer executionSucceededEventDetails) {
return executionSucceededEventDetails(ExecutionSucceededEventDetails.builder().apply(executionSucceededEventDetails)
.build());
}
/**
* Sets the value of the ExecutionAbortedEventDetails property for this object.
*
* @param executionAbortedEventDetails
* The new value for the ExecutionAbortedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionAbortedEventDetails(ExecutionAbortedEventDetails executionAbortedEventDetails);
/**
* Sets the value of the ExecutionAbortedEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ExecutionAbortedEventDetails.Builder} avoiding
* the need to create one manually via {@link ExecutionAbortedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ExecutionAbortedEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #executionAbortedEventDetails(ExecutionAbortedEventDetails)}.
*
* @param executionAbortedEventDetails
* a consumer that will call methods on {@link ExecutionAbortedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #executionAbortedEventDetails(ExecutionAbortedEventDetails)
*/
default Builder executionAbortedEventDetails(Consumer executionAbortedEventDetails) {
return executionAbortedEventDetails(ExecutionAbortedEventDetails.builder().apply(executionAbortedEventDetails)
.build());
}
/**
* Sets the value of the ExecutionTimedOutEventDetails property for this object.
*
* @param executionTimedOutEventDetails
* The new value for the ExecutionTimedOutEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionTimedOutEventDetails(ExecutionTimedOutEventDetails executionTimedOutEventDetails);
/**
* Sets the value of the ExecutionTimedOutEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link ExecutionTimedOutEventDetails.Builder} avoiding
* the need to create one manually via {@link ExecutionTimedOutEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link ExecutionTimedOutEventDetails.Builder#build()} is called
* immediately and its result is passed to {@link #executionTimedOutEventDetails(ExecutionTimedOutEventDetails)}
* .
*
* @param executionTimedOutEventDetails
* a consumer that will call methods on {@link ExecutionTimedOutEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #executionTimedOutEventDetails(ExecutionTimedOutEventDetails)
*/
default Builder executionTimedOutEventDetails(
Consumer executionTimedOutEventDetails) {
return executionTimedOutEventDetails(ExecutionTimedOutEventDetails.builder().apply(executionTimedOutEventDetails)
.build());
}
/**
* Sets the value of the LambdaFunctionFailedEventDetails property for this object.
*
* @param lambdaFunctionFailedEventDetails
* The new value for the LambdaFunctionFailedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails);
/**
* Sets the value of the LambdaFunctionFailedEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link LambdaFunctionFailedEventDetails.Builder}
* avoiding the need to create one manually via {@link LambdaFunctionFailedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link LambdaFunctionFailedEventDetails.Builder#build()} is called
* immediately and its result is passed to
* {@link #lambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails)}.
*
* @param lambdaFunctionFailedEventDetails
* a consumer that will call methods on {@link LambdaFunctionFailedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #lambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails)
*/
default Builder lambdaFunctionFailedEventDetails(
Consumer lambdaFunctionFailedEventDetails) {
return lambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails.builder()
.apply(lambdaFunctionFailedEventDetails).build());
}
/**
* Sets the value of the LambdaFunctionScheduleFailedEventDetails property for this object.
*
* @param lambdaFunctionScheduleFailedEventDetails
* The new value for the LambdaFunctionScheduleFailedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionScheduleFailedEventDetails(
LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails);
/**
* Sets the value of the LambdaFunctionScheduleFailedEventDetails property for this object.
*
* This is a convenience that creates an instance of the
* {@link LambdaFunctionScheduleFailedEventDetails.Builder} avoiding the need to create one manually via
* {@link LambdaFunctionScheduleFailedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link LambdaFunctionScheduleFailedEventDetails.Builder#build()} is
* called immediately and its result is passed to
* {@link #lambdaFunctionScheduleFailedEventDetails(LambdaFunctionScheduleFailedEventDetails)}.
*
* @param lambdaFunctionScheduleFailedEventDetails
* a consumer that will call methods on {@link LambdaFunctionScheduleFailedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #lambdaFunctionScheduleFailedEventDetails(LambdaFunctionScheduleFailedEventDetails)
*/
default Builder lambdaFunctionScheduleFailedEventDetails(
Consumer lambdaFunctionScheduleFailedEventDetails) {
return lambdaFunctionScheduleFailedEventDetails(LambdaFunctionScheduleFailedEventDetails.builder()
.apply(lambdaFunctionScheduleFailedEventDetails).build());
}
/**
* Sets the value of the LambdaFunctionScheduledEventDetails property for this object.
*
* @param lambdaFunctionScheduledEventDetails
* The new value for the LambdaFunctionScheduledEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionScheduledEventDetails(LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails);
/**
* Sets the value of the LambdaFunctionScheduledEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link LambdaFunctionScheduledEventDetails.Builder}
* avoiding the need to create one manually via {@link LambdaFunctionScheduledEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link LambdaFunctionScheduledEventDetails.Builder#build()} is called
* immediately and its result is passed to
* {@link #lambdaFunctionScheduledEventDetails(LambdaFunctionScheduledEventDetails)}.
*
* @param lambdaFunctionScheduledEventDetails
* a consumer that will call methods on {@link LambdaFunctionScheduledEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #lambdaFunctionScheduledEventDetails(LambdaFunctionScheduledEventDetails)
*/
default Builder lambdaFunctionScheduledEventDetails(
Consumer lambdaFunctionScheduledEventDetails) {
return lambdaFunctionScheduledEventDetails(LambdaFunctionScheduledEventDetails.builder()
.apply(lambdaFunctionScheduledEventDetails).build());
}
/**
*
* Contains details about a lambda function which failed to start during an execution.
*
*
* @param lambdaFunctionStartFailedEventDetails
* Contains details about a lambda function which failed to start during an execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionStartFailedEventDetails(LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails);
/**
*
* Contains details about a lambda function which failed to start during an execution.
*
* This is a convenience that creates an instance of the {@link LambdaFunctionStartFailedEventDetails.Builder}
* avoiding the need to create one manually via {@link LambdaFunctionStartFailedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link LambdaFunctionStartFailedEventDetails.Builder#build()} is called
* immediately and its result is passed to
* {@link #lambdaFunctionStartFailedEventDetails(LambdaFunctionStartFailedEventDetails)}.
*
* @param lambdaFunctionStartFailedEventDetails
* a consumer that will call methods on {@link LambdaFunctionStartFailedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #lambdaFunctionStartFailedEventDetails(LambdaFunctionStartFailedEventDetails)
*/
default Builder lambdaFunctionStartFailedEventDetails(
Consumer lambdaFunctionStartFailedEventDetails) {
return lambdaFunctionStartFailedEventDetails(LambdaFunctionStartFailedEventDetails.builder()
.apply(lambdaFunctionStartFailedEventDetails).build());
}
/**
*
* Contains details about a lambda function which terminated successfully during an execution.
*
*
* @param lambdaFunctionSucceededEventDetails
* Contains details about a lambda function which terminated successfully during an execution.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionSucceededEventDetails(LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails);
/**
*
* Contains details about a lambda function which terminated successfully during an execution.
*
* This is a convenience that creates an instance of the {@link LambdaFunctionSucceededEventDetails.Builder}
* avoiding the need to create one manually via {@link LambdaFunctionSucceededEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link LambdaFunctionSucceededEventDetails.Builder#build()} is called
* immediately and its result is passed to
* {@link #lambdaFunctionSucceededEventDetails(LambdaFunctionSucceededEventDetails)}.
*
* @param lambdaFunctionSucceededEventDetails
* a consumer that will call methods on {@link LambdaFunctionSucceededEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #lambdaFunctionSucceededEventDetails(LambdaFunctionSucceededEventDetails)
*/
default Builder lambdaFunctionSucceededEventDetails(
Consumer lambdaFunctionSucceededEventDetails) {
return lambdaFunctionSucceededEventDetails(LambdaFunctionSucceededEventDetails.builder()
.apply(lambdaFunctionSucceededEventDetails).build());
}
/**
* Sets the value of the LambdaFunctionTimedOutEventDetails property for this object.
*
* @param lambdaFunctionTimedOutEventDetails
* The new value for the LambdaFunctionTimedOutEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionTimedOutEventDetails(LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails);
/**
* Sets the value of the LambdaFunctionTimedOutEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link LambdaFunctionTimedOutEventDetails.Builder}
* avoiding the need to create one manually via {@link LambdaFunctionTimedOutEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link LambdaFunctionTimedOutEventDetails.Builder#build()} is called
* immediately and its result is passed to
* {@link #lambdaFunctionTimedOutEventDetails(LambdaFunctionTimedOutEventDetails)}.
*
* @param lambdaFunctionTimedOutEventDetails
* a consumer that will call methods on {@link LambdaFunctionTimedOutEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #lambdaFunctionTimedOutEventDetails(LambdaFunctionTimedOutEventDetails)
*/
default Builder lambdaFunctionTimedOutEventDetails(
Consumer lambdaFunctionTimedOutEventDetails) {
return lambdaFunctionTimedOutEventDetails(LambdaFunctionTimedOutEventDetails.builder()
.apply(lambdaFunctionTimedOutEventDetails).build());
}
/**
* Sets the value of the StateEnteredEventDetails property for this object.
*
* @param stateEnteredEventDetails
* The new value for the StateEnteredEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder stateEnteredEventDetails(StateEnteredEventDetails stateEnteredEventDetails);
/**
* Sets the value of the StateEnteredEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link StateEnteredEventDetails.Builder} avoiding the
* need to create one manually via {@link StateEnteredEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link StateEnteredEventDetails.Builder#build()} is called immediately
* and its result is passed to {@link #stateEnteredEventDetails(StateEnteredEventDetails)}.
*
* @param stateEnteredEventDetails
* a consumer that will call methods on {@link StateEnteredEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #stateEnteredEventDetails(StateEnteredEventDetails)
*/
default Builder stateEnteredEventDetails(Consumer stateEnteredEventDetails) {
return stateEnteredEventDetails(StateEnteredEventDetails.builder().apply(stateEnteredEventDetails).build());
}
/**
* Sets the value of the StateExitedEventDetails property for this object.
*
* @param stateExitedEventDetails
* The new value for the StateExitedEventDetails property for this object.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder stateExitedEventDetails(StateExitedEventDetails stateExitedEventDetails);
/**
* Sets the value of the StateExitedEventDetails property for this object.
*
* This is a convenience that creates an instance of the {@link StateExitedEventDetails.Builder} avoiding the
* need to create one manually via {@link StateExitedEventDetails#builder()}.
*
* When the {@link Consumer} completes, {@link StateExitedEventDetails.Builder#build()} is called immediately
* and its result is passed to {@link #stateExitedEventDetails(StateExitedEventDetails)}.
*
* @param stateExitedEventDetails
* a consumer that will call methods on {@link StateExitedEventDetails.Builder}
* @return Returns a reference to this object so that method calls can be chained together.
* @see #stateExitedEventDetails(StateExitedEventDetails)
*/
default Builder stateExitedEventDetails(Consumer stateExitedEventDetails) {
return stateExitedEventDetails(StateExitedEventDetails.builder().apply(stateExitedEventDetails).build());
}
}
static final class BuilderImpl implements Builder {
private Instant timestamp;
private String type;
private Long id;
private Long previousEventId;
private ActivityFailedEventDetails activityFailedEventDetails;
private ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails;
private ActivityScheduledEventDetails activityScheduledEventDetails;
private ActivityStartedEventDetails activityStartedEventDetails;
private ActivitySucceededEventDetails activitySucceededEventDetails;
private ActivityTimedOutEventDetails activityTimedOutEventDetails;
private ExecutionFailedEventDetails executionFailedEventDetails;
private ExecutionStartedEventDetails executionStartedEventDetails;
private ExecutionSucceededEventDetails executionSucceededEventDetails;
private ExecutionAbortedEventDetails executionAbortedEventDetails;
private ExecutionTimedOutEventDetails executionTimedOutEventDetails;
private LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails;
private LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails;
private LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails;
private LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails;
private LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails;
private LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails;
private StateEnteredEventDetails stateEnteredEventDetails;
private StateExitedEventDetails stateExitedEventDetails;
private BuilderImpl() {
}
private BuilderImpl(HistoryEvent model) {
timestamp(model.timestamp);
type(model.type);
id(model.id);
previousEventId(model.previousEventId);
activityFailedEventDetails(model.activityFailedEventDetails);
activityScheduleFailedEventDetails(model.activityScheduleFailedEventDetails);
activityScheduledEventDetails(model.activityScheduledEventDetails);
activityStartedEventDetails(model.activityStartedEventDetails);
activitySucceededEventDetails(model.activitySucceededEventDetails);
activityTimedOutEventDetails(model.activityTimedOutEventDetails);
executionFailedEventDetails(model.executionFailedEventDetails);
executionStartedEventDetails(model.executionStartedEventDetails);
executionSucceededEventDetails(model.executionSucceededEventDetails);
executionAbortedEventDetails(model.executionAbortedEventDetails);
executionTimedOutEventDetails(model.executionTimedOutEventDetails);
lambdaFunctionFailedEventDetails(model.lambdaFunctionFailedEventDetails);
lambdaFunctionScheduleFailedEventDetails(model.lambdaFunctionScheduleFailedEventDetails);
lambdaFunctionScheduledEventDetails(model.lambdaFunctionScheduledEventDetails);
lambdaFunctionStartFailedEventDetails(model.lambdaFunctionStartFailedEventDetails);
lambdaFunctionSucceededEventDetails(model.lambdaFunctionSucceededEventDetails);
lambdaFunctionTimedOutEventDetails(model.lambdaFunctionTimedOutEventDetails);
stateEnteredEventDetails(model.stateEnteredEventDetails);
stateExitedEventDetails(model.stateExitedEventDetails);
}
public final Instant getTimestamp() {
return timestamp;
}
@Override
public final Builder timestamp(Instant timestamp) {
this.timestamp = timestamp;
return this;
}
public final void setTimestamp(Instant timestamp) {
this.timestamp = timestamp;
}
public final String getType() {
return type;
}
@Override
public final Builder type(String type) {
this.type = type;
return this;
}
@Override
public final Builder type(HistoryEventType type) {
this.type(type.toString());
return this;
}
public final void setType(String type) {
this.type = type;
}
public final Long getId() {
return id;
}
@Override
public final Builder id(Long id) {
this.id = id;
return this;
}
public final void setId(Long id) {
this.id = id;
}
public final Long getPreviousEventId() {
return previousEventId;
}
@Override
public final Builder previousEventId(Long previousEventId) {
this.previousEventId = previousEventId;
return this;
}
public final void setPreviousEventId(Long previousEventId) {
this.previousEventId = previousEventId;
}
public final ActivityFailedEventDetails.Builder getActivityFailedEventDetails() {
return activityFailedEventDetails != null ? activityFailedEventDetails.toBuilder() : null;
}
@Override
public final Builder activityFailedEventDetails(ActivityFailedEventDetails activityFailedEventDetails) {
this.activityFailedEventDetails = activityFailedEventDetails;
return this;
}
public final void setActivityFailedEventDetails(ActivityFailedEventDetails.BuilderImpl activityFailedEventDetails) {
this.activityFailedEventDetails = activityFailedEventDetails != null ? activityFailedEventDetails.build() : null;
}
public final ActivityScheduleFailedEventDetails.Builder getActivityScheduleFailedEventDetails() {
return activityScheduleFailedEventDetails != null ? activityScheduleFailedEventDetails.toBuilder() : null;
}
@Override
public final Builder activityScheduleFailedEventDetails(
ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails) {
this.activityScheduleFailedEventDetails = activityScheduleFailedEventDetails;
return this;
}
public final void setActivityScheduleFailedEventDetails(
ActivityScheduleFailedEventDetails.BuilderImpl activityScheduleFailedEventDetails) {
this.activityScheduleFailedEventDetails = activityScheduleFailedEventDetails != null ? activityScheduleFailedEventDetails
.build() : null;
}
public final ActivityScheduledEventDetails.Builder getActivityScheduledEventDetails() {
return activityScheduledEventDetails != null ? activityScheduledEventDetails.toBuilder() : null;
}
@Override
public final Builder activityScheduledEventDetails(ActivityScheduledEventDetails activityScheduledEventDetails) {
this.activityScheduledEventDetails = activityScheduledEventDetails;
return this;
}
public final void setActivityScheduledEventDetails(ActivityScheduledEventDetails.BuilderImpl activityScheduledEventDetails) {
this.activityScheduledEventDetails = activityScheduledEventDetails != null ? activityScheduledEventDetails.build()
: null;
}
public final ActivityStartedEventDetails.Builder getActivityStartedEventDetails() {
return activityStartedEventDetails != null ? activityStartedEventDetails.toBuilder() : null;
}
@Override
public final Builder activityStartedEventDetails(ActivityStartedEventDetails activityStartedEventDetails) {
this.activityStartedEventDetails = activityStartedEventDetails;
return this;
}
public final void setActivityStartedEventDetails(ActivityStartedEventDetails.BuilderImpl activityStartedEventDetails) {
this.activityStartedEventDetails = activityStartedEventDetails != null ? activityStartedEventDetails.build() : null;
}
public final ActivitySucceededEventDetails.Builder getActivitySucceededEventDetails() {
return activitySucceededEventDetails != null ? activitySucceededEventDetails.toBuilder() : null;
}
@Override
public final Builder activitySucceededEventDetails(ActivitySucceededEventDetails activitySucceededEventDetails) {
this.activitySucceededEventDetails = activitySucceededEventDetails;
return this;
}
public final void setActivitySucceededEventDetails(ActivitySucceededEventDetails.BuilderImpl activitySucceededEventDetails) {
this.activitySucceededEventDetails = activitySucceededEventDetails != null ? activitySucceededEventDetails.build()
: null;
}
public final ActivityTimedOutEventDetails.Builder getActivityTimedOutEventDetails() {
return activityTimedOutEventDetails != null ? activityTimedOutEventDetails.toBuilder() : null;
}
@Override
public final Builder activityTimedOutEventDetails(ActivityTimedOutEventDetails activityTimedOutEventDetails) {
this.activityTimedOutEventDetails = activityTimedOutEventDetails;
return this;
}
public final void setActivityTimedOutEventDetails(ActivityTimedOutEventDetails.BuilderImpl activityTimedOutEventDetails) {
this.activityTimedOutEventDetails = activityTimedOutEventDetails != null ? activityTimedOutEventDetails.build()
: null;
}
public final ExecutionFailedEventDetails.Builder getExecutionFailedEventDetails() {
return executionFailedEventDetails != null ? executionFailedEventDetails.toBuilder() : null;
}
@Override
public final Builder executionFailedEventDetails(ExecutionFailedEventDetails executionFailedEventDetails) {
this.executionFailedEventDetails = executionFailedEventDetails;
return this;
}
public final void setExecutionFailedEventDetails(ExecutionFailedEventDetails.BuilderImpl executionFailedEventDetails) {
this.executionFailedEventDetails = executionFailedEventDetails != null ? executionFailedEventDetails.build() : null;
}
public final ExecutionStartedEventDetails.Builder getExecutionStartedEventDetails() {
return executionStartedEventDetails != null ? executionStartedEventDetails.toBuilder() : null;
}
@Override
public final Builder executionStartedEventDetails(ExecutionStartedEventDetails executionStartedEventDetails) {
this.executionStartedEventDetails = executionStartedEventDetails;
return this;
}
public final void setExecutionStartedEventDetails(ExecutionStartedEventDetails.BuilderImpl executionStartedEventDetails) {
this.executionStartedEventDetails = executionStartedEventDetails != null ? executionStartedEventDetails.build()
: null;
}
public final ExecutionSucceededEventDetails.Builder getExecutionSucceededEventDetails() {
return executionSucceededEventDetails != null ? executionSucceededEventDetails.toBuilder() : null;
}
@Override
public final Builder executionSucceededEventDetails(ExecutionSucceededEventDetails executionSucceededEventDetails) {
this.executionSucceededEventDetails = executionSucceededEventDetails;
return this;
}
public final void setExecutionSucceededEventDetails(
ExecutionSucceededEventDetails.BuilderImpl executionSucceededEventDetails) {
this.executionSucceededEventDetails = executionSucceededEventDetails != null ? executionSucceededEventDetails.build()
: null;
}
public final ExecutionAbortedEventDetails.Builder getExecutionAbortedEventDetails() {
return executionAbortedEventDetails != null ? executionAbortedEventDetails.toBuilder() : null;
}
@Override
public final Builder executionAbortedEventDetails(ExecutionAbortedEventDetails executionAbortedEventDetails) {
this.executionAbortedEventDetails = executionAbortedEventDetails;
return this;
}
public final void setExecutionAbortedEventDetails(ExecutionAbortedEventDetails.BuilderImpl executionAbortedEventDetails) {
this.executionAbortedEventDetails = executionAbortedEventDetails != null ? executionAbortedEventDetails.build()
: null;
}
public final ExecutionTimedOutEventDetails.Builder getExecutionTimedOutEventDetails() {
return executionTimedOutEventDetails != null ? executionTimedOutEventDetails.toBuilder() : null;
}
@Override
public final Builder executionTimedOutEventDetails(ExecutionTimedOutEventDetails executionTimedOutEventDetails) {
this.executionTimedOutEventDetails = executionTimedOutEventDetails;
return this;
}
public final void setExecutionTimedOutEventDetails(ExecutionTimedOutEventDetails.BuilderImpl executionTimedOutEventDetails) {
this.executionTimedOutEventDetails = executionTimedOutEventDetails != null ? executionTimedOutEventDetails.build()
: null;
}
public final LambdaFunctionFailedEventDetails.Builder getLambdaFunctionFailedEventDetails() {
return lambdaFunctionFailedEventDetails != null ? lambdaFunctionFailedEventDetails.toBuilder() : null;
}
@Override
public final Builder lambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails) {
this.lambdaFunctionFailedEventDetails = lambdaFunctionFailedEventDetails;
return this;
}
public final void setLambdaFunctionFailedEventDetails(
LambdaFunctionFailedEventDetails.BuilderImpl lambdaFunctionFailedEventDetails) {
this.lambdaFunctionFailedEventDetails = lambdaFunctionFailedEventDetails != null ? lambdaFunctionFailedEventDetails
.build() : null;
}
public final LambdaFunctionScheduleFailedEventDetails.Builder getLambdaFunctionScheduleFailedEventDetails() {
return lambdaFunctionScheduleFailedEventDetails != null ? lambdaFunctionScheduleFailedEventDetails.toBuilder() : null;
}
@Override
public final Builder lambdaFunctionScheduleFailedEventDetails(
LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails) {
this.lambdaFunctionScheduleFailedEventDetails = lambdaFunctionScheduleFailedEventDetails;
return this;
}
public final void setLambdaFunctionScheduleFailedEventDetails(
LambdaFunctionScheduleFailedEventDetails.BuilderImpl lambdaFunctionScheduleFailedEventDetails) {
this.lambdaFunctionScheduleFailedEventDetails = lambdaFunctionScheduleFailedEventDetails != null ? lambdaFunctionScheduleFailedEventDetails
.build() : null;
}
public final LambdaFunctionScheduledEventDetails.Builder getLambdaFunctionScheduledEventDetails() {
return lambdaFunctionScheduledEventDetails != null ? lambdaFunctionScheduledEventDetails.toBuilder() : null;
}
@Override
public final Builder lambdaFunctionScheduledEventDetails(
LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails) {
this.lambdaFunctionScheduledEventDetails = lambdaFunctionScheduledEventDetails;
return this;
}
public final void setLambdaFunctionScheduledEventDetails(
LambdaFunctionScheduledEventDetails.BuilderImpl lambdaFunctionScheduledEventDetails) {
this.lambdaFunctionScheduledEventDetails = lambdaFunctionScheduledEventDetails != null ? lambdaFunctionScheduledEventDetails
.build() : null;
}
public final LambdaFunctionStartFailedEventDetails.Builder getLambdaFunctionStartFailedEventDetails() {
return lambdaFunctionStartFailedEventDetails != null ? lambdaFunctionStartFailedEventDetails.toBuilder() : null;
}
@Override
public final Builder lambdaFunctionStartFailedEventDetails(
LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails) {
this.lambdaFunctionStartFailedEventDetails = lambdaFunctionStartFailedEventDetails;
return this;
}
public final void setLambdaFunctionStartFailedEventDetails(
LambdaFunctionStartFailedEventDetails.BuilderImpl lambdaFunctionStartFailedEventDetails) {
this.lambdaFunctionStartFailedEventDetails = lambdaFunctionStartFailedEventDetails != null ? lambdaFunctionStartFailedEventDetails
.build() : null;
}
public final LambdaFunctionSucceededEventDetails.Builder getLambdaFunctionSucceededEventDetails() {
return lambdaFunctionSucceededEventDetails != null ? lambdaFunctionSucceededEventDetails.toBuilder() : null;
}
@Override
public final Builder lambdaFunctionSucceededEventDetails(
LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails) {
this.lambdaFunctionSucceededEventDetails = lambdaFunctionSucceededEventDetails;
return this;
}
public final void setLambdaFunctionSucceededEventDetails(
LambdaFunctionSucceededEventDetails.BuilderImpl lambdaFunctionSucceededEventDetails) {
this.lambdaFunctionSucceededEventDetails = lambdaFunctionSucceededEventDetails != null ? lambdaFunctionSucceededEventDetails
.build() : null;
}
public final LambdaFunctionTimedOutEventDetails.Builder getLambdaFunctionTimedOutEventDetails() {
return lambdaFunctionTimedOutEventDetails != null ? lambdaFunctionTimedOutEventDetails.toBuilder() : null;
}
@Override
public final Builder lambdaFunctionTimedOutEventDetails(
LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails) {
this.lambdaFunctionTimedOutEventDetails = lambdaFunctionTimedOutEventDetails;
return this;
}
public final void setLambdaFunctionTimedOutEventDetails(
LambdaFunctionTimedOutEventDetails.BuilderImpl lambdaFunctionTimedOutEventDetails) {
this.lambdaFunctionTimedOutEventDetails = lambdaFunctionTimedOutEventDetails != null ? lambdaFunctionTimedOutEventDetails
.build() : null;
}
public final StateEnteredEventDetails.Builder getStateEnteredEventDetails() {
return stateEnteredEventDetails != null ? stateEnteredEventDetails.toBuilder() : null;
}
@Override
public final Builder stateEnteredEventDetails(StateEnteredEventDetails stateEnteredEventDetails) {
this.stateEnteredEventDetails = stateEnteredEventDetails;
return this;
}
public final void setStateEnteredEventDetails(StateEnteredEventDetails.BuilderImpl stateEnteredEventDetails) {
this.stateEnteredEventDetails = stateEnteredEventDetails != null ? stateEnteredEventDetails.build() : null;
}
public final StateExitedEventDetails.Builder getStateExitedEventDetails() {
return stateExitedEventDetails != null ? stateExitedEventDetails.toBuilder() : null;
}
@Override
public final Builder stateExitedEventDetails(StateExitedEventDetails stateExitedEventDetails) {
this.stateExitedEventDetails = stateExitedEventDetails;
return this;
}
public final void setStateExitedEventDetails(StateExitedEventDetails.BuilderImpl stateExitedEventDetails) {
this.stateExitedEventDetails = stateExitedEventDetails != null ? stateExitedEventDetails.build() : null;
}
@Override
public HistoryEvent build() {
return new HistoryEvent(this);
}
}
}