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

com.amazonaws.services.appflow.model.SourceFlowConfig 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;

/**
 * 

* Contains information about the configuration of the source connector used in the flow. *

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

* The type of connector, such as Salesforce, Amplitude, and so on. *

*/ private String connectorType; /** *

* The API version of the connector when it's used as a source in the flow. *

*/ private String apiVersion; /** *

* The name of the connector profile. This name must be unique for each connector profile in the Amazon Web Services * account. *

*/ private String connectorProfileName; /** *

* Specifies the information that is required to query a particular source connector. *

*/ private SourceConnectorProperties sourceConnectorProperties; /** *

* Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields * specified in the configuration are used when querying for the incremental data pull. *

*/ private IncrementalPullConfig incrementalPullConfig; /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @param connectorType * The type of connector, such as Salesforce, Amplitude, and so on. * @see ConnectorType */ public void setConnectorType(String connectorType) { this.connectorType = connectorType; } /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @return The type of connector, such as Salesforce, Amplitude, and so on. * @see ConnectorType */ public String getConnectorType() { return this.connectorType; } /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @param connectorType * The type of connector, such as Salesforce, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public SourceFlowConfig withConnectorType(String connectorType) { setConnectorType(connectorType); return this; } /** *

* The type of connector, such as Salesforce, Amplitude, and so on. *

* * @param connectorType * The type of connector, such as Salesforce, Amplitude, and so on. * @return Returns a reference to this object so that method calls can be chained together. * @see ConnectorType */ public SourceFlowConfig withConnectorType(ConnectorType connectorType) { this.connectorType = connectorType.toString(); return this; } /** *

* The API version of the connector when it's used as a source in the flow. *

* * @param apiVersion * The API version of the connector when it's used as a source in the flow. */ public void setApiVersion(String apiVersion) { this.apiVersion = apiVersion; } /** *

* The API version of the connector when it's used as a source in the flow. *

* * @return The API version of the connector when it's used as a source in the flow. */ public String getApiVersion() { return this.apiVersion; } /** *

* The API version of the connector when it's used as a source in the flow. *

* * @param apiVersion * The API version of the connector when it's used as a source in the flow. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceFlowConfig withApiVersion(String apiVersion) { setApiVersion(apiVersion); return this; } /** *

* The name of the connector profile. This name must be unique for each connector profile in the Amazon Web Services * account. *

* * @param connectorProfileName * The name of the connector profile. This name must be unique for each connector profile in the Amazon Web * Services account. */ public void setConnectorProfileName(String connectorProfileName) { this.connectorProfileName = connectorProfileName; } /** *

* The name of the connector profile. This name must be unique for each connector profile in the Amazon Web Services * account. *

* * @return The name of the connector profile. This name must be unique for each connector profile in the Amazon Web * Services account. */ public String getConnectorProfileName() { return this.connectorProfileName; } /** *

* The name of the connector profile. This name must be unique for each connector profile in the Amazon Web Services * account. *

* * @param connectorProfileName * The name of the connector profile. This name must be unique for each connector profile in the Amazon Web * Services account. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceFlowConfig withConnectorProfileName(String connectorProfileName) { setConnectorProfileName(connectorProfileName); return this; } /** *

* Specifies the information that is required to query a particular source connector. *

* * @param sourceConnectorProperties * Specifies the information that is required to query a particular source connector. */ public void setSourceConnectorProperties(SourceConnectorProperties sourceConnectorProperties) { this.sourceConnectorProperties = sourceConnectorProperties; } /** *

* Specifies the information that is required to query a particular source connector. *

* * @return Specifies the information that is required to query a particular source connector. */ public SourceConnectorProperties getSourceConnectorProperties() { return this.sourceConnectorProperties; } /** *

* Specifies the information that is required to query a particular source connector. *

* * @param sourceConnectorProperties * Specifies the information that is required to query a particular source connector. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceFlowConfig withSourceConnectorProperties(SourceConnectorProperties sourceConnectorProperties) { setSourceConnectorProperties(sourceConnectorProperties); return this; } /** *

* Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields * specified in the configuration are used when querying for the incremental data pull. *

* * @param incrementalPullConfig * Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the * fields specified in the configuration are used when querying for the incremental data pull. */ public void setIncrementalPullConfig(IncrementalPullConfig incrementalPullConfig) { this.incrementalPullConfig = incrementalPullConfig; } /** *

* Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields * specified in the configuration are used when querying for the incremental data pull. *

* * @return Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, * the fields specified in the configuration are used when querying for the incremental data pull. */ public IncrementalPullConfig getIncrementalPullConfig() { return this.incrementalPullConfig; } /** *

* Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the fields * specified in the configuration are used when querying for the incremental data pull. *

* * @param incrementalPullConfig * Defines the configuration for a scheduled incremental data pull. If a valid configuration is provided, the * fields specified in the configuration are used when querying for the incremental data pull. * @return Returns a reference to this object so that method calls can be chained together. */ public SourceFlowConfig withIncrementalPullConfig(IncrementalPullConfig incrementalPullConfig) { setIncrementalPullConfig(incrementalPullConfig); 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 (getConnectorType() != null) sb.append("ConnectorType: ").append(getConnectorType()).append(","); if (getApiVersion() != null) sb.append("ApiVersion: ").append(getApiVersion()).append(","); if (getConnectorProfileName() != null) sb.append("ConnectorProfileName: ").append(getConnectorProfileName()).append(","); if (getSourceConnectorProperties() != null) sb.append("SourceConnectorProperties: ").append(getSourceConnectorProperties()).append(","); if (getIncrementalPullConfig() != null) sb.append("IncrementalPullConfig: ").append(getIncrementalPullConfig()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SourceFlowConfig == false) return false; SourceFlowConfig other = (SourceFlowConfig) obj; if (other.getConnectorType() == null ^ this.getConnectorType() == null) return false; if (other.getConnectorType() != null && other.getConnectorType().equals(this.getConnectorType()) == false) return false; if (other.getApiVersion() == null ^ this.getApiVersion() == null) return false; if (other.getApiVersion() != null && other.getApiVersion().equals(this.getApiVersion()) == false) return false; if (other.getConnectorProfileName() == null ^ this.getConnectorProfileName() == null) return false; if (other.getConnectorProfileName() != null && other.getConnectorProfileName().equals(this.getConnectorProfileName()) == false) return false; if (other.getSourceConnectorProperties() == null ^ this.getSourceConnectorProperties() == null) return false; if (other.getSourceConnectorProperties() != null && other.getSourceConnectorProperties().equals(this.getSourceConnectorProperties()) == false) return false; if (other.getIncrementalPullConfig() == null ^ this.getIncrementalPullConfig() == null) return false; if (other.getIncrementalPullConfig() != null && other.getIncrementalPullConfig().equals(this.getIncrementalPullConfig()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getConnectorType() == null) ? 0 : getConnectorType().hashCode()); hashCode = prime * hashCode + ((getApiVersion() == null) ? 0 : getApiVersion().hashCode()); hashCode = prime * hashCode + ((getConnectorProfileName() == null) ? 0 : getConnectorProfileName().hashCode()); hashCode = prime * hashCode + ((getSourceConnectorProperties() == null) ? 0 : getSourceConnectorProperties().hashCode()); hashCode = prime * hashCode + ((getIncrementalPullConfig() == null) ? 0 : getIncrementalPullConfig().hashCode()); return hashCode; } @Override public SourceFlowConfig clone() { try { return (SourceFlowConfig) 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.SourceFlowConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy