/* * Copyright 2018-2023 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 com.amazonaws.services.customerprofiles.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *

* Workflow step details for APPFLOW_INTEGRATION workflow. *

* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AppflowIntegrationWorkflowStep implements Serializable, Cloneable, StructuredPojo { /** *

* Name of the flow created during execution of workflow step. APPFLOW_INTEGRATION workflow type * creates an appflow flow during workflow step execution on the customers behalf. *

*/ private String flowName; /** *

* Workflow step status for APPFLOW_INTEGRATION workflow. *

*/ private String status; /** *

* Message indicating execution of workflow step for APPFLOW_INTEGRATION workflow. *

*/ private String executionMessage; /** *

* Total number of records processed during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

*/ private Long recordsProcessed; /** *

* Start datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

*/ private String batchRecordsStartTime; /** *

* End datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

*/ private String batchRecordsEndTime; /** *

* Creation timestamp of workflow step for APPFLOW_INTEGRATION workflow. *

*/ private java.util.Date createdAt; /** *

* Last updated timestamp for workflow step for APPFLOW_INTEGRATION workflow. *

*/ private java.util.Date lastUpdatedAt; /** *

* Name of the flow created during execution of workflow step. APPFLOW_INTEGRATION workflow type * creates an appflow flow during workflow step execution on the customers behalf. *

* * @param flowName * Name of the flow created during execution of workflow step. APPFLOW_INTEGRATION workflow type * creates an appflow flow during workflow step execution on the customers behalf. */ public void setFlowName(String flowName) { this.flowName = flowName; } /** *

* Name of the flow created during execution of workflow step. APPFLOW_INTEGRATION workflow type * creates an appflow flow during workflow step execution on the customers behalf. *

* * @return Name of the flow created during execution of workflow step. APPFLOW_INTEGRATION workflow * type creates an appflow flow during workflow step execution on the customers behalf. */ public String getFlowName() { return this.flowName; } /** *

* Name of the flow created during execution of workflow step. APPFLOW_INTEGRATION workflow type * creates an appflow flow during workflow step execution on the customers behalf. *

* * @param flowName * Name of the flow created during execution of workflow step. APPFLOW_INTEGRATION workflow type * creates an appflow flow during workflow step execution on the customers behalf. * @return Returns a reference to this object so that method calls can be chained together. */ public AppflowIntegrationWorkflowStep withFlowName(String flowName) { setFlowName(flowName); return this; } /** *

* Workflow step status for APPFLOW_INTEGRATION workflow. *

* * @param status * Workflow step status for APPFLOW_INTEGRATION workflow. * @see Status */ public void setStatus(String status) { this.status = status; } /** *

* Workflow step status for APPFLOW_INTEGRATION workflow. *

* * @return Workflow step status for APPFLOW_INTEGRATION workflow. * @see Status */ public String getStatus() { return this.status; } /** *

* Workflow step status for APPFLOW_INTEGRATION workflow. *

* * @param status * Workflow step status for APPFLOW_INTEGRATION workflow. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public AppflowIntegrationWorkflowStep withStatus(String status) { setStatus(status); return this; } /** *

* Workflow step status for APPFLOW_INTEGRATION workflow. *

* * @param status * Workflow step status for APPFLOW_INTEGRATION workflow. * @return Returns a reference to this object so that method calls can be chained together. * @see Status */ public AppflowIntegrationWorkflowStep withStatus(Status status) { this.status = status.toString(); return this; } /** *

* Message indicating execution of workflow step for APPFLOW_INTEGRATION workflow. *

* * @param executionMessage * Message indicating execution of workflow step for APPFLOW_INTEGRATION workflow. */ public void setExecutionMessage(String executionMessage) { this.executionMessage = executionMessage; } /** *

* Message indicating execution of workflow step for APPFLOW_INTEGRATION workflow. *

* * @return Message indicating execution of workflow step for APPFLOW_INTEGRATION workflow. */ public String getExecutionMessage() { return this.executionMessage; } /** *

* Message indicating execution of workflow step for APPFLOW_INTEGRATION workflow. *

* * @param executionMessage * Message indicating execution of workflow step for APPFLOW_INTEGRATION workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public AppflowIntegrationWorkflowStep withExecutionMessage(String executionMessage) { setExecutionMessage(executionMessage); return this; } /** *

* Total number of records processed during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @param recordsProcessed * Total number of records processed during execution of workflow step for APPFLOW_INTEGRATION * workflow. */ public void setRecordsProcessed(Long recordsProcessed) { this.recordsProcessed = recordsProcessed; } /** *

* Total number of records processed during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @return Total number of records processed during execution of workflow step for APPFLOW_INTEGRATION * workflow. */ public Long getRecordsProcessed() { return this.recordsProcessed; } /** *

* Total number of records processed during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @param recordsProcessed * Total number of records processed during execution of workflow step for APPFLOW_INTEGRATION * workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public AppflowIntegrationWorkflowStep withRecordsProcessed(Long recordsProcessed) { setRecordsProcessed(recordsProcessed); return this; } /** *

* Start datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @param batchRecordsStartTime * Start datetime of records pulled in batch during execution of workflow step for * APPFLOW_INTEGRATION workflow. */ public void setBatchRecordsStartTime(String batchRecordsStartTime) { this.batchRecordsStartTime = batchRecordsStartTime; } /** *

* Start datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @return Start datetime of records pulled in batch during execution of workflow step for * APPFLOW_INTEGRATION workflow. */ public String getBatchRecordsStartTime() { return this.batchRecordsStartTime; } /** *

* Start datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @param batchRecordsStartTime * Start datetime of records pulled in batch during execution of workflow step for * APPFLOW_INTEGRATION workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public AppflowIntegrationWorkflowStep withBatchRecordsStartTime(String batchRecordsStartTime) { setBatchRecordsStartTime(batchRecordsStartTime); return this; } /** *

* End datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @param batchRecordsEndTime * End datetime of records pulled in batch during execution of workflow step for * APPFLOW_INTEGRATION workflow. */ public void setBatchRecordsEndTime(String batchRecordsEndTime) { this.batchRecordsEndTime = batchRecordsEndTime; } /** *

* End datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @return End datetime of records pulled in batch during execution of workflow step for * APPFLOW_INTEGRATION workflow. */ public String getBatchRecordsEndTime() { return this.batchRecordsEndTime; } /** *

* End datetime of records pulled in batch during execution of workflow step for APPFLOW_INTEGRATION * workflow. *

* * @param batchRecordsEndTime * End datetime of records pulled in batch during execution of workflow step for * APPFLOW_INTEGRATION workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public AppflowIntegrationWorkflowStep withBatchRecordsEndTime(String batchRecordsEndTime) { setBatchRecordsEndTime(batchRecordsEndTime); return this; } /** *

* Creation timestamp of workflow step for APPFLOW_INTEGRATION workflow. *

* * @param createdAt * Creation timestamp of workflow step for APPFLOW_INTEGRATION workflow. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Creation timestamp of workflow step for APPFLOW_INTEGRATION workflow. *

* * @return Creation timestamp of workflow step for APPFLOW_INTEGRATION workflow. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Creation timestamp of workflow step for APPFLOW_INTEGRATION workflow. *

* * @param createdAt * Creation timestamp of workflow step for APPFLOW_INTEGRATION workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public AppflowIntegrationWorkflowStep withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Last updated timestamp for workflow step for APPFLOW_INTEGRATION workflow. *

* * @param lastUpdatedAt * Last updated timestamp for workflow step for APPFLOW_INTEGRATION workflow. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* Last updated timestamp for workflow step for APPFLOW_INTEGRATION workflow. *

* * @return Last updated timestamp for workflow step for APPFLOW_INTEGRATION workflow. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* Last updated timestamp for workflow step for APPFLOW_INTEGRATION workflow. *

* * @param lastUpdatedAt * Last updated timestamp for workflow step for APPFLOW_INTEGRATION workflow. * @return Returns a reference to this object so that method calls can be chained together. */ public AppflowIntegrationWorkflowStep withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getFlowName() != null) sb.append("FlowName: ").append(getFlowName()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getExecutionMessage() != null) sb.append("ExecutionMessage: ").append(getExecutionMessage()).append(","); if (getRecordsProcessed() != null) sb.append("RecordsProcessed: ").append(getRecordsProcessed()).append(","); if (getBatchRecordsStartTime() != null) sb.append("BatchRecordsStartTime: ").append(getBatchRecordsStartTime()).append(","); if (getBatchRecordsEndTime() != null) sb.append("BatchRecordsEndTime: ").append(getBatchRecordsEndTime()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AppflowIntegrationWorkflowStep == false) return false; AppflowIntegrationWorkflowStep other = (AppflowIntegrationWorkflowStep) obj; if (other.getFlowName() == null ^ this.getFlowName() == null) return false; if (other.getFlowName() != null && other.getFlowName().equals(this.getFlowName()) == false) return false; if (other.getStatus() == null ^ this.getStatus() == null) return false; if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false) return false; if (other.getExecutionMessage() == null ^ this.getExecutionMessage() == null) return false; if (other.getExecutionMessage() != null && other.getExecutionMessage().equals(this.getExecutionMessage()) == false) return false; if (other.getRecordsProcessed() == null ^ this.getRecordsProcessed() == null) return false; if (other.getRecordsProcessed() != null && other.getRecordsProcessed().equals(this.getRecordsProcessed()) == false) return false; if (other.getBatchRecordsStartTime() == null ^ this.getBatchRecordsStartTime() == null) return false; if (other.getBatchRecordsStartTime() != null && other.getBatchRecordsStartTime().equals(this.getBatchRecordsStartTime()) == false) return false; if (other.getBatchRecordsEndTime() == null ^ this.getBatchRecordsEndTime() == null) return false; if (other.getBatchRecordsEndTime() != null && other.getBatchRecordsEndTime().equals(this.getBatchRecordsEndTime()) == false) return false; if (other.getCreatedAt() == null ^ this.getCreatedAt() == null) return false; if (other.getCreatedAt() != null && other.getCreatedAt().equals(this.getCreatedAt()) == false) return false; if (other.getLastUpdatedAt() == null ^ this.getLastUpdatedAt() == null) return false; if (other.getLastUpdatedAt() != null && other.getLastUpdatedAt().equals(this.getLastUpdatedAt()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFlowName() == null) ? 0 : getFlowName().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getExecutionMessage() == null) ? 0 : getExecutionMessage().hashCode()); hashCode = prime * hashCode + ((getRecordsProcessed() == null) ? 0 : getRecordsProcessed().hashCode()); hashCode = prime * hashCode + ((getBatchRecordsStartTime() == null) ? 0 : getBatchRecordsStartTime().hashCode()); hashCode = prime * hashCode + ((getBatchRecordsEndTime() == null) ? 0 : getBatchRecordsEndTime().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); return hashCode; } @Override public AppflowIntegrationWorkflowStep clone() { try { return (AppflowIntegrationWorkflowStep) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.customerprofiles.model.transform.AppflowIntegrationWorkflowStepMarshaller.getInstance().marshall(this, protocolMarshaller); } }