com.amazonaws.services.appflow.model.DestinationFlowConfig Maven / Gradle / Ivy
/*
* 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 destination connectors present in the flow.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DestinationFlowConfig implements Serializable, Cloneable, StructuredPojo {
/**
*
* The type of connector, such as Salesforce, Amplitude, and so on.
*
*/
private String connectorType;
/**
*
* The API version that the destination connector uses.
*
*/
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;
/**
*
* This stores the information that is required to query a particular connector.
*
*/
private DestinationConnectorProperties destinationConnectorProperties;
/**
*
* 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 DestinationFlowConfig 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 DestinationFlowConfig withConnectorType(ConnectorType connectorType) {
this.connectorType = connectorType.toString();
return this;
}
/**
*
* The API version that the destination connector uses.
*
*
* @param apiVersion
* The API version that the destination connector uses.
*/
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
/**
*
* The API version that the destination connector uses.
*
*
* @return The API version that the destination connector uses.
*/
public String getApiVersion() {
return this.apiVersion;
}
/**
*
* The API version that the destination connector uses.
*
*
* @param apiVersion
* The API version that the destination connector uses.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DestinationFlowConfig 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 DestinationFlowConfig withConnectorProfileName(String connectorProfileName) {
setConnectorProfileName(connectorProfileName);
return this;
}
/**
*
* This stores the information that is required to query a particular connector.
*
*
* @param destinationConnectorProperties
* This stores the information that is required to query a particular connector.
*/
public void setDestinationConnectorProperties(DestinationConnectorProperties destinationConnectorProperties) {
this.destinationConnectorProperties = destinationConnectorProperties;
}
/**
*
* This stores the information that is required to query a particular connector.
*
*
* @return This stores the information that is required to query a particular connector.
*/
public DestinationConnectorProperties getDestinationConnectorProperties() {
return this.destinationConnectorProperties;
}
/**
*
* This stores the information that is required to query a particular connector.
*
*
* @param destinationConnectorProperties
* This stores the information that is required to query a particular connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DestinationFlowConfig withDestinationConnectorProperties(DestinationConnectorProperties destinationConnectorProperties) {
setDestinationConnectorProperties(destinationConnectorProperties);
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 (getDestinationConnectorProperties() != null)
sb.append("DestinationConnectorProperties: ").append(getDestinationConnectorProperties());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DestinationFlowConfig == false)
return false;
DestinationFlowConfig other = (DestinationFlowConfig) 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.getDestinationConnectorProperties() == null ^ this.getDestinationConnectorProperties() == null)
return false;
if (other.getDestinationConnectorProperties() != null
&& other.getDestinationConnectorProperties().equals(this.getDestinationConnectorProperties()) == 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 + ((getDestinationConnectorProperties() == null) ? 0 : getDestinationConnectorProperties().hashCode());
return hashCode;
}
@Override
public DestinationFlowConfig clone() {
try {
return (DestinationFlowConfig) 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.DestinationFlowConfigMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}