com.amazonaws.services.appflow.model.DescribeConnectorEntityRequest 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.AmazonWebServiceRequest;
/**
*
* @see AWS
* API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeConnectorEntityRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable {
/**
*
* The entity name for that connector.
*
*/
private String connectorEntityName;
/**
*
* The type of connector application, such as Salesforce, Amplitude, and so on.
*
*/
private String connectorType;
/**
*
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
*/
private String connectorProfileName;
/**
*
* The version of the API that's used by the connector.
*
*/
private String apiVersion;
/**
*
* The entity name for that connector.
*
*
* @param connectorEntityName
* The entity name for that connector.
*/
public void setConnectorEntityName(String connectorEntityName) {
this.connectorEntityName = connectorEntityName;
}
/**
*
* The entity name for that connector.
*
*
* @return The entity name for that connector.
*/
public String getConnectorEntityName() {
return this.connectorEntityName;
}
/**
*
* The entity name for that connector.
*
*
* @param connectorEntityName
* The entity name for that connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorEntityRequest withConnectorEntityName(String connectorEntityName) {
setConnectorEntityName(connectorEntityName);
return this;
}
/**
*
* The type of connector application, such as Salesforce, Amplitude, and so on.
*
*
* @param connectorType
* The type of connector application, such as Salesforce, Amplitude, and so on.
* @see ConnectorType
*/
public void setConnectorType(String connectorType) {
this.connectorType = connectorType;
}
/**
*
* The type of connector application, such as Salesforce, Amplitude, and so on.
*
*
* @return The type of connector application, such as Salesforce, Amplitude, and so on.
* @see ConnectorType
*/
public String getConnectorType() {
return this.connectorType;
}
/**
*
* The type of connector application, such as Salesforce, Amplitude, and so on.
*
*
* @param connectorType
* The type of connector application, 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 DescribeConnectorEntityRequest withConnectorType(String connectorType) {
setConnectorType(connectorType);
return this;
}
/**
*
* The type of connector application, such as Salesforce, Amplitude, and so on.
*
*
* @param connectorType
* The type of connector application, 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 DescribeConnectorEntityRequest withConnectorType(ConnectorType connectorType) {
this.connectorType = connectorType.toString();
return this;
}
/**
*
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
*
* @param connectorProfileName
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon
* Web Services account.
*/
public void setConnectorProfileName(String connectorProfileName) {
this.connectorProfileName = connectorProfileName;
}
/**
*
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
*
* @return The name of the connector profile. The name is unique for each ConnectorProfile
in the
* Amazon Web Services account.
*/
public String getConnectorProfileName() {
return this.connectorProfileName;
}
/**
*
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon Web
* Services account.
*
*
* @param connectorProfileName
* The name of the connector profile. The name is unique for each ConnectorProfile
in the Amazon
* Web Services account.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorEntityRequest withConnectorProfileName(String connectorProfileName) {
setConnectorProfileName(connectorProfileName);
return this;
}
/**
*
* The version of the API that's used by the connector.
*
*
* @param apiVersion
* The version of the API that's used by the connector.
*/
public void setApiVersion(String apiVersion) {
this.apiVersion = apiVersion;
}
/**
*
* The version of the API that's used by the connector.
*
*
* @return The version of the API that's used by the connector.
*/
public String getApiVersion() {
return this.apiVersion;
}
/**
*
* The version of the API that's used by the connector.
*
*
* @param apiVersion
* The version of the API that's used by the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorEntityRequest withApiVersion(String apiVersion) {
setApiVersion(apiVersion);
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 (getConnectorEntityName() != null)
sb.append("ConnectorEntityName: ").append(getConnectorEntityName()).append(",");
if (getConnectorType() != null)
sb.append("ConnectorType: ").append(getConnectorType()).append(",");
if (getConnectorProfileName() != null)
sb.append("ConnectorProfileName: ").append(getConnectorProfileName()).append(",");
if (getApiVersion() != null)
sb.append("ApiVersion: ").append(getApiVersion());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeConnectorEntityRequest == false)
return false;
DescribeConnectorEntityRequest other = (DescribeConnectorEntityRequest) obj;
if (other.getConnectorEntityName() == null ^ this.getConnectorEntityName() == null)
return false;
if (other.getConnectorEntityName() != null && other.getConnectorEntityName().equals(this.getConnectorEntityName()) == false)
return false;
if (other.getConnectorType() == null ^ this.getConnectorType() == null)
return false;
if (other.getConnectorType() != null && other.getConnectorType().equals(this.getConnectorType()) == 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.getApiVersion() == null ^ this.getApiVersion() == null)
return false;
if (other.getApiVersion() != null && other.getApiVersion().equals(this.getApiVersion()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConnectorEntityName() == null) ? 0 : getConnectorEntityName().hashCode());
hashCode = prime * hashCode + ((getConnectorType() == null) ? 0 : getConnectorType().hashCode());
hashCode = prime * hashCode + ((getConnectorProfileName() == null) ? 0 : getConnectorProfileName().hashCode());
hashCode = prime * hashCode + ((getApiVersion() == null) ? 0 : getApiVersion().hashCode());
return hashCode;
}
@Override
public DescribeConnectorEntityRequest clone() {
return (DescribeConnectorEntityRequest) super.clone();
}
}