com.amazonaws.services.kafkaconnect.model.DescribeConnectorResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-kafkaconnect 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.kafkaconnect.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class DescribeConnectorResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Information about the capacity of the connector, whether it is auto scaled or provisioned.
*
*/
private CapacityDescription capacity;
/**
*
* The Amazon Resource Name (ARN) of the connector.
*
*/
private String connectorArn;
/**
*
* A map of keys to values that represent the configuration for the connector.
*
*/
private java.util.Map connectorConfiguration;
/**
*
* A summary description of the connector.
*
*/
private String connectorDescription;
/**
*
* The name of the connector.
*
*/
private String connectorName;
/**
*
* The state of the connector.
*
*/
private String connectorState;
/**
*
* The time the connector was created.
*
*/
private java.util.Date creationTime;
/**
*
* The current version of the connector.
*
*/
private String currentVersion;
/**
*
* The Apache Kafka cluster that the connector is connected to.
*
*/
private KafkaClusterDescription kafkaCluster;
/**
*
* The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client
* authentication is used.
*
*/
private KafkaClusterClientAuthenticationDescription kafkaClusterClientAuthentication;
/**
*
* Details of encryption in transit to the Apache Kafka cluster.
*
*/
private KafkaClusterEncryptionInTransitDescription kafkaClusterEncryptionInTransit;
/**
*
* The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the
* plugins.
*
*/
private String kafkaConnectVersion;
/**
*
* Details about delivering logs to Amazon CloudWatch Logs.
*
*/
private LogDeliveryDescription logDelivery;
/**
*
* Specifies which plugins were used for this connector.
*
*/
private java.util.List plugins;
/**
*
* The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.
*
*/
private String serviceExecutionRoleArn;
/**
*
* Details about the state of a connector.
*
*/
private StateDescription stateDescription;
/**
*
* Specifies which worker configuration was used for the connector.
*
*/
private WorkerConfigurationDescription workerConfiguration;
/**
*
* Information about the capacity of the connector, whether it is auto scaled or provisioned.
*
*
* @param capacity
* Information about the capacity of the connector, whether it is auto scaled or provisioned.
*/
public void setCapacity(CapacityDescription capacity) {
this.capacity = capacity;
}
/**
*
* Information about the capacity of the connector, whether it is auto scaled or provisioned.
*
*
* @return Information about the capacity of the connector, whether it is auto scaled or provisioned.
*/
public CapacityDescription getCapacity() {
return this.capacity;
}
/**
*
* Information about the capacity of the connector, whether it is auto scaled or provisioned.
*
*
* @param capacity
* Information about the capacity of the connector, whether it is auto scaled or provisioned.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withCapacity(CapacityDescription capacity) {
setCapacity(capacity);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the connector.
*
*
* @param connectorArn
* The Amazon Resource Name (ARN) of the connector.
*/
public void setConnectorArn(String connectorArn) {
this.connectorArn = connectorArn;
}
/**
*
* The Amazon Resource Name (ARN) of the connector.
*
*
* @return The Amazon Resource Name (ARN) of the connector.
*/
public String getConnectorArn() {
return this.connectorArn;
}
/**
*
* The Amazon Resource Name (ARN) of the connector.
*
*
* @param connectorArn
* The Amazon Resource Name (ARN) of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withConnectorArn(String connectorArn) {
setConnectorArn(connectorArn);
return this;
}
/**
*
* A map of keys to values that represent the configuration for the connector.
*
*
* @return A map of keys to values that represent the configuration for the connector.
*/
public java.util.Map getConnectorConfiguration() {
return connectorConfiguration;
}
/**
*
* A map of keys to values that represent the configuration for the connector.
*
*
* @param connectorConfiguration
* A map of keys to values that represent the configuration for the connector.
*/
public void setConnectorConfiguration(java.util.Map connectorConfiguration) {
this.connectorConfiguration = connectorConfiguration;
}
/**
*
* A map of keys to values that represent the configuration for the connector.
*
*
* @param connectorConfiguration
* A map of keys to values that represent the configuration for the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withConnectorConfiguration(java.util.Map connectorConfiguration) {
setConnectorConfiguration(connectorConfiguration);
return this;
}
/**
* Add a single ConnectorConfiguration entry
*
* @see DescribeConnectorResult#withConnectorConfiguration
* @returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult addConnectorConfigurationEntry(String key, String value) {
if (null == this.connectorConfiguration) {
this.connectorConfiguration = new java.util.HashMap();
}
if (this.connectorConfiguration.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.connectorConfiguration.put(key, value);
return this;
}
/**
* Removes all the entries added into ConnectorConfiguration.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult clearConnectorConfigurationEntries() {
this.connectorConfiguration = null;
return this;
}
/**
*
* A summary description of the connector.
*
*
* @param connectorDescription
* A summary description of the connector.
*/
public void setConnectorDescription(String connectorDescription) {
this.connectorDescription = connectorDescription;
}
/**
*
* A summary description of the connector.
*
*
* @return A summary description of the connector.
*/
public String getConnectorDescription() {
return this.connectorDescription;
}
/**
*
* A summary description of the connector.
*
*
* @param connectorDescription
* A summary description of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult 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 DescribeConnectorResult withConnectorName(String connectorName) {
setConnectorName(connectorName);
return this;
}
/**
*
* The state of the connector.
*
*
* @param connectorState
* The state of the connector.
* @see ConnectorState
*/
public void setConnectorState(String connectorState) {
this.connectorState = connectorState;
}
/**
*
* The state of the connector.
*
*
* @return The state of the connector.
* @see ConnectorState
*/
public String getConnectorState() {
return this.connectorState;
}
/**
*
* The state of the connector.
*
*
* @param connectorState
* The state of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectorState
*/
public DescribeConnectorResult withConnectorState(String connectorState) {
setConnectorState(connectorState);
return this;
}
/**
*
* The state of the connector.
*
*
* @param connectorState
* The state of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectorState
*/
public DescribeConnectorResult withConnectorState(ConnectorState connectorState) {
this.connectorState = connectorState.toString();
return this;
}
/**
*
* The time the connector was created.
*
*
* @param creationTime
* The time the connector was created.
*/
public void setCreationTime(java.util.Date creationTime) {
this.creationTime = creationTime;
}
/**
*
* The time the connector was created.
*
*
* @return The time the connector was created.
*/
public java.util.Date getCreationTime() {
return this.creationTime;
}
/**
*
* The time the connector was created.
*
*
* @param creationTime
* The time the connector was created.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withCreationTime(java.util.Date creationTime) {
setCreationTime(creationTime);
return this;
}
/**
*
* The current version of the connector.
*
*
* @param currentVersion
* The current version of the connector.
*/
public void setCurrentVersion(String currentVersion) {
this.currentVersion = currentVersion;
}
/**
*
* The current version of the connector.
*
*
* @return The current version of the connector.
*/
public String getCurrentVersion() {
return this.currentVersion;
}
/**
*
* The current version of the connector.
*
*
* @param currentVersion
* The current version of the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withCurrentVersion(String currentVersion) {
setCurrentVersion(currentVersion);
return this;
}
/**
*
* The Apache Kafka cluster that the connector is connected to.
*
*
* @param kafkaCluster
* The Apache Kafka cluster that the connector is connected to.
*/
public void setKafkaCluster(KafkaClusterDescription kafkaCluster) {
this.kafkaCluster = kafkaCluster;
}
/**
*
* The Apache Kafka cluster that the connector is connected to.
*
*
* @return The Apache Kafka cluster that the connector is connected to.
*/
public KafkaClusterDescription getKafkaCluster() {
return this.kafkaCluster;
}
/**
*
* The Apache Kafka cluster that the connector is connected to.
*
*
* @param kafkaCluster
* The Apache Kafka cluster that the connector is connected to.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withKafkaCluster(KafkaClusterDescription kafkaCluster) {
setKafkaCluster(kafkaCluster);
return this;
}
/**
*
* The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client
* authentication is used.
*
*
* @param kafkaClusterClientAuthentication
* The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no
* client authentication is used.
*/
public void setKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationDescription kafkaClusterClientAuthentication) {
this.kafkaClusterClientAuthentication = kafkaClusterClientAuthentication;
}
/**
*
* The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client
* authentication is used.
*
*
* @return The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no
* client authentication is used.
*/
public KafkaClusterClientAuthenticationDescription getKafkaClusterClientAuthentication() {
return this.kafkaClusterClientAuthentication;
}
/**
*
* The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no client
* authentication is used.
*
*
* @param kafkaClusterClientAuthentication
* The type of client authentication used to connect to the Apache Kafka cluster. The value is NONE when no
* client authentication is used.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withKafkaClusterClientAuthentication(KafkaClusterClientAuthenticationDescription kafkaClusterClientAuthentication) {
setKafkaClusterClientAuthentication(kafkaClusterClientAuthentication);
return this;
}
/**
*
* Details of encryption in transit to the Apache Kafka cluster.
*
*
* @param kafkaClusterEncryptionInTransit
* Details of encryption in transit to the Apache Kafka cluster.
*/
public void setKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitDescription kafkaClusterEncryptionInTransit) {
this.kafkaClusterEncryptionInTransit = kafkaClusterEncryptionInTransit;
}
/**
*
* Details of encryption in transit to the Apache Kafka cluster.
*
*
* @return Details of encryption in transit to the Apache Kafka cluster.
*/
public KafkaClusterEncryptionInTransitDescription getKafkaClusterEncryptionInTransit() {
return this.kafkaClusterEncryptionInTransit;
}
/**
*
* Details of encryption in transit to the Apache Kafka cluster.
*
*
* @param kafkaClusterEncryptionInTransit
* Details of encryption in transit to the Apache Kafka cluster.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withKafkaClusterEncryptionInTransit(KafkaClusterEncryptionInTransitDescription kafkaClusterEncryptionInTransit) {
setKafkaClusterEncryptionInTransit(kafkaClusterEncryptionInTransit);
return this;
}
/**
*
* The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the
* plugins.
*
*
* @param kafkaConnectVersion
* The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the
* plugins.
*/
public void setKafkaConnectVersion(String kafkaConnectVersion) {
this.kafkaConnectVersion = kafkaConnectVersion;
}
/**
*
* The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the
* plugins.
*
*
* @return The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and
* the plugins.
*/
public String getKafkaConnectVersion() {
return this.kafkaConnectVersion;
}
/**
*
* The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the
* plugins.
*
*
* @param kafkaConnectVersion
* The version of Kafka Connect. It has to be compatible with both the Apache Kafka cluster's version and the
* plugins.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withKafkaConnectVersion(String kafkaConnectVersion) {
setKafkaConnectVersion(kafkaConnectVersion);
return this;
}
/**
*
* Details about delivering logs to Amazon CloudWatch Logs.
*
*
* @param logDelivery
* Details about delivering logs to Amazon CloudWatch Logs.
*/
public void setLogDelivery(LogDeliveryDescription logDelivery) {
this.logDelivery = logDelivery;
}
/**
*
* Details about delivering logs to Amazon CloudWatch Logs.
*
*
* @return Details about delivering logs to Amazon CloudWatch Logs.
*/
public LogDeliveryDescription getLogDelivery() {
return this.logDelivery;
}
/**
*
* Details about delivering logs to Amazon CloudWatch Logs.
*
*
* @param logDelivery
* Details about delivering logs to Amazon CloudWatch Logs.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withLogDelivery(LogDeliveryDescription logDelivery) {
setLogDelivery(logDelivery);
return this;
}
/**
*
* Specifies which plugins were used for this connector.
*
*
* @return Specifies which plugins were used for this connector.
*/
public java.util.List getPlugins() {
return plugins;
}
/**
*
* Specifies which plugins were used for this connector.
*
*
* @param plugins
* Specifies which plugins were used for this connector.
*/
public void setPlugins(java.util.Collection plugins) {
if (plugins == null) {
this.plugins = null;
return;
}
this.plugins = new java.util.ArrayList(plugins);
}
/**
*
* Specifies which plugins were used for this connector.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setPlugins(java.util.Collection)} or {@link #withPlugins(java.util.Collection)} if you want to override
* the existing values.
*
*
* @param plugins
* Specifies which plugins were used for this connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withPlugins(PluginDescription... plugins) {
if (this.plugins == null) {
setPlugins(new java.util.ArrayList(plugins.length));
}
for (PluginDescription ele : plugins) {
this.plugins.add(ele);
}
return this;
}
/**
*
* Specifies which plugins were used for this connector.
*
*
* @param plugins
* Specifies which plugins were used for this connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withPlugins(java.util.Collection plugins) {
setPlugins(plugins);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.
*
*
* @param serviceExecutionRoleArn
* The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services
* resources.
*/
public void setServiceExecutionRoleArn(String serviceExecutionRoleArn) {
this.serviceExecutionRoleArn = serviceExecutionRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.
*
*
* @return The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services
* resources.
*/
public String getServiceExecutionRoleArn() {
return this.serviceExecutionRoleArn;
}
/**
*
* The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services resources.
*
*
* @param serviceExecutionRoleArn
* The Amazon Resource Name (ARN) of the IAM role used by the connector to access Amazon Web Services
* resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withServiceExecutionRoleArn(String serviceExecutionRoleArn) {
setServiceExecutionRoleArn(serviceExecutionRoleArn);
return this;
}
/**
*
* Details about the state of a connector.
*
*
* @param stateDescription
* Details about the state of a connector.
*/
public void setStateDescription(StateDescription stateDescription) {
this.stateDescription = stateDescription;
}
/**
*
* Details about the state of a connector.
*
*
* @return Details about the state of a connector.
*/
public StateDescription getStateDescription() {
return this.stateDescription;
}
/**
*
* Details about the state of a connector.
*
*
* @param stateDescription
* Details about the state of a connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withStateDescription(StateDescription stateDescription) {
setStateDescription(stateDescription);
return this;
}
/**
*
* Specifies which worker configuration was used for the connector.
*
*
* @param workerConfiguration
* Specifies which worker configuration was used for the connector.
*/
public void setWorkerConfiguration(WorkerConfigurationDescription workerConfiguration) {
this.workerConfiguration = workerConfiguration;
}
/**
*
* Specifies which worker configuration was used for the connector.
*
*
* @return Specifies which worker configuration was used for the connector.
*/
public WorkerConfigurationDescription getWorkerConfiguration() {
return this.workerConfiguration;
}
/**
*
* Specifies which worker configuration was used for the connector.
*
*
* @param workerConfiguration
* Specifies which worker configuration was used for the connector.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public DescribeConnectorResult withWorkerConfiguration(WorkerConfigurationDescription workerConfiguration) {
setWorkerConfiguration(workerConfiguration);
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 (getCapacity() != null)
sb.append("Capacity: ").append(getCapacity()).append(",");
if (getConnectorArn() != null)
sb.append("ConnectorArn: ").append(getConnectorArn()).append(",");
if (getConnectorConfiguration() != null)
sb.append("ConnectorConfiguration: ").append("***Sensitive Data Redacted***").append(",");
if (getConnectorDescription() != null)
sb.append("ConnectorDescription: ").append(getConnectorDescription()).append(",");
if (getConnectorName() != null)
sb.append("ConnectorName: ").append(getConnectorName()).append(",");
if (getConnectorState() != null)
sb.append("ConnectorState: ").append(getConnectorState()).append(",");
if (getCreationTime() != null)
sb.append("CreationTime: ").append(getCreationTime()).append(",");
if (getCurrentVersion() != null)
sb.append("CurrentVersion: ").append(getCurrentVersion()).append(",");
if (getKafkaCluster() != null)
sb.append("KafkaCluster: ").append(getKafkaCluster()).append(",");
if (getKafkaClusterClientAuthentication() != null)
sb.append("KafkaClusterClientAuthentication: ").append(getKafkaClusterClientAuthentication()).append(",");
if (getKafkaClusterEncryptionInTransit() != null)
sb.append("KafkaClusterEncryptionInTransit: ").append(getKafkaClusterEncryptionInTransit()).append(",");
if (getKafkaConnectVersion() != null)
sb.append("KafkaConnectVersion: ").append(getKafkaConnectVersion()).append(",");
if (getLogDelivery() != null)
sb.append("LogDelivery: ").append(getLogDelivery()).append(",");
if (getPlugins() != null)
sb.append("Plugins: ").append(getPlugins()).append(",");
if (getServiceExecutionRoleArn() != null)
sb.append("ServiceExecutionRoleArn: ").append(getServiceExecutionRoleArn()).append(",");
if (getStateDescription() != null)
sb.append("StateDescription: ").append(getStateDescription()).append(",");
if (getWorkerConfiguration() != null)
sb.append("WorkerConfiguration: ").append(getWorkerConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof DescribeConnectorResult == false)
return false;
DescribeConnectorResult other = (DescribeConnectorResult) obj;
if (other.getCapacity() == null ^ this.getCapacity() == null)
return false;
if (other.getCapacity() != null && other.getCapacity().equals(this.getCapacity()) == false)
return false;
if (other.getConnectorArn() == null ^ this.getConnectorArn() == null)
return false;
if (other.getConnectorArn() != null && other.getConnectorArn().equals(this.getConnectorArn()) == false)
return false;
if (other.getConnectorConfiguration() == null ^ this.getConnectorConfiguration() == null)
return false;
if (other.getConnectorConfiguration() != null && other.getConnectorConfiguration().equals(this.getConnectorConfiguration()) == false)
return false;
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.getConnectorState() == null ^ this.getConnectorState() == null)
return false;
if (other.getConnectorState() != null && other.getConnectorState().equals(this.getConnectorState()) == false)
return false;
if (other.getCreationTime() == null ^ this.getCreationTime() == null)
return false;
if (other.getCreationTime() != null && other.getCreationTime().equals(this.getCreationTime()) == false)
return false;
if (other.getCurrentVersion() == null ^ this.getCurrentVersion() == null)
return false;
if (other.getCurrentVersion() != null && other.getCurrentVersion().equals(this.getCurrentVersion()) == false)
return false;
if (other.getKafkaCluster() == null ^ this.getKafkaCluster() == null)
return false;
if (other.getKafkaCluster() != null && other.getKafkaCluster().equals(this.getKafkaCluster()) == false)
return false;
if (other.getKafkaClusterClientAuthentication() == null ^ this.getKafkaClusterClientAuthentication() == null)
return false;
if (other.getKafkaClusterClientAuthentication() != null
&& other.getKafkaClusterClientAuthentication().equals(this.getKafkaClusterClientAuthentication()) == false)
return false;
if (other.getKafkaClusterEncryptionInTransit() == null ^ this.getKafkaClusterEncryptionInTransit() == null)
return false;
if (other.getKafkaClusterEncryptionInTransit() != null
&& other.getKafkaClusterEncryptionInTransit().equals(this.getKafkaClusterEncryptionInTransit()) == false)
return false;
if (other.getKafkaConnectVersion() == null ^ this.getKafkaConnectVersion() == null)
return false;
if (other.getKafkaConnectVersion() != null && other.getKafkaConnectVersion().equals(this.getKafkaConnectVersion()) == false)
return false;
if (other.getLogDelivery() == null ^ this.getLogDelivery() == null)
return false;
if (other.getLogDelivery() != null && other.getLogDelivery().equals(this.getLogDelivery()) == false)
return false;
if (other.getPlugins() == null ^ this.getPlugins() == null)
return false;
if (other.getPlugins() != null && other.getPlugins().equals(this.getPlugins()) == false)
return false;
if (other.getServiceExecutionRoleArn() == null ^ this.getServiceExecutionRoleArn() == null)
return false;
if (other.getServiceExecutionRoleArn() != null && other.getServiceExecutionRoleArn().equals(this.getServiceExecutionRoleArn()) == false)
return false;
if (other.getStateDescription() == null ^ this.getStateDescription() == null)
return false;
if (other.getStateDescription() != null && other.getStateDescription().equals(this.getStateDescription()) == false)
return false;
if (other.getWorkerConfiguration() == null ^ this.getWorkerConfiguration() == null)
return false;
if (other.getWorkerConfiguration() != null && other.getWorkerConfiguration().equals(this.getWorkerConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getCapacity() == null) ? 0 : getCapacity().hashCode());
hashCode = prime * hashCode + ((getConnectorArn() == null) ? 0 : getConnectorArn().hashCode());
hashCode = prime * hashCode + ((getConnectorConfiguration() == null) ? 0 : getConnectorConfiguration().hashCode());
hashCode = prime * hashCode + ((getConnectorDescription() == null) ? 0 : getConnectorDescription().hashCode());
hashCode = prime * hashCode + ((getConnectorName() == null) ? 0 : getConnectorName().hashCode());
hashCode = prime * hashCode + ((getConnectorState() == null) ? 0 : getConnectorState().hashCode());
hashCode = prime * hashCode + ((getCreationTime() == null) ? 0 : getCreationTime().hashCode());
hashCode = prime * hashCode + ((getCurrentVersion() == null) ? 0 : getCurrentVersion().hashCode());
hashCode = prime * hashCode + ((getKafkaCluster() == null) ? 0 : getKafkaCluster().hashCode());
hashCode = prime * hashCode + ((getKafkaClusterClientAuthentication() == null) ? 0 : getKafkaClusterClientAuthentication().hashCode());
hashCode = prime * hashCode + ((getKafkaClusterEncryptionInTransit() == null) ? 0 : getKafkaClusterEncryptionInTransit().hashCode());
hashCode = prime * hashCode + ((getKafkaConnectVersion() == null) ? 0 : getKafkaConnectVersion().hashCode());
hashCode = prime * hashCode + ((getLogDelivery() == null) ? 0 : getLogDelivery().hashCode());
hashCode = prime * hashCode + ((getPlugins() == null) ? 0 : getPlugins().hashCode());
hashCode = prime * hashCode + ((getServiceExecutionRoleArn() == null) ? 0 : getServiceExecutionRoleArn().hashCode());
hashCode = prime * hashCode + ((getStateDescription() == null) ? 0 : getStateDescription().hashCode());
hashCode = prime * hashCode + ((getWorkerConfiguration() == null) ? 0 : getWorkerConfiguration().hashCode());
return hashCode;
}
@Override
public DescribeConnectorResult clone() {
try {
return (DescribeConnectorResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}