com.amazonaws.services.appflow.model.ConnectorDetail 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;
/**
*
* Information about the registered connector.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ConnectorDetail implements Serializable, Cloneable, StructuredPojo {
/**
*
* A description about the registered connector.
*
*/
private String connectorDescription;
/**
*
* The name of the connector.
*
*/
private String connectorName;
/**
*
* The owner of the connector.
*
*/
private String connectorOwner;
/**
*
* The connector version.
*
*/
private String connectorVersion;
/**
*
* The application type of the connector.
*
*/
private String applicationType;
/**
*
* The connector type.
*
*/
private String connectorType;
/**
*
* A label used for the connector.
*
*/
private String connectorLabel;
/**
*
* The time at which the connector was registered.
*
*/
private java.util.Date registeredAt;
/**
*
* The user who registered the connector.
*
*/
private String registeredBy;
/**
*
* The provisioning type that the connector uses.
*
*/
private String connectorProvisioningType;
/**
*
* The connection mode that the connector supports.
*
*/
private java.util.List connectorModes;
/**
*
* The data transfer types that the connector supports.
*
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
*
*/
private java.util.List supportedDataTransferTypes;
/**
*
* A description about the registered connector.
*
*
* @param connectorDescription
* A description about the registered connector.
*/
public void setConnectorDescription(String connectorDescription) {
this.connectorDescription = connectorDescription;
}
/**
*
* A description about the registered connector.
*
*
* @return A description about the registered connector.
*/
public String getConnectorDescription() {
return this.connectorDescription;
}
/**
*
* A description about the registered connector.
*
*
* @param connectorDescription
* A description about the registered connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withConnectorDescription(String connectorDescription) {
setConnectorDescription(connectorDescription);
return this;
}
/**
*
* The name of the connector.
*
*
* @param connectorName
* The name of the connector.
*/
public void setConnectorName(String connectorName) {
this.connectorName = connectorName;
}
/**
*
* The name of the connector.
*
*
* @return The name of the connector.
*/
public String getConnectorName() {
return this.connectorName;
}
/**
*
* The name of the connector.
*
*
* @param connectorName
* The name of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withConnectorName(String connectorName) {
setConnectorName(connectorName);
return this;
}
/**
*
* The owner of the connector.
*
*
* @param connectorOwner
* The owner of the connector.
*/
public void setConnectorOwner(String connectorOwner) {
this.connectorOwner = connectorOwner;
}
/**
*
* The owner of the connector.
*
*
* @return The owner of the connector.
*/
public String getConnectorOwner() {
return this.connectorOwner;
}
/**
*
* The owner of the connector.
*
*
* @param connectorOwner
* The owner of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withConnectorOwner(String connectorOwner) {
setConnectorOwner(connectorOwner);
return this;
}
/**
*
* The connector version.
*
*
* @param connectorVersion
* The connector version.
*/
public void setConnectorVersion(String connectorVersion) {
this.connectorVersion = connectorVersion;
}
/**
*
* The connector version.
*
*
* @return The connector version.
*/
public String getConnectorVersion() {
return this.connectorVersion;
}
/**
*
* The connector version.
*
*
* @param connectorVersion
* The connector version.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withConnectorVersion(String connectorVersion) {
setConnectorVersion(connectorVersion);
return this;
}
/**
*
* The application type of the connector.
*
*
* @param applicationType
* The application type of the connector.
*/
public void setApplicationType(String applicationType) {
this.applicationType = applicationType;
}
/**
*
* The application type of the connector.
*
*
* @return The application type of the connector.
*/
public String getApplicationType() {
return this.applicationType;
}
/**
*
* The application type of the connector.
*
*
* @param applicationType
* The application type of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withApplicationType(String applicationType) {
setApplicationType(applicationType);
return this;
}
/**
*
* The connector type.
*
*
* @param connectorType
* The connector type.
* @see ConnectorType
*/
public void setConnectorType(String connectorType) {
this.connectorType = connectorType;
}
/**
*
* The connector type.
*
*
* @return The connector type.
* @see ConnectorType
*/
public String getConnectorType() {
return this.connectorType;
}
/**
*
* The connector type.
*
*
* @param connectorType
* The connector type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectorType
*/
public ConnectorDetail withConnectorType(String connectorType) {
setConnectorType(connectorType);
return this;
}
/**
*
* The connector type.
*
*
* @param connectorType
* The connector type.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectorType
*/
public ConnectorDetail withConnectorType(ConnectorType connectorType) {
this.connectorType = connectorType.toString();
return this;
}
/**
*
* A label used for the connector.
*
*
* @param connectorLabel
* A label used for the connector.
*/
public void setConnectorLabel(String connectorLabel) {
this.connectorLabel = connectorLabel;
}
/**
*
* A label used for the connector.
*
*
* @return A label used for the connector.
*/
public String getConnectorLabel() {
return this.connectorLabel;
}
/**
*
* A label used for the connector.
*
*
* @param connectorLabel
* A label used for the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withConnectorLabel(String connectorLabel) {
setConnectorLabel(connectorLabel);
return this;
}
/**
*
* The time at which the connector was registered.
*
*
* @param registeredAt
* The time at which the connector was registered.
*/
public void setRegisteredAt(java.util.Date registeredAt) {
this.registeredAt = registeredAt;
}
/**
*
* The time at which the connector was registered.
*
*
* @return The time at which the connector was registered.
*/
public java.util.Date getRegisteredAt() {
return this.registeredAt;
}
/**
*
* The time at which the connector was registered.
*
*
* @param registeredAt
* The time at which the connector was registered.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withRegisteredAt(java.util.Date registeredAt) {
setRegisteredAt(registeredAt);
return this;
}
/**
*
* The user who registered the connector.
*
*
* @param registeredBy
* The user who registered the connector.
*/
public void setRegisteredBy(String registeredBy) {
this.registeredBy = registeredBy;
}
/**
*
* The user who registered the connector.
*
*
* @return The user who registered the connector.
*/
public String getRegisteredBy() {
return this.registeredBy;
}
/**
*
* The user who registered the connector.
*
*
* @param registeredBy
* The user who registered the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withRegisteredBy(String registeredBy) {
setRegisteredBy(registeredBy);
return this;
}
/**
*
* The provisioning type that the connector uses.
*
*
* @param connectorProvisioningType
* The provisioning type that the connector uses.
* @see ConnectorProvisioningType
*/
public void setConnectorProvisioningType(String connectorProvisioningType) {
this.connectorProvisioningType = connectorProvisioningType;
}
/**
*
* The provisioning type that the connector uses.
*
*
* @return The provisioning type that the connector uses.
* @see ConnectorProvisioningType
*/
public String getConnectorProvisioningType() {
return this.connectorProvisioningType;
}
/**
*
* The provisioning type that the connector uses.
*
*
* @param connectorProvisioningType
* The provisioning type that the connector uses.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectorProvisioningType
*/
public ConnectorDetail withConnectorProvisioningType(String connectorProvisioningType) {
setConnectorProvisioningType(connectorProvisioningType);
return this;
}
/**
*
* The provisioning type that the connector uses.
*
*
* @param connectorProvisioningType
* The provisioning type that the connector uses.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectorProvisioningType
*/
public ConnectorDetail withConnectorProvisioningType(ConnectorProvisioningType connectorProvisioningType) {
this.connectorProvisioningType = connectorProvisioningType.toString();
return this;
}
/**
*
* The connection mode that the connector supports.
*
*
* @return The connection mode that the connector supports.
*/
public java.util.List getConnectorModes() {
return connectorModes;
}
/**
*
* The connection mode that the connector supports.
*
*
* @param connectorModes
* The connection mode that the connector supports.
*/
public void setConnectorModes(java.util.Collection connectorModes) {
if (connectorModes == null) {
this.connectorModes = null;
return;
}
this.connectorModes = new java.util.ArrayList(connectorModes);
}
/**
*
* The connection mode that the connector supports.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setConnectorModes(java.util.Collection)} or {@link #withConnectorModes(java.util.Collection)} if you want
* to override the existing values.
*
*
* @param connectorModes
* The connection mode that the connector supports.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withConnectorModes(String... connectorModes) {
if (this.connectorModes == null) {
setConnectorModes(new java.util.ArrayList(connectorModes.length));
}
for (String ele : connectorModes) {
this.connectorModes.add(ele);
}
return this;
}
/**
*
* The connection mode that the connector supports.
*
*
* @param connectorModes
* The connection mode that the connector supports.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ConnectorDetail withConnectorModes(java.util.Collection connectorModes) {
setConnectorModes(connectorModes);
return this;
}
/**
*
* The data transfer types that the connector supports.
*
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
*
*
* @return The data transfer types that the connector supports.
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
* @see SupportedDataTransferType
*/
public java.util.List getSupportedDataTransferTypes() {
return supportedDataTransferTypes;
}
/**
*
* The data transfer types that the connector supports.
*
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
*
*
* @param supportedDataTransferTypes
* The data transfer types that the connector supports.
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
* @see SupportedDataTransferType
*/
public void setSupportedDataTransferTypes(java.util.Collection supportedDataTransferTypes) {
if (supportedDataTransferTypes == null) {
this.supportedDataTransferTypes = null;
return;
}
this.supportedDataTransferTypes = new java.util.ArrayList(supportedDataTransferTypes);
}
/**
*
* The data transfer types that the connector supports.
*
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSupportedDataTransferTypes(java.util.Collection)} or
* {@link #withSupportedDataTransferTypes(java.util.Collection)} if you want to override the existing values.
*
*
* @param supportedDataTransferTypes
* The data transfer types that the connector supports.
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedDataTransferType
*/
public ConnectorDetail withSupportedDataTransferTypes(String... supportedDataTransferTypes) {
if (this.supportedDataTransferTypes == null) {
setSupportedDataTransferTypes(new java.util.ArrayList(supportedDataTransferTypes.length));
}
for (String ele : supportedDataTransferTypes) {
this.supportedDataTransferTypes.add(ele);
}
return this;
}
/**
*
* The data transfer types that the connector supports.
*
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
*
*
* @param supportedDataTransferTypes
* The data transfer types that the connector supports.
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedDataTransferType
*/
public ConnectorDetail withSupportedDataTransferTypes(java.util.Collection supportedDataTransferTypes) {
setSupportedDataTransferTypes(supportedDataTransferTypes);
return this;
}
/**
*
* The data transfer types that the connector supports.
*
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
*
*
* @param supportedDataTransferTypes
* The data transfer types that the connector supports.
*
* - RECORD
* -
*
* Structured records.
*
*
* - FILE
* -
*
* Files or binary data.
*
*
* @return Returns a reference to this object so that method calls can be chained together.
* @see SupportedDataTransferType
*/
public ConnectorDetail withSupportedDataTransferTypes(SupportedDataTransferType... supportedDataTransferTypes) {
java.util.ArrayList supportedDataTransferTypesCopy = new java.util.ArrayList(supportedDataTransferTypes.length);
for (SupportedDataTransferType value : supportedDataTransferTypes) {
supportedDataTransferTypesCopy.add(value.toString());
}
if (getSupportedDataTransferTypes() == null) {
setSupportedDataTransferTypes(supportedDataTransferTypesCopy);
} else {
getSupportedDataTransferTypes().addAll(supportedDataTransferTypesCopy);
}
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 (getConnectorDescription() != null)
sb.append("ConnectorDescription: ").append(getConnectorDescription()).append(",");
if (getConnectorName() != null)
sb.append("ConnectorName: ").append(getConnectorName()).append(",");
if (getConnectorOwner() != null)
sb.append("ConnectorOwner: ").append(getConnectorOwner()).append(",");
if (getConnectorVersion() != null)
sb.append("ConnectorVersion: ").append(getConnectorVersion()).append(",");
if (getApplicationType() != null)
sb.append("ApplicationType: ").append(getApplicationType()).append(",");
if (getConnectorType() != null)
sb.append("ConnectorType: ").append(getConnectorType()).append(",");
if (getConnectorLabel() != null)
sb.append("ConnectorLabel: ").append(getConnectorLabel()).append(",");
if (getRegisteredAt() != null)
sb.append("RegisteredAt: ").append(getRegisteredAt()).append(",");
if (getRegisteredBy() != null)
sb.append("RegisteredBy: ").append(getRegisteredBy()).append(",");
if (getConnectorProvisioningType() != null)
sb.append("ConnectorProvisioningType: ").append(getConnectorProvisioningType()).append(",");
if (getConnectorModes() != null)
sb.append("ConnectorModes: ").append(getConnectorModes()).append(",");
if (getSupportedDataTransferTypes() != null)
sb.append("SupportedDataTransferTypes: ").append(getSupportedDataTransferTypes());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ConnectorDetail == false)
return false;
ConnectorDetail other = (ConnectorDetail) obj;
if (other.getConnectorDescription() == null ^ this.getConnectorDescription() == null)
return false;
if (other.getConnectorDescription() != null && other.getConnectorDescription().equals(this.getConnectorDescription()) == false)
return false;
if (other.getConnectorName() == null ^ this.getConnectorName() == null)
return false;
if (other.getConnectorName() != null && other.getConnectorName().equals(this.getConnectorName()) == false)
return false;
if (other.getConnectorOwner() == null ^ this.getConnectorOwner() == null)
return false;
if (other.getConnectorOwner() != null && other.getConnectorOwner().equals(this.getConnectorOwner()) == false)
return false;
if (other.getConnectorVersion() == null ^ this.getConnectorVersion() == null)
return false;
if (other.getConnectorVersion() != null && other.getConnectorVersion().equals(this.getConnectorVersion()) == false)
return false;
if (other.getApplicationType() == null ^ this.getApplicationType() == null)
return false;
if (other.getApplicationType() != null && other.getApplicationType().equals(this.getApplicationType()) == 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.getConnectorLabel() == null ^ this.getConnectorLabel() == null)
return false;
if (other.getConnectorLabel() != null && other.getConnectorLabel().equals(this.getConnectorLabel()) == false)
return false;
if (other.getRegisteredAt() == null ^ this.getRegisteredAt() == null)
return false;
if (other.getRegisteredAt() != null && other.getRegisteredAt().equals(this.getRegisteredAt()) == false)
return false;
if (other.getRegisteredBy() == null ^ this.getRegisteredBy() == null)
return false;
if (other.getRegisteredBy() != null && other.getRegisteredBy().equals(this.getRegisteredBy()) == false)
return false;
if (other.getConnectorProvisioningType() == null ^ this.getConnectorProvisioningType() == null)
return false;
if (other.getConnectorProvisioningType() != null && other.getConnectorProvisioningType().equals(this.getConnectorProvisioningType()) == false)
return false;
if (other.getConnectorModes() == null ^ this.getConnectorModes() == null)
return false;
if (other.getConnectorModes() != null && other.getConnectorModes().equals(this.getConnectorModes()) == false)
return false;
if (other.getSupportedDataTransferTypes() == null ^ this.getSupportedDataTransferTypes() == null)
return false;
if (other.getSupportedDataTransferTypes() != null && other.getSupportedDataTransferTypes().equals(this.getSupportedDataTransferTypes()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConnectorDescription() == null) ? 0 : getConnectorDescription().hashCode());
hashCode = prime * hashCode + ((getConnectorName() == null) ? 0 : getConnectorName().hashCode());
hashCode = prime * hashCode + ((getConnectorOwner() == null) ? 0 : getConnectorOwner().hashCode());
hashCode = prime * hashCode + ((getConnectorVersion() == null) ? 0 : getConnectorVersion().hashCode());
hashCode = prime * hashCode + ((getApplicationType() == null) ? 0 : getApplicationType().hashCode());
hashCode = prime * hashCode + ((getConnectorType() == null) ? 0 : getConnectorType().hashCode());
hashCode = prime * hashCode + ((getConnectorLabel() == null) ? 0 : getConnectorLabel().hashCode());
hashCode = prime * hashCode + ((getRegisteredAt() == null) ? 0 : getRegisteredAt().hashCode());
hashCode = prime * hashCode + ((getRegisteredBy() == null) ? 0 : getRegisteredBy().hashCode());
hashCode = prime * hashCode + ((getConnectorProvisioningType() == null) ? 0 : getConnectorProvisioningType().hashCode());
hashCode = prime * hashCode + ((getConnectorModes() == null) ? 0 : getConnectorModes().hashCode());
hashCode = prime * hashCode + ((getSupportedDataTransferTypes() == null) ? 0 : getSupportedDataTransferTypes().hashCode());
return hashCode;
}
@Override
public ConnectorDetail clone() {
try {
return (ConnectorDetail) 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.ConnectorDetailMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}