software.amazon.awssdk.services.sfn.model.HistoryEvent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of stepfunctions Show documentation
Show all versions of stepfunctions Show documentation
The AWS Java SDK for AWS Step Functions module holds the client classes that are used for communicating
with AWS Step Functions.
/*
* 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.util.Date;
import javax.annotation.Generated;
import software.amazon.awssdk.annotation.SdkInternalApi;
import software.amazon.awssdk.protocol.ProtocolMarshaller;
import software.amazon.awssdk.protocol.StructuredPojo;
import software.amazon.awssdk.runtime.StandardMemberCopier;
import software.amazon.awssdk.services.sfn.transform.HistoryEventMarshaller;
import software.amazon.awssdk.utils.builder.CopyableBuilder;
import software.amazon.awssdk.utils.builder.ToCopyableBuilder;
/**
*/
@Generated("software.amazon.awssdk:codegen")
public class HistoryEvent implements StructuredPojo, ToCopyableBuilder {
private final Date 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 occured.
*
*
* @return The date the event occured.
*/
public Date timestamp() {
return timestamp;
}
/**
*
* The type of the event.
*
*
* @return The type of the event.
* @see HistoryEventType
*/
public String type() {
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;
}
/**
*
* @return
*/
public ActivityFailedEventDetails activityFailedEventDetails() {
return activityFailedEventDetails;
}
/**
*
* @return
*/
public ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails() {
return activityScheduleFailedEventDetails;
}
/**
*
* @return
*/
public ActivityScheduledEventDetails activityScheduledEventDetails() {
return activityScheduledEventDetails;
}
/**
*
* @return
*/
public ActivityStartedEventDetails activityStartedEventDetails() {
return activityStartedEventDetails;
}
/**
*
* @return
*/
public ActivitySucceededEventDetails activitySucceededEventDetails() {
return activitySucceededEventDetails;
}
/**
*
* @return
*/
public ActivityTimedOutEventDetails activityTimedOutEventDetails() {
return activityTimedOutEventDetails;
}
/**
*
* @return
*/
public ExecutionFailedEventDetails executionFailedEventDetails() {
return executionFailedEventDetails;
}
/**
*
* @return
*/
public ExecutionStartedEventDetails executionStartedEventDetails() {
return executionStartedEventDetails;
}
/**
*
* @return
*/
public ExecutionSucceededEventDetails executionSucceededEventDetails() {
return executionSucceededEventDetails;
}
/**
*
* @return
*/
public ExecutionAbortedEventDetails executionAbortedEventDetails() {
return executionAbortedEventDetails;
}
/**
*
* @return
*/
public ExecutionTimedOutEventDetails executionTimedOutEventDetails() {
return executionTimedOutEventDetails;
}
/**
*
* @return
*/
public LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails() {
return lambdaFunctionFailedEventDetails;
}
/**
*
* @return
*/
public LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails() {
return lambdaFunctionScheduleFailedEventDetails;
}
/**
*
* @return
*/
public LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails() {
return lambdaFunctionScheduledEventDetails;
}
/**
*
* @return
*/
public LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails() {
return lambdaFunctionStartFailedEventDetails;
}
/**
*
* @return
*/
public LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails() {
return lambdaFunctionSucceededEventDetails;
}
/**
*
* @return
*/
public LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails() {
return lambdaFunctionTimedOutEventDetails;
}
/**
*
* @return
*/
public StateEnteredEventDetails stateEnteredEventDetails() {
return stateEnteredEventDetails;
}
/**
*
* @return
*/
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 + ((timestamp() == null) ? 0 : timestamp().hashCode());
hashCode = 31 * hashCode + ((type() == null) ? 0 : type().hashCode());
hashCode = 31 * hashCode + ((id() == null) ? 0 : id().hashCode());
hashCode = 31 * hashCode + ((previousEventId() == null) ? 0 : previousEventId().hashCode());
hashCode = 31 * hashCode + ((activityFailedEventDetails() == null) ? 0 : activityFailedEventDetails().hashCode());
hashCode = 31 * hashCode
+ ((activityScheduleFailedEventDetails() == null) ? 0 : activityScheduleFailedEventDetails().hashCode());
hashCode = 31 * hashCode + ((activityScheduledEventDetails() == null) ? 0 : activityScheduledEventDetails().hashCode());
hashCode = 31 * hashCode + ((activityStartedEventDetails() == null) ? 0 : activityStartedEventDetails().hashCode());
hashCode = 31 * hashCode + ((activitySucceededEventDetails() == null) ? 0 : activitySucceededEventDetails().hashCode());
hashCode = 31 * hashCode + ((activityTimedOutEventDetails() == null) ? 0 : activityTimedOutEventDetails().hashCode());
hashCode = 31 * hashCode + ((executionFailedEventDetails() == null) ? 0 : executionFailedEventDetails().hashCode());
hashCode = 31 * hashCode + ((executionStartedEventDetails() == null) ? 0 : executionStartedEventDetails().hashCode());
hashCode = 31 * hashCode + ((executionSucceededEventDetails() == null) ? 0 : executionSucceededEventDetails().hashCode());
hashCode = 31 * hashCode + ((executionAbortedEventDetails() == null) ? 0 : executionAbortedEventDetails().hashCode());
hashCode = 31 * hashCode + ((executionTimedOutEventDetails() == null) ? 0 : executionTimedOutEventDetails().hashCode());
hashCode = 31 * hashCode
+ ((lambdaFunctionFailedEventDetails() == null) ? 0 : lambdaFunctionFailedEventDetails().hashCode());
hashCode = 31
* hashCode
+ ((lambdaFunctionScheduleFailedEventDetails() == null) ? 0 : lambdaFunctionScheduleFailedEventDetails()
.hashCode());
hashCode = 31 * hashCode
+ ((lambdaFunctionScheduledEventDetails() == null) ? 0 : lambdaFunctionScheduledEventDetails().hashCode());
hashCode = 31 * hashCode
+ ((lambdaFunctionStartFailedEventDetails() == null) ? 0 : lambdaFunctionStartFailedEventDetails().hashCode());
hashCode = 31 * hashCode
+ ((lambdaFunctionSucceededEventDetails() == null) ? 0 : lambdaFunctionSucceededEventDetails().hashCode());
hashCode = 31 * hashCode
+ ((lambdaFunctionTimedOutEventDetails() == null) ? 0 : lambdaFunctionTimedOutEventDetails().hashCode());
hashCode = 31 * hashCode + ((stateEnteredEventDetails() == null) ? 0 : stateEnteredEventDetails().hashCode());
hashCode = 31 * hashCode + ((stateExitedEventDetails() == null) ? 0 : stateExitedEventDetails().hashCode());
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;
if (other.timestamp() == null ^ this.timestamp() == null) {
return false;
}
if (other.timestamp() != null && !other.timestamp().equals(this.timestamp())) {
return false;
}
if (other.type() == null ^ this.type() == null) {
return false;
}
if (other.type() != null && !other.type().equals(this.type())) {
return false;
}
if (other.id() == null ^ this.id() == null) {
return false;
}
if (other.id() != null && !other.id().equals(this.id())) {
return false;
}
if (other.previousEventId() == null ^ this.previousEventId() == null) {
return false;
}
if (other.previousEventId() != null && !other.previousEventId().equals(this.previousEventId())) {
return false;
}
if (other.activityFailedEventDetails() == null ^ this.activityFailedEventDetails() == null) {
return false;
}
if (other.activityFailedEventDetails() != null
&& !other.activityFailedEventDetails().equals(this.activityFailedEventDetails())) {
return false;
}
if (other.activityScheduleFailedEventDetails() == null ^ this.activityScheduleFailedEventDetails() == null) {
return false;
}
if (other.activityScheduleFailedEventDetails() != null
&& !other.activityScheduleFailedEventDetails().equals(this.activityScheduleFailedEventDetails())) {
return false;
}
if (other.activityScheduledEventDetails() == null ^ this.activityScheduledEventDetails() == null) {
return false;
}
if (other.activityScheduledEventDetails() != null
&& !other.activityScheduledEventDetails().equals(this.activityScheduledEventDetails())) {
return false;
}
if (other.activityStartedEventDetails() == null ^ this.activityStartedEventDetails() == null) {
return false;
}
if (other.activityStartedEventDetails() != null
&& !other.activityStartedEventDetails().equals(this.activityStartedEventDetails())) {
return false;
}
if (other.activitySucceededEventDetails() == null ^ this.activitySucceededEventDetails() == null) {
return false;
}
if (other.activitySucceededEventDetails() != null
&& !other.activitySucceededEventDetails().equals(this.activitySucceededEventDetails())) {
return false;
}
if (other.activityTimedOutEventDetails() == null ^ this.activityTimedOutEventDetails() == null) {
return false;
}
if (other.activityTimedOutEventDetails() != null
&& !other.activityTimedOutEventDetails().equals(this.activityTimedOutEventDetails())) {
return false;
}
if (other.executionFailedEventDetails() == null ^ this.executionFailedEventDetails() == null) {
return false;
}
if (other.executionFailedEventDetails() != null
&& !other.executionFailedEventDetails().equals(this.executionFailedEventDetails())) {
return false;
}
if (other.executionStartedEventDetails() == null ^ this.executionStartedEventDetails() == null) {
return false;
}
if (other.executionStartedEventDetails() != null
&& !other.executionStartedEventDetails().equals(this.executionStartedEventDetails())) {
return false;
}
if (other.executionSucceededEventDetails() == null ^ this.executionSucceededEventDetails() == null) {
return false;
}
if (other.executionSucceededEventDetails() != null
&& !other.executionSucceededEventDetails().equals(this.executionSucceededEventDetails())) {
return false;
}
if (other.executionAbortedEventDetails() == null ^ this.executionAbortedEventDetails() == null) {
return false;
}
if (other.executionAbortedEventDetails() != null
&& !other.executionAbortedEventDetails().equals(this.executionAbortedEventDetails())) {
return false;
}
if (other.executionTimedOutEventDetails() == null ^ this.executionTimedOutEventDetails() == null) {
return false;
}
if (other.executionTimedOutEventDetails() != null
&& !other.executionTimedOutEventDetails().equals(this.executionTimedOutEventDetails())) {
return false;
}
if (other.lambdaFunctionFailedEventDetails() == null ^ this.lambdaFunctionFailedEventDetails() == null) {
return false;
}
if (other.lambdaFunctionFailedEventDetails() != null
&& !other.lambdaFunctionFailedEventDetails().equals(this.lambdaFunctionFailedEventDetails())) {
return false;
}
if (other.lambdaFunctionScheduleFailedEventDetails() == null ^ this.lambdaFunctionScheduleFailedEventDetails() == null) {
return false;
}
if (other.lambdaFunctionScheduleFailedEventDetails() != null
&& !other.lambdaFunctionScheduleFailedEventDetails().equals(this.lambdaFunctionScheduleFailedEventDetails())) {
return false;
}
if (other.lambdaFunctionScheduledEventDetails() == null ^ this.lambdaFunctionScheduledEventDetails() == null) {
return false;
}
if (other.lambdaFunctionScheduledEventDetails() != null
&& !other.lambdaFunctionScheduledEventDetails().equals(this.lambdaFunctionScheduledEventDetails())) {
return false;
}
if (other.lambdaFunctionStartFailedEventDetails() == null ^ this.lambdaFunctionStartFailedEventDetails() == null) {
return false;
}
if (other.lambdaFunctionStartFailedEventDetails() != null
&& !other.lambdaFunctionStartFailedEventDetails().equals(this.lambdaFunctionStartFailedEventDetails())) {
return false;
}
if (other.lambdaFunctionSucceededEventDetails() == null ^ this.lambdaFunctionSucceededEventDetails() == null) {
return false;
}
if (other.lambdaFunctionSucceededEventDetails() != null
&& !other.lambdaFunctionSucceededEventDetails().equals(this.lambdaFunctionSucceededEventDetails())) {
return false;
}
if (other.lambdaFunctionTimedOutEventDetails() == null ^ this.lambdaFunctionTimedOutEventDetails() == null) {
return false;
}
if (other.lambdaFunctionTimedOutEventDetails() != null
&& !other.lambdaFunctionTimedOutEventDetails().equals(this.lambdaFunctionTimedOutEventDetails())) {
return false;
}
if (other.stateEnteredEventDetails() == null ^ this.stateEnteredEventDetails() == null) {
return false;
}
if (other.stateEnteredEventDetails() != null && !other.stateEnteredEventDetails().equals(this.stateEnteredEventDetails())) {
return false;
}
if (other.stateExitedEventDetails() == null ^ this.stateExitedEventDetails() == null) {
return false;
}
if (other.stateExitedEventDetails() != null && !other.stateExitedEventDetails().equals(this.stateExitedEventDetails())) {
return false;
}
return true;
}
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (timestamp() != null) {
sb.append("Timestamp: ").append(timestamp()).append(",");
}
if (type() != null) {
sb.append("Type: ").append(type()).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(",");
}
sb.append("}");
return sb.toString();
}
@SdkInternalApi
@Override
public void marshall(ProtocolMarshaller protocolMarshaller) {
HistoryEventMarshaller.getInstance().marshall(this, protocolMarshaller);
}
public interface Builder extends CopyableBuilder {
/**
*
* The date the event occured.
*
*
* @param timestamp
* The date the event occured.
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder timestamp(Date timestamp);
/**
*
* The type of the event.
*
*
* @param type
* The type of the event.
* @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.
* @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);
/**
*
* @param activityFailedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityFailedEventDetails(ActivityFailedEventDetails activityFailedEventDetails);
/**
*
* @param activityScheduleFailedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityScheduleFailedEventDetails(ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails);
/**
*
* @param activityScheduledEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityScheduledEventDetails(ActivityScheduledEventDetails activityScheduledEventDetails);
/**
*
* @param activityStartedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityStartedEventDetails(ActivityStartedEventDetails activityStartedEventDetails);
/**
*
* @param activitySucceededEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activitySucceededEventDetails(ActivitySucceededEventDetails activitySucceededEventDetails);
/**
*
* @param activityTimedOutEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder activityTimedOutEventDetails(ActivityTimedOutEventDetails activityTimedOutEventDetails);
/**
*
* @param executionFailedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionFailedEventDetails(ExecutionFailedEventDetails executionFailedEventDetails);
/**
*
* @param executionStartedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionStartedEventDetails(ExecutionStartedEventDetails executionStartedEventDetails);
/**
*
* @param executionSucceededEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionSucceededEventDetails(ExecutionSucceededEventDetails executionSucceededEventDetails);
/**
*
* @param executionAbortedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionAbortedEventDetails(ExecutionAbortedEventDetails executionAbortedEventDetails);
/**
*
* @param executionTimedOutEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder executionTimedOutEventDetails(ExecutionTimedOutEventDetails executionTimedOutEventDetails);
/**
*
* @param lambdaFunctionFailedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails);
/**
*
* @param lambdaFunctionScheduleFailedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionScheduleFailedEventDetails(
LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails);
/**
*
* @param lambdaFunctionScheduledEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionScheduledEventDetails(LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails);
/**
*
* @param lambdaFunctionStartFailedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionStartFailedEventDetails(LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails);
/**
*
* @param lambdaFunctionSucceededEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionSucceededEventDetails(LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails);
/**
*
* @param lambdaFunctionTimedOutEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder lambdaFunctionTimedOutEventDetails(LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails);
/**
*
* @param stateEnteredEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder stateEnteredEventDetails(StateEnteredEventDetails stateEnteredEventDetails);
/**
*
* @param stateExitedEventDetails
* @return Returns a reference to this object so that method calls can be chained together.
*/
Builder stateExitedEventDetails(StateExitedEventDetails stateExitedEventDetails);
}
private static final class BuilderImpl implements Builder {
private Date 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) {
setTimestamp(model.timestamp);
setType(model.type);
setId(model.id);
setPreviousEventId(model.previousEventId);
setActivityFailedEventDetails(model.activityFailedEventDetails);
setActivityScheduleFailedEventDetails(model.activityScheduleFailedEventDetails);
setActivityScheduledEventDetails(model.activityScheduledEventDetails);
setActivityStartedEventDetails(model.activityStartedEventDetails);
setActivitySucceededEventDetails(model.activitySucceededEventDetails);
setActivityTimedOutEventDetails(model.activityTimedOutEventDetails);
setExecutionFailedEventDetails(model.executionFailedEventDetails);
setExecutionStartedEventDetails(model.executionStartedEventDetails);
setExecutionSucceededEventDetails(model.executionSucceededEventDetails);
setExecutionAbortedEventDetails(model.executionAbortedEventDetails);
setExecutionTimedOutEventDetails(model.executionTimedOutEventDetails);
setLambdaFunctionFailedEventDetails(model.lambdaFunctionFailedEventDetails);
setLambdaFunctionScheduleFailedEventDetails(model.lambdaFunctionScheduleFailedEventDetails);
setLambdaFunctionScheduledEventDetails(model.lambdaFunctionScheduledEventDetails);
setLambdaFunctionStartFailedEventDetails(model.lambdaFunctionStartFailedEventDetails);
setLambdaFunctionSucceededEventDetails(model.lambdaFunctionSucceededEventDetails);
setLambdaFunctionTimedOutEventDetails(model.lambdaFunctionTimedOutEventDetails);
setStateEnteredEventDetails(model.stateEnteredEventDetails);
setStateExitedEventDetails(model.stateExitedEventDetails);
}
public final Date getTimestamp() {
return timestamp;
}
@Override
public final Builder timestamp(Date timestamp) {
this.timestamp = StandardMemberCopier.copy(timestamp);
return this;
}
public final void setTimestamp(Date timestamp) {
this.timestamp = StandardMemberCopier.copy(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 void setType(HistoryEventType type) {
this.type(type.toString());
}
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 getActivityFailedEventDetails() {
return activityFailedEventDetails;
}
@Override
public final Builder activityFailedEventDetails(ActivityFailedEventDetails activityFailedEventDetails) {
this.activityFailedEventDetails = activityFailedEventDetails;
return this;
}
public final void setActivityFailedEventDetails(ActivityFailedEventDetails activityFailedEventDetails) {
this.activityFailedEventDetails = activityFailedEventDetails;
}
public final ActivityScheduleFailedEventDetails getActivityScheduleFailedEventDetails() {
return activityScheduleFailedEventDetails;
}
@Override
public final Builder activityScheduleFailedEventDetails(
ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails) {
this.activityScheduleFailedEventDetails = activityScheduleFailedEventDetails;
return this;
}
public final void setActivityScheduleFailedEventDetails(
ActivityScheduleFailedEventDetails activityScheduleFailedEventDetails) {
this.activityScheduleFailedEventDetails = activityScheduleFailedEventDetails;
}
public final ActivityScheduledEventDetails getActivityScheduledEventDetails() {
return activityScheduledEventDetails;
}
@Override
public final Builder activityScheduledEventDetails(ActivityScheduledEventDetails activityScheduledEventDetails) {
this.activityScheduledEventDetails = activityScheduledEventDetails;
return this;
}
public final void setActivityScheduledEventDetails(ActivityScheduledEventDetails activityScheduledEventDetails) {
this.activityScheduledEventDetails = activityScheduledEventDetails;
}
public final ActivityStartedEventDetails getActivityStartedEventDetails() {
return activityStartedEventDetails;
}
@Override
public final Builder activityStartedEventDetails(ActivityStartedEventDetails activityStartedEventDetails) {
this.activityStartedEventDetails = activityStartedEventDetails;
return this;
}
public final void setActivityStartedEventDetails(ActivityStartedEventDetails activityStartedEventDetails) {
this.activityStartedEventDetails = activityStartedEventDetails;
}
public final ActivitySucceededEventDetails getActivitySucceededEventDetails() {
return activitySucceededEventDetails;
}
@Override
public final Builder activitySucceededEventDetails(ActivitySucceededEventDetails activitySucceededEventDetails) {
this.activitySucceededEventDetails = activitySucceededEventDetails;
return this;
}
public final void setActivitySucceededEventDetails(ActivitySucceededEventDetails activitySucceededEventDetails) {
this.activitySucceededEventDetails = activitySucceededEventDetails;
}
public final ActivityTimedOutEventDetails getActivityTimedOutEventDetails() {
return activityTimedOutEventDetails;
}
@Override
public final Builder activityTimedOutEventDetails(ActivityTimedOutEventDetails activityTimedOutEventDetails) {
this.activityTimedOutEventDetails = activityTimedOutEventDetails;
return this;
}
public final void setActivityTimedOutEventDetails(ActivityTimedOutEventDetails activityTimedOutEventDetails) {
this.activityTimedOutEventDetails = activityTimedOutEventDetails;
}
public final ExecutionFailedEventDetails getExecutionFailedEventDetails() {
return executionFailedEventDetails;
}
@Override
public final Builder executionFailedEventDetails(ExecutionFailedEventDetails executionFailedEventDetails) {
this.executionFailedEventDetails = executionFailedEventDetails;
return this;
}
public final void setExecutionFailedEventDetails(ExecutionFailedEventDetails executionFailedEventDetails) {
this.executionFailedEventDetails = executionFailedEventDetails;
}
public final ExecutionStartedEventDetails getExecutionStartedEventDetails() {
return executionStartedEventDetails;
}
@Override
public final Builder executionStartedEventDetails(ExecutionStartedEventDetails executionStartedEventDetails) {
this.executionStartedEventDetails = executionStartedEventDetails;
return this;
}
public final void setExecutionStartedEventDetails(ExecutionStartedEventDetails executionStartedEventDetails) {
this.executionStartedEventDetails = executionStartedEventDetails;
}
public final ExecutionSucceededEventDetails getExecutionSucceededEventDetails() {
return executionSucceededEventDetails;
}
@Override
public final Builder executionSucceededEventDetails(ExecutionSucceededEventDetails executionSucceededEventDetails) {
this.executionSucceededEventDetails = executionSucceededEventDetails;
return this;
}
public final void setExecutionSucceededEventDetails(ExecutionSucceededEventDetails executionSucceededEventDetails) {
this.executionSucceededEventDetails = executionSucceededEventDetails;
}
public final ExecutionAbortedEventDetails getExecutionAbortedEventDetails() {
return executionAbortedEventDetails;
}
@Override
public final Builder executionAbortedEventDetails(ExecutionAbortedEventDetails executionAbortedEventDetails) {
this.executionAbortedEventDetails = executionAbortedEventDetails;
return this;
}
public final void setExecutionAbortedEventDetails(ExecutionAbortedEventDetails executionAbortedEventDetails) {
this.executionAbortedEventDetails = executionAbortedEventDetails;
}
public final ExecutionTimedOutEventDetails getExecutionTimedOutEventDetails() {
return executionTimedOutEventDetails;
}
@Override
public final Builder executionTimedOutEventDetails(ExecutionTimedOutEventDetails executionTimedOutEventDetails) {
this.executionTimedOutEventDetails = executionTimedOutEventDetails;
return this;
}
public final void setExecutionTimedOutEventDetails(ExecutionTimedOutEventDetails executionTimedOutEventDetails) {
this.executionTimedOutEventDetails = executionTimedOutEventDetails;
}
public final LambdaFunctionFailedEventDetails getLambdaFunctionFailedEventDetails() {
return lambdaFunctionFailedEventDetails;
}
@Override
public final Builder lambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails) {
this.lambdaFunctionFailedEventDetails = lambdaFunctionFailedEventDetails;
return this;
}
public final void setLambdaFunctionFailedEventDetails(LambdaFunctionFailedEventDetails lambdaFunctionFailedEventDetails) {
this.lambdaFunctionFailedEventDetails = lambdaFunctionFailedEventDetails;
}
public final LambdaFunctionScheduleFailedEventDetails getLambdaFunctionScheduleFailedEventDetails() {
return lambdaFunctionScheduleFailedEventDetails;
}
@Override
public final Builder lambdaFunctionScheduleFailedEventDetails(
LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails) {
this.lambdaFunctionScheduleFailedEventDetails = lambdaFunctionScheduleFailedEventDetails;
return this;
}
public final void setLambdaFunctionScheduleFailedEventDetails(
LambdaFunctionScheduleFailedEventDetails lambdaFunctionScheduleFailedEventDetails) {
this.lambdaFunctionScheduleFailedEventDetails = lambdaFunctionScheduleFailedEventDetails;
}
public final LambdaFunctionScheduledEventDetails getLambdaFunctionScheduledEventDetails() {
return lambdaFunctionScheduledEventDetails;
}
@Override
public final Builder lambdaFunctionScheduledEventDetails(
LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails) {
this.lambdaFunctionScheduledEventDetails = lambdaFunctionScheduledEventDetails;
return this;
}
public final void setLambdaFunctionScheduledEventDetails(
LambdaFunctionScheduledEventDetails lambdaFunctionScheduledEventDetails) {
this.lambdaFunctionScheduledEventDetails = lambdaFunctionScheduledEventDetails;
}
public final LambdaFunctionStartFailedEventDetails getLambdaFunctionStartFailedEventDetails() {
return lambdaFunctionStartFailedEventDetails;
}
@Override
public final Builder lambdaFunctionStartFailedEventDetails(
LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails) {
this.lambdaFunctionStartFailedEventDetails = lambdaFunctionStartFailedEventDetails;
return this;
}
public final void setLambdaFunctionStartFailedEventDetails(
LambdaFunctionStartFailedEventDetails lambdaFunctionStartFailedEventDetails) {
this.lambdaFunctionStartFailedEventDetails = lambdaFunctionStartFailedEventDetails;
}
public final LambdaFunctionSucceededEventDetails getLambdaFunctionSucceededEventDetails() {
return lambdaFunctionSucceededEventDetails;
}
@Override
public final Builder lambdaFunctionSucceededEventDetails(
LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails) {
this.lambdaFunctionSucceededEventDetails = lambdaFunctionSucceededEventDetails;
return this;
}
public final void setLambdaFunctionSucceededEventDetails(
LambdaFunctionSucceededEventDetails lambdaFunctionSucceededEventDetails) {
this.lambdaFunctionSucceededEventDetails = lambdaFunctionSucceededEventDetails;
}
public final LambdaFunctionTimedOutEventDetails getLambdaFunctionTimedOutEventDetails() {
return lambdaFunctionTimedOutEventDetails;
}
@Override
public final Builder lambdaFunctionTimedOutEventDetails(
LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails) {
this.lambdaFunctionTimedOutEventDetails = lambdaFunctionTimedOutEventDetails;
return this;
}
public final void setLambdaFunctionTimedOutEventDetails(
LambdaFunctionTimedOutEventDetails lambdaFunctionTimedOutEventDetails) {
this.lambdaFunctionTimedOutEventDetails = lambdaFunctionTimedOutEventDetails;
}
public final StateEnteredEventDetails getStateEnteredEventDetails() {
return stateEnteredEventDetails;
}
@Override
public final Builder stateEnteredEventDetails(StateEnteredEventDetails stateEnteredEventDetails) {
this.stateEnteredEventDetails = stateEnteredEventDetails;
return this;
}
public final void setStateEnteredEventDetails(StateEnteredEventDetails stateEnteredEventDetails) {
this.stateEnteredEventDetails = stateEnteredEventDetails;
}
public final StateExitedEventDetails getStateExitedEventDetails() {
return stateExitedEventDetails;
}
@Override
public final Builder stateExitedEventDetails(StateExitedEventDetails stateExitedEventDetails) {
this.stateExitedEventDetails = stateExitedEventDetails;
return this;
}
public final void setStateExitedEventDetails(StateExitedEventDetails stateExitedEventDetails) {
this.stateExitedEventDetails = stateExitedEventDetails;
}
@Override
public HistoryEvent build() {
return new HistoryEvent(this);
}
}
}