com.amazonaws.services.appflow.model.DescribeFlowResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-appflow Show documentation
/*
* 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;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeFlowResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* The flow's Amazon Resource Name (ARN).
*
*/
private String flowArn;
/**
*
* A 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;
/**
*
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is
* required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon
* AppFlow uses the Amazon AppFlow-managed KMS key.
*
*/
private String kmsArn;
/**
*
* Indicates the current status of the flow.
*
*/
private String flowStatus;
/**
*
* Contains an error message if the flow status is in a suspended or error state. This applies only to scheduled or
* event-triggered flows.
*
*/
private String flowStatusMessage;
/**
*
* The configuration that controls how Amazon AppFlow retrieves data from the source connector.
*
*/
private SourceFlowConfig sourceFlowConfig;
/**
*
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
*
*/
private java.util.List destinationFlowConfigList;
/**
*
* Describes the details of the most recent flow run.
*
*/
private ExecutionDetails lastRunExecutionDetails;
/**
*
* The trigger settings that determine how and when the flow runs.
*
*/
private TriggerConfig triggerConfig;
/**
*
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
*
*/
private java.util.List tasks;
/**
*
* 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 user name of the account that performed the most recent update.
*
*/
private String lastUpdatedBy;
/**
*
* The tags used to organize, track, or control access for your flow.
*
*/
private java.util.Map tags;
/**
*
* Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the
* associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
*
*/
private MetadataCatalogConfig metadataCatalogConfig;
/**
*
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the associated
* flow run.
*
*/
private java.util.List lastRunMetadataCatalogDetails;
/**
*
* The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases
* by one when you change any of the following settings in your flow configuration:
*
*
* -
*
* Source-to-destination field mappings
*
*
* -
*
* Field data types
*
*
* -
*
* Partition keys
*
*
*
*/
private Long schemaVersion;
/**
*
* 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 DescribeFlowResult withFlowArn(String flowArn) {
setFlowArn(flowArn);
return this;
}
/**
*
* A description of the flow.
*
*
* @param description
* A description of the flow.
*/
public void setDescription(String description) {
this.description = description;
}
/**
*
* A description of the flow.
*
*
* @return A description of the flow.
*/
public String getDescription() {
return this.description;
}
/**
*
* A description of the flow.
*
*
* @param description
* A description of the flow.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult 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 DescribeFlowResult withFlowName(String flowName) {
setFlowName(flowName);
return this;
}
/**
*
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is
* required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon
* AppFlow uses the Amazon AppFlow-managed KMS key.
*
*
* @param kmsArn
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is
* required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here,
* Amazon AppFlow uses the Amazon AppFlow-managed KMS key.
*/
public void setKmsArn(String kmsArn) {
this.kmsArn = kmsArn;
}
/**
*
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is
* required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon
* AppFlow uses the Amazon AppFlow-managed KMS key.
*
*
* @return The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This
* is required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything
* here, Amazon AppFlow uses the Amazon AppFlow-managed KMS key.
*/
public String getKmsArn() {
return this.kmsArn;
}
/**
*
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is
* required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here, Amazon
* AppFlow uses the Amazon AppFlow-managed KMS key.
*
*
* @param kmsArn
* The ARN (Amazon Resource Name) of the Key Management Service (KMS) key you provide for encryption. This is
* required if you do not want to use the Amazon AppFlow-managed KMS key. If you don't provide anything here,
* Amazon AppFlow uses the Amazon AppFlow-managed KMS key.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withKmsArn(String kmsArn) {
setKmsArn(kmsArn);
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 DescribeFlowResult 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 DescribeFlowResult withFlowStatus(FlowStatus flowStatus) {
this.flowStatus = flowStatus.toString();
return this;
}
/**
*
* Contains an error message if the flow status is in a suspended or error state. This applies only to scheduled or
* event-triggered flows.
*
*
* @param flowStatusMessage
* Contains an error message if the flow status is in a suspended or error state. This applies only to
* scheduled or event-triggered flows.
*/
public void setFlowStatusMessage(String flowStatusMessage) {
this.flowStatusMessage = flowStatusMessage;
}
/**
*
* Contains an error message if the flow status is in a suspended or error state. This applies only to scheduled or
* event-triggered flows.
*
*
* @return Contains an error message if the flow status is in a suspended or error state. This applies only to
* scheduled or event-triggered flows.
*/
public String getFlowStatusMessage() {
return this.flowStatusMessage;
}
/**
*
* Contains an error message if the flow status is in a suspended or error state. This applies only to scheduled or
* event-triggered flows.
*
*
* @param flowStatusMessage
* Contains an error message if the flow status is in a suspended or error state. This applies only to
* scheduled or event-triggered flows.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withFlowStatusMessage(String flowStatusMessage) {
setFlowStatusMessage(flowStatusMessage);
return this;
}
/**
*
* The configuration that controls how Amazon AppFlow retrieves data from the source connector.
*
*
* @param sourceFlowConfig
* The configuration that controls how Amazon AppFlow retrieves data from the source connector.
*/
public void setSourceFlowConfig(SourceFlowConfig sourceFlowConfig) {
this.sourceFlowConfig = sourceFlowConfig;
}
/**
*
* The configuration that controls how Amazon AppFlow retrieves data from the source connector.
*
*
* @return The configuration that controls how Amazon AppFlow retrieves data from the source connector.
*/
public SourceFlowConfig getSourceFlowConfig() {
return this.sourceFlowConfig;
}
/**
*
* The configuration that controls how Amazon AppFlow retrieves data from the source connector.
*
*
* @param sourceFlowConfig
* The configuration that controls how Amazon AppFlow retrieves data from the source connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withSourceFlowConfig(SourceFlowConfig sourceFlowConfig) {
setSourceFlowConfig(sourceFlowConfig);
return this;
}
/**
*
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
*
*
* @return The configuration that controls how Amazon AppFlow transfers data to the destination connector.
*/
public java.util.List getDestinationFlowConfigList() {
return destinationFlowConfigList;
}
/**
*
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
*
*
* @param destinationFlowConfigList
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
*/
public void setDestinationFlowConfigList(java.util.Collection destinationFlowConfigList) {
if (destinationFlowConfigList == null) {
this.destinationFlowConfigList = null;
return;
}
this.destinationFlowConfigList = new java.util.ArrayList(destinationFlowConfigList);
}
/**
*
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setDestinationFlowConfigList(java.util.Collection)} or
* {@link #withDestinationFlowConfigList(java.util.Collection)} if you want to override the existing values.
*
*
* @param destinationFlowConfigList
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withDestinationFlowConfigList(DestinationFlowConfig... destinationFlowConfigList) {
if (this.destinationFlowConfigList == null) {
setDestinationFlowConfigList(new java.util.ArrayList(destinationFlowConfigList.length));
}
for (DestinationFlowConfig ele : destinationFlowConfigList) {
this.destinationFlowConfigList.add(ele);
}
return this;
}
/**
*
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
*
*
* @param destinationFlowConfigList
* The configuration that controls how Amazon AppFlow transfers data to the destination connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withDestinationFlowConfigList(java.util.Collection destinationFlowConfigList) {
setDestinationFlowConfigList(destinationFlowConfigList);
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 DescribeFlowResult withLastRunExecutionDetails(ExecutionDetails lastRunExecutionDetails) {
setLastRunExecutionDetails(lastRunExecutionDetails);
return this;
}
/**
*
* The trigger settings that determine how and when the flow runs.
*
*
* @param triggerConfig
* The trigger settings that determine how and when the flow runs.
*/
public void setTriggerConfig(TriggerConfig triggerConfig) {
this.triggerConfig = triggerConfig;
}
/**
*
* The trigger settings that determine how and when the flow runs.
*
*
* @return The trigger settings that determine how and when the flow runs.
*/
public TriggerConfig getTriggerConfig() {
return this.triggerConfig;
}
/**
*
* The trigger settings that determine how and when the flow runs.
*
*
* @param triggerConfig
* The trigger settings that determine how and when the flow runs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withTriggerConfig(TriggerConfig triggerConfig) {
setTriggerConfig(triggerConfig);
return this;
}
/**
*
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
*
*
* @return A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
*/
public java.util.List getTasks() {
return tasks;
}
/**
*
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
*
*
* @param tasks
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
*/
public void setTasks(java.util.Collection tasks) {
if (tasks == null) {
this.tasks = null;
return;
}
this.tasks = new java.util.ArrayList(tasks);
}
/**
*
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setTasks(java.util.Collection)} or {@link #withTasks(java.util.Collection)} if you want to override the
* existing values.
*
*
* @param tasks
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withTasks(Task... tasks) {
if (this.tasks == null) {
setTasks(new java.util.ArrayList(tasks.length));
}
for (Task ele : tasks) {
this.tasks.add(ele);
}
return this;
}
/**
*
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
*
*
* @param tasks
* A list of tasks that Amazon AppFlow performs while transferring the data in the flow run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withTasks(java.util.Collection tasks) {
setTasks(tasks);
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 DescribeFlowResult 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 DescribeFlowResult 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 DescribeFlowResult withCreatedBy(String createdBy) {
setCreatedBy(createdBy);
return this;
}
/**
*
* Specifies the user name of the account that performed the most recent update.
*
*
* @param lastUpdatedBy
* Specifies the user name of the account that performed the most recent update.
*/
public void setLastUpdatedBy(String lastUpdatedBy) {
this.lastUpdatedBy = lastUpdatedBy;
}
/**
*
* Specifies the user name of the account that performed the most recent update.
*
*
* @return Specifies the user name of the account that performed the most recent update.
*/
public String getLastUpdatedBy() {
return this.lastUpdatedBy;
}
/**
*
* Specifies the user name of the account that performed the most recent update.
*
*
* @param lastUpdatedBy
* Specifies the user name of the account that performed the most recent update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult 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 DescribeFlowResult withTags(java.util.Map tags) {
setTags(tags);
return this;
}
/**
* Add a single Tags entry
*
* @see DescribeFlowResult#withTags
* @returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult 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 DescribeFlowResult clearTagsEntries() {
this.tags = null;
return this;
}
/**
*
* Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the
* associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
*
*
* @param metadataCatalogConfig
* Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the
* associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
*/
public void setMetadataCatalogConfig(MetadataCatalogConfig metadataCatalogConfig) {
this.metadataCatalogConfig = metadataCatalogConfig;
}
/**
*
* Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the
* associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
*
*
* @return Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the
* associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
*/
public MetadataCatalogConfig getMetadataCatalogConfig() {
return this.metadataCatalogConfig;
}
/**
*
* Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the
* associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
*
*
* @param metadataCatalogConfig
* Specifies the configuration that Amazon AppFlow uses when it catalogs the data that's transferred by the
* associated flow. When Amazon AppFlow catalogs the data from a flow, it stores metadata in a data catalog.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withMetadataCatalogConfig(MetadataCatalogConfig metadataCatalogConfig) {
setMetadataCatalogConfig(metadataCatalogConfig);
return this;
}
/**
*
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the associated
* flow run.
*
*
* @return Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the
* associated flow run.
*/
public java.util.List getLastRunMetadataCatalogDetails() {
return lastRunMetadataCatalogDetails;
}
/**
*
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the associated
* flow run.
*
*
* @param lastRunMetadataCatalogDetails
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the
* associated flow run.
*/
public void setLastRunMetadataCatalogDetails(java.util.Collection lastRunMetadataCatalogDetails) {
if (lastRunMetadataCatalogDetails == null) {
this.lastRunMetadataCatalogDetails = null;
return;
}
this.lastRunMetadataCatalogDetails = new java.util.ArrayList(lastRunMetadataCatalogDetails);
}
/**
*
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the associated
* flow run.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setLastRunMetadataCatalogDetails(java.util.Collection)} or
* {@link #withLastRunMetadataCatalogDetails(java.util.Collection)} if you want to override the existing values.
*
*
* @param lastRunMetadataCatalogDetails
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the
* associated flow run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withLastRunMetadataCatalogDetails(MetadataCatalogDetail... lastRunMetadataCatalogDetails) {
if (this.lastRunMetadataCatalogDetails == null) {
setLastRunMetadataCatalogDetails(new java.util.ArrayList(lastRunMetadataCatalogDetails.length));
}
for (MetadataCatalogDetail ele : lastRunMetadataCatalogDetails) {
this.lastRunMetadataCatalogDetails.add(ele);
}
return this;
}
/**
*
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the associated
* flow run.
*
*
* @param lastRunMetadataCatalogDetails
* Describes the metadata catalog, metadata table, and data partitions that Amazon AppFlow used for the
* associated flow run.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withLastRunMetadataCatalogDetails(java.util.Collection lastRunMetadataCatalogDetails) {
setLastRunMetadataCatalogDetails(lastRunMetadataCatalogDetails);
return this;
}
/**
*
* The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases
* by one when you change any of the following settings in your flow configuration:
*
*
* -
*
* Source-to-destination field mappings
*
*
* -
*
* Field data types
*
*
* -
*
* Partition keys
*
*
*
*
* @param schemaVersion
* The version number of your data schema. Amazon AppFlow assigns this version number. The version number
* increases by one when you change any of the following settings in your flow configuration:
*
* -
*
* Source-to-destination field mappings
*
*
* -
*
* Field data types
*
*
* -
*
* Partition keys
*
*
*/
public void setSchemaVersion(Long schemaVersion) {
this.schemaVersion = schemaVersion;
}
/**
*
* The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases
* by one when you change any of the following settings in your flow configuration:
*
*
* -
*
* Source-to-destination field mappings
*
*
* -
*
* Field data types
*
*
* -
*
* Partition keys
*
*
*
*
* @return The version number of your data schema. Amazon AppFlow assigns this version number. The version number
* increases by one when you change any of the following settings in your flow configuration:
*
* -
*
* Source-to-destination field mappings
*
*
* -
*
* Field data types
*
*
* -
*
* Partition keys
*
*
*/
public Long getSchemaVersion() {
return this.schemaVersion;
}
/**
*
* The version number of your data schema. Amazon AppFlow assigns this version number. The version number increases
* by one when you change any of the following settings in your flow configuration:
*
*
* -
*
* Source-to-destination field mappings
*
*
* -
*
* Field data types
*
*
* -
*
* Partition keys
*
*
*
*
* @param schemaVersion
* The version number of your data schema. Amazon AppFlow assigns this version number. The version number
* increases by one when you change any of the following settings in your flow configuration:
*
* -
*
* Source-to-destination field mappings
*
*
* -
*
* Field data types
*
*
* -
*
* Partition keys
*
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeFlowResult withSchemaVersion(Long schemaVersion) {
setSchemaVersion(schemaVersion);
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 (getKmsArn() != null)
sb.append("KmsArn: ").append(getKmsArn()).append(",");
if (getFlowStatus() != null)
sb.append("FlowStatus: ").append(getFlowStatus()).append(",");
if (getFlowStatusMessage() != null)
sb.append("FlowStatusMessage: ").append(getFlowStatusMessage()).append(",");
if (getSourceFlowConfig() != null)
sb.append("SourceFlowConfig: ").append(getSourceFlowConfig()).append(",");
if (getDestinationFlowConfigList() != null)
sb.append("DestinationFlowConfigList: ").append(getDestinationFlowConfigList()).append(",");
if (getLastRunExecutionDetails() != null)
sb.append("LastRunExecutionDetails: ").append(getLastRunExecutionDetails()).append(",");
if (getTriggerConfig() != null)
sb.append("TriggerConfig: ").append(getTriggerConfig()).append(",");
if (getTasks() != null)
sb.append("Tasks: ").append(getTasks()).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 (getMetadataCatalogConfig() != null)
sb.append("MetadataCatalogConfig: ").append(getMetadataCatalogConfig()).append(",");
if (getLastRunMetadataCatalogDetails() != null)
sb.append("LastRunMetadataCatalogDetails: ").append(getLastRunMetadataCatalogDetails()).append(",");
if (getSchemaVersion() != null)
sb.append("SchemaVersion: ").append(getSchemaVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeFlowResult == false)
return false;
DescribeFlowResult other = (DescribeFlowResult) 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.getKmsArn() == null ^ this.getKmsArn() == null)
return false;
if (other.getKmsArn() != null && other.getKmsArn().equals(this.getKmsArn()) == 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.getFlowStatusMessage() == null ^ this.getFlowStatusMessage() == null)
return false;
if (other.getFlowStatusMessage() != null && other.getFlowStatusMessage().equals(this.getFlowStatusMessage()) == false)
return false;
if (other.getSourceFlowConfig() == null ^ this.getSourceFlowConfig() == null)
return false;
if (other.getSourceFlowConfig() != null && other.getSourceFlowConfig().equals(this.getSourceFlowConfig()) == false)
return false;
if (other.getDestinationFlowConfigList() == null ^ this.getDestinationFlowConfigList() == null)
return false;
if (other.getDestinationFlowConfigList() != null && other.getDestinationFlowConfigList().equals(this.getDestinationFlowConfigList()) == false)
return false;
if (other.getLastRunExecutionDetails() == null ^ this.getLastRunExecutionDetails() == null)
return false;
if (other.getLastRunExecutionDetails() != null && other.getLastRunExecutionDetails().equals(this.getLastRunExecutionDetails()) == false)
return false;
if (other.getTriggerConfig() == null ^ this.getTriggerConfig() == null)
return false;
if (other.getTriggerConfig() != null && other.getTriggerConfig().equals(this.getTriggerConfig()) == false)
return false;
if (other.getTasks() == null ^ this.getTasks() == null)
return false;
if (other.getTasks() != null && other.getTasks().equals(this.getTasks()) == 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.getMetadataCatalogConfig() == null ^ this.getMetadataCatalogConfig() == null)
return false;
if (other.getMetadataCatalogConfig() != null && other.getMetadataCatalogConfig().equals(this.getMetadataCatalogConfig()) == false)
return false;
if (other.getLastRunMetadataCatalogDetails() == null ^ this.getLastRunMetadataCatalogDetails() == null)
return false;
if (other.getLastRunMetadataCatalogDetails() != null
&& other.getLastRunMetadataCatalogDetails().equals(this.getLastRunMetadataCatalogDetails()) == false)
return false;
if (other.getSchemaVersion() == null ^ this.getSchemaVersion() == null)
return false;
if (other.getSchemaVersion() != null && other.getSchemaVersion().equals(this.getSchemaVersion()) == 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 + ((getKmsArn() == null) ? 0 : getKmsArn().hashCode());
hashCode = prime * hashCode + ((getFlowStatus() == null) ? 0 : getFlowStatus().hashCode());
hashCode = prime * hashCode + ((getFlowStatusMessage() == null) ? 0 : getFlowStatusMessage().hashCode());
hashCode = prime * hashCode + ((getSourceFlowConfig() == null) ? 0 : getSourceFlowConfig().hashCode());
hashCode = prime * hashCode + ((getDestinationFlowConfigList() == null) ? 0 : getDestinationFlowConfigList().hashCode());
hashCode = prime * hashCode + ((getLastRunExecutionDetails() == null) ? 0 : getLastRunExecutionDetails().hashCode());
hashCode = prime * hashCode + ((getTriggerConfig() == null) ? 0 : getTriggerConfig().hashCode());
hashCode = prime * hashCode + ((getTasks() == null) ? 0 : getTasks().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 + ((getMetadataCatalogConfig() == null) ? 0 : getMetadataCatalogConfig().hashCode());
hashCode = prime * hashCode + ((getLastRunMetadataCatalogDetails() == null) ? 0 : getLastRunMetadataCatalogDetails().hashCode());
hashCode = prime * hashCode + ((getSchemaVersion() == null) ? 0 : getSchemaVersion().hashCode());
return hashCode;
}
@Override
public DescribeFlowResult clone() {
try {
return (DescribeFlowResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}