All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.appflow.model.FlowDefinition Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Appflow module holds the client classes that are used for communicating with Amazon Appflow Service

There is a newer version: 1.12.778
Show newest version
/*
 * Copyright 2019-2024 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.appflow.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* The properties of the flow, such as its source, destination, trigger type, and so on. *

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

* The flow's Amazon Resource Name (ARN). *

*/ private String flowArn; /** *

* A user-entered description of the flow. *

*/ private String description; /** *

* The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only. *

*/ private String flowName; /** *

* Indicates the current status of the flow. *

*/ private String flowStatus; /** *

* Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

*/ private String sourceConnectorType; /** *

* The label of the source connector in the flow. *

*/ private String sourceConnectorLabel; /** *

* Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

*/ private String destinationConnectorType; /** *

* The label of the destination connector in the flow. *

*/ private String destinationConnectorLabel; /** *

* Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. *

*/ private String triggerType; /** *

* Specifies when the flow was created. *

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

* Specifies when the flow was last updated. *

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

* The ARN of the user who created the flow. *

*/ private String createdBy; /** *

* Specifies the account user name that most recently updated the flow. *

*/ private String lastUpdatedBy; /** *

* The tags used to organize, track, or control access for your flow. *

*/ private java.util.Map tags; /** *

* Describes the details of the most recent flow run. *

*/ private ExecutionDetails lastRunExecutionDetails; /** *

* The flow's Amazon Resource Name (ARN). *

* * @param flowArn * The flow's Amazon Resource Name (ARN). */ public void setFlowArn(String flowArn) { this.flowArn = flowArn; } /** *

* The flow's Amazon Resource Name (ARN). *

* * @return The flow's Amazon Resource Name (ARN). */ public String getFlowArn() { return this.flowArn; } /** *

* The flow's Amazon Resource Name (ARN). *

* * @param flowArn * The flow's Amazon Resource Name (ARN). * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withFlowArn(String flowArn) { setFlowArn(flowArn); return this; } /** *

* A user-entered description of the flow. *

* * @param description * A user-entered description of the flow. */ public void setDescription(String description) { this.description = description; } /** *

* A user-entered description of the flow. *

* * @return A user-entered description of the flow. */ public String getDescription() { return this.description; } /** *

* A user-entered description of the flow. *

* * @param description * A user-entered description of the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withDescription(String description) { setDescription(description); return this; } /** *

* The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only. *

* * @param flowName * The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only. */ public void setFlowName(String flowName) { this.flowName = flowName; } /** *

* The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only. *

* * @return The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only. */ public String getFlowName() { return this.flowName; } /** *

* The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only. *

* * @param flowName * The specified name of the flow. Spaces are not allowed. Use underscores (_) or hyphens (-) only. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withFlowName(String flowName) { setFlowName(flowName); return this; } /** *

* Indicates the current status of the flow. *

* * @param flowStatus * Indicates the current status of the flow. * @see FlowStatus */ public void setFlowStatus(String flowStatus) { this.flowStatus = flowStatus; } /** *

* Indicates the current status of the flow. *

* * @return Indicates the current status of the flow. * @see FlowStatus */ public String getFlowStatus() { return this.flowStatus; } /** *

* Indicates the current status of the flow. *

* * @param flowStatus * Indicates the current status of the flow. * @return Returns a reference to this object so that method calls can be chained together. * @see FlowStatus */ public FlowDefinition withFlowStatus(String flowStatus) { setFlowStatus(flowStatus); return this; } /** *

* Indicates the current status of the flow. *

* * @param flowStatus * Indicates the current status of the flow. * @return Returns a reference to this object so that method calls can be chained together. * @see FlowStatus */ public FlowDefinition withFlowStatus(FlowStatus flowStatus) { this.flowStatus = flowStatus.toString(); return this; } /** *

* Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @param sourceConnectorType * Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @see ConnectorType */ public void setSourceConnectorType(String sourceConnectorType) { this.sourceConnectorType = sourceConnectorType; } /** *

* Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @return Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @see ConnectorType */ public String getSourceConnectorType() { return this.sourceConnectorType; } /** *

* Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @param sourceConnectorType * Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public FlowDefinition withSourceConnectorType(String sourceConnectorType) { setSourceConnectorType(sourceConnectorType); return this; } /** *

* Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @param sourceConnectorType * Specifies the source connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public FlowDefinition withSourceConnectorType(ConnectorType sourceConnectorType) { this.sourceConnectorType = sourceConnectorType.toString(); return this; } /** *

* The label of the source connector in the flow. *

* * @param sourceConnectorLabel * The label of the source connector in the flow. */ public void setSourceConnectorLabel(String sourceConnectorLabel) { this.sourceConnectorLabel = sourceConnectorLabel; } /** *

* The label of the source connector in the flow. *

* * @return The label of the source connector in the flow. */ public String getSourceConnectorLabel() { return this.sourceConnectorLabel; } /** *

* The label of the source connector in the flow. *

* * @param sourceConnectorLabel * The label of the source connector in the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withSourceConnectorLabel(String sourceConnectorLabel) { setSourceConnectorLabel(sourceConnectorLabel); return this; } /** *

* Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @param destinationConnectorType * Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @see ConnectorType */ public void setDestinationConnectorType(String destinationConnectorType) { this.destinationConnectorType = destinationConnectorType; } /** *

* Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @return Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @see ConnectorType */ public String getDestinationConnectorType() { return this.destinationConnectorType; } /** *

* Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @param destinationConnectorType * Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public FlowDefinition withDestinationConnectorType(String destinationConnectorType) { setDestinationConnectorType(destinationConnectorType); return this; } /** *

* Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. *

* * @param destinationConnectorType * Specifies the destination connector type, such as Salesforce, Amazon S3, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public FlowDefinition withDestinationConnectorType(ConnectorType destinationConnectorType) { this.destinationConnectorType = destinationConnectorType.toString(); return this; } /** *

* The label of the destination connector in the flow. *

* * @param destinationConnectorLabel * The label of the destination connector in the flow. */ public void setDestinationConnectorLabel(String destinationConnectorLabel) { this.destinationConnectorLabel = destinationConnectorLabel; } /** *

* The label of the destination connector in the flow. *

* * @return The label of the destination connector in the flow. */ public String getDestinationConnectorLabel() { return this.destinationConnectorLabel; } /** *

* The label of the destination connector in the flow. *

* * @param destinationConnectorLabel * The label of the destination connector in the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withDestinationConnectorLabel(String destinationConnectorLabel) { setDestinationConnectorLabel(destinationConnectorLabel); return this; } /** *

* Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. *

* * @param triggerType * Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. * @see TriggerType */ public void setTriggerType(String triggerType) { this.triggerType = triggerType; } /** *

* Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. *

* * @return Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. * @see TriggerType */ public String getTriggerType() { return this.triggerType; } /** *

* Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. *

* * @param triggerType * Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. * @return Returns a reference to this object so that method calls can be chained together. * @see TriggerType */ public FlowDefinition withTriggerType(String triggerType) { setTriggerType(triggerType); return this; } /** *

* Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. *

* * @param triggerType * Specifies the type of flow trigger. This can be OnDemand, Scheduled, or * Event. * @return Returns a reference to this object so that method calls can be chained together. * @see TriggerType */ public FlowDefinition withTriggerType(TriggerType triggerType) { this.triggerType = triggerType.toString(); return this; } /** *

* Specifies when the flow was created. *

* * @param createdAt * Specifies when the flow was created. */ public void setCreatedAt(java.util.Date createdAt) { this.createdAt = createdAt; } /** *

* Specifies when the flow was created. *

* * @return Specifies when the flow was created. */ public java.util.Date getCreatedAt() { return this.createdAt; } /** *

* Specifies when the flow was created. *

* * @param createdAt * Specifies when the flow was created. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withCreatedAt(java.util.Date createdAt) { setCreatedAt(createdAt); return this; } /** *

* Specifies when the flow was last updated. *

* * @param lastUpdatedAt * Specifies when the flow was last updated. */ public void setLastUpdatedAt(java.util.Date lastUpdatedAt) { this.lastUpdatedAt = lastUpdatedAt; } /** *

* Specifies when the flow was last updated. *

* * @return Specifies when the flow was last updated. */ public java.util.Date getLastUpdatedAt() { return this.lastUpdatedAt; } /** *

* Specifies when the flow was last updated. *

* * @param lastUpdatedAt * Specifies when the flow was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withLastUpdatedAt(java.util.Date lastUpdatedAt) { setLastUpdatedAt(lastUpdatedAt); return this; } /** *

* The ARN of the user who created the flow. *

* * @param createdBy * The ARN of the user who created the flow. */ public void setCreatedBy(String createdBy) { this.createdBy = createdBy; } /** *

* The ARN of the user who created the flow. *

* * @return The ARN of the user who created the flow. */ public String getCreatedBy() { return this.createdBy; } /** *

* The ARN of the user who created the flow. *

* * @param createdBy * The ARN of the user who created the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withCreatedBy(String createdBy) { setCreatedBy(createdBy); return this; } /** *

* Specifies the account user name that most recently updated the flow. *

* * @param lastUpdatedBy * Specifies the account user name that most recently updated the flow. */ public void setLastUpdatedBy(String lastUpdatedBy) { this.lastUpdatedBy = lastUpdatedBy; } /** *

* Specifies the account user name that most recently updated the flow. *

* * @return Specifies the account user name that most recently updated the flow. */ public String getLastUpdatedBy() { return this.lastUpdatedBy; } /** *

* Specifies the account user name that most recently updated the flow. *

* * @param lastUpdatedBy * Specifies the account user name that most recently updated the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withLastUpdatedBy(String lastUpdatedBy) { setLastUpdatedBy(lastUpdatedBy); return this; } /** *

* The tags used to organize, track, or control access for your flow. *

* * @return The tags used to organize, track, or control access for your flow. */ public java.util.Map getTags() { return tags; } /** *

* The tags used to organize, track, or control access for your flow. *

* * @param tags * The tags used to organize, track, or control access for your flow. */ public void setTags(java.util.Map tags) { this.tags = tags; } /** *

* The tags used to organize, track, or control access for your flow. *

* * @param tags * The tags used to organize, track, or control access for your flow. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withTags(java.util.Map tags) { setTags(tags); return this; } /** * Add a single Tags entry * * @see FlowDefinition#withTags * @returns a reference to this object so that method calls can be chained together. */ public FlowDefinition addTagsEntry(String key, String value) { if (null == this.tags) { this.tags = new java.util.HashMap(); } if (this.tags.containsKey(key)) throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided."); this.tags.put(key, value); return this; } /** * Removes all the entries added into Tags. * * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition clearTagsEntries() { this.tags = null; return this; } /** *

* Describes the details of the most recent flow run. *

* * @param lastRunExecutionDetails * Describes the details of the most recent flow run. */ public void setLastRunExecutionDetails(ExecutionDetails lastRunExecutionDetails) { this.lastRunExecutionDetails = lastRunExecutionDetails; } /** *

* Describes the details of the most recent flow run. *

* * @return Describes the details of the most recent flow run. */ public ExecutionDetails getLastRunExecutionDetails() { return this.lastRunExecutionDetails; } /** *

* Describes the details of the most recent flow run. *

* * @param lastRunExecutionDetails * Describes the details of the most recent flow run. * @return Returns a reference to this object so that method calls can be chained together. */ public FlowDefinition withLastRunExecutionDetails(ExecutionDetails lastRunExecutionDetails) { setLastRunExecutionDetails(lastRunExecutionDetails); 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 (getFlowArn() != null) sb.append("FlowArn: ").append(getFlowArn()).append(","); if (getDescription() != null) sb.append("Description: ").append(getDescription()).append(","); if (getFlowName() != null) sb.append("FlowName: ").append(getFlowName()).append(","); if (getFlowStatus() != null) sb.append("FlowStatus: ").append(getFlowStatus()).append(","); if (getSourceConnectorType() != null) sb.append("SourceConnectorType: ").append(getSourceConnectorType()).append(","); if (getSourceConnectorLabel() != null) sb.append("SourceConnectorLabel: ").append(getSourceConnectorLabel()).append(","); if (getDestinationConnectorType() != null) sb.append("DestinationConnectorType: ").append(getDestinationConnectorType()).append(","); if (getDestinationConnectorLabel() != null) sb.append("DestinationConnectorLabel: ").append(getDestinationConnectorLabel()).append(","); if (getTriggerType() != null) sb.append("TriggerType: ").append(getTriggerType()).append(","); if (getCreatedAt() != null) sb.append("CreatedAt: ").append(getCreatedAt()).append(","); if (getLastUpdatedAt() != null) sb.append("LastUpdatedAt: ").append(getLastUpdatedAt()).append(","); if (getCreatedBy() != null) sb.append("CreatedBy: ").append(getCreatedBy()).append(","); if (getLastUpdatedBy() != null) sb.append("LastUpdatedBy: ").append(getLastUpdatedBy()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()).append(","); if (getLastRunExecutionDetails() != null) sb.append("LastRunExecutionDetails: ").append(getLastRunExecutionDetails()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FlowDefinition == false) return false; FlowDefinition other = (FlowDefinition) obj; if (other.getFlowArn() == null ^ this.getFlowArn() == null) return false; if (other.getFlowArn() != null && other.getFlowArn().equals(this.getFlowArn()) == false) return false; if (other.getDescription() == null ^ this.getDescription() == null) return false; if (other.getDescription() != null && other.getDescription().equals(this.getDescription()) == false) return false; if (other.getFlowName() == null ^ this.getFlowName() == null) return false; if (other.getFlowName() != null && other.getFlowName().equals(this.getFlowName()) == false) return false; if (other.getFlowStatus() == null ^ this.getFlowStatus() == null) return false; if (other.getFlowStatus() != null && other.getFlowStatus().equals(this.getFlowStatus()) == false) return false; if (other.getSourceConnectorType() == null ^ this.getSourceConnectorType() == null) return false; if (other.getSourceConnectorType() != null && other.getSourceConnectorType().equals(this.getSourceConnectorType()) == false) return false; if (other.getSourceConnectorLabel() == null ^ this.getSourceConnectorLabel() == null) return false; if (other.getSourceConnectorLabel() != null && other.getSourceConnectorLabel().equals(this.getSourceConnectorLabel()) == false) return false; if (other.getDestinationConnectorType() == null ^ this.getDestinationConnectorType() == null) return false; if (other.getDestinationConnectorType() != null && other.getDestinationConnectorType().equals(this.getDestinationConnectorType()) == false) return false; if (other.getDestinationConnectorLabel() == null ^ this.getDestinationConnectorLabel() == null) return false; if (other.getDestinationConnectorLabel() != null && other.getDestinationConnectorLabel().equals(this.getDestinationConnectorLabel()) == false) return false; if (other.getTriggerType() == null ^ this.getTriggerType() == null) return false; if (other.getTriggerType() != null && other.getTriggerType().equals(this.getTriggerType()) == 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; if (other.getCreatedBy() == null ^ this.getCreatedBy() == null) return false; if (other.getCreatedBy() != null && other.getCreatedBy().equals(this.getCreatedBy()) == false) return false; if (other.getLastUpdatedBy() == null ^ this.getLastUpdatedBy() == null) return false; if (other.getLastUpdatedBy() != null && other.getLastUpdatedBy().equals(this.getLastUpdatedBy()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; if (other.getLastRunExecutionDetails() == null ^ this.getLastRunExecutionDetails() == null) return false; if (other.getLastRunExecutionDetails() != null && other.getLastRunExecutionDetails().equals(this.getLastRunExecutionDetails()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getFlowArn() == null) ? 0 : getFlowArn().hashCode()); hashCode = prime * hashCode + ((getDescription() == null) ? 0 : getDescription().hashCode()); hashCode = prime * hashCode + ((getFlowName() == null) ? 0 : getFlowName().hashCode()); hashCode = prime * hashCode + ((getFlowStatus() == null) ? 0 : getFlowStatus().hashCode()); hashCode = prime * hashCode + ((getSourceConnectorType() == null) ? 0 : getSourceConnectorType().hashCode()); hashCode = prime * hashCode + ((getSourceConnectorLabel() == null) ? 0 : getSourceConnectorLabel().hashCode()); hashCode = prime * hashCode + ((getDestinationConnectorType() == null) ? 0 : getDestinationConnectorType().hashCode()); hashCode = prime * hashCode + ((getDestinationConnectorLabel() == null) ? 0 : getDestinationConnectorLabel().hashCode()); hashCode = prime * hashCode + ((getTriggerType() == null) ? 0 : getTriggerType().hashCode()); hashCode = prime * hashCode + ((getCreatedAt() == null) ? 0 : getCreatedAt().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedAt() == null) ? 0 : getLastUpdatedAt().hashCode()); hashCode = prime * hashCode + ((getCreatedBy() == null) ? 0 : getCreatedBy().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedBy() == null) ? 0 : getLastUpdatedBy().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); hashCode = prime * hashCode + ((getLastRunExecutionDetails() == null) ? 0 : getLastRunExecutionDetails().hashCode()); return hashCode; } @Override public FlowDefinition clone() { try { return (FlowDefinition) 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.appflow.model.transform.FlowDefinitionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy