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

com.amazonaws.services.securityhub.model.AwsDmsEndpointDetails Maven / Gradle / Ivy

Go to download

The AWS Java SDK for AWS SecurityHub module holds the client classes that are used for communicating with AWS SecurityHub Service

The 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.securityhub.model;

import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;

/**
 * 

* Provides details about an Database Migration Service (DMS) endpoint. An endpoint provides connection, data store * type, and location information about your data store. *

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

* The Amazon Resource Name (ARN) for the SSL certificate that encrypts connections between the DMS endpoint and the * replication instance. *

*/ private String certificateArn; /** *

* The name of the endpoint database. *

*/ private String databaseName; /** *

* The Amazon Resource Name (ARN) of the endpoint. *

*/ private String endpointArn; /** *

* The database endpoint identifier. *

*/ private String endpointIdentifier; /** *

* The type of endpoint. Valid values are source and target. *

*/ private String endpointType; /** *

* The type of engine for the endpoint, depending on the EndpointType value. *

*/ private String engineName; /** *

* A value that can be used for cross-account validation. *

*/ private String externalId; /** *

* Additional attributes associated with the connection. *

*/ private String extraConnectionAttributes; /** *

* An DMS key identifier that is used to encrypt the connection parameters for the endpoint. If you don't specify a * value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS creates the default * encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default * encryption key for each Amazon Web Services Region. *

*/ private String kmsKeyId; /** *

* The port used to access the endpoint. *

*/ private Integer port; /** *

* The name of the server where the endpoint database resides. *

*/ private String serverName; /** *

* The SSL mode used to connect to the endpoint. The default is none. *

*/ private String sslMode; /** *

* The user name to be used to log in to the endpoint database. *

*/ private String username; /** *

* The Amazon Resource Name (ARN) for the SSL certificate that encrypts connections between the DMS endpoint and the * replication instance. *

* * @param certificateArn * The Amazon Resource Name (ARN) for the SSL certificate that encrypts connections between the DMS endpoint * and the replication instance. */ public void setCertificateArn(String certificateArn) { this.certificateArn = certificateArn; } /** *

* The Amazon Resource Name (ARN) for the SSL certificate that encrypts connections between the DMS endpoint and the * replication instance. *

* * @return The Amazon Resource Name (ARN) for the SSL certificate that encrypts connections between the DMS endpoint * and the replication instance. */ public String getCertificateArn() { return this.certificateArn; } /** *

* The Amazon Resource Name (ARN) for the SSL certificate that encrypts connections between the DMS endpoint and the * replication instance. *

* * @param certificateArn * The Amazon Resource Name (ARN) for the SSL certificate that encrypts connections between the DMS endpoint * and the replication instance. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withCertificateArn(String certificateArn) { setCertificateArn(certificateArn); return this; } /** *

* The name of the endpoint database. *

* * @param databaseName * The name of the endpoint database. */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** *

* The name of the endpoint database. *

* * @return The name of the endpoint database. */ public String getDatabaseName() { return this.databaseName; } /** *

* The name of the endpoint database. *

* * @param databaseName * The name of the endpoint database. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** *

* The Amazon Resource Name (ARN) of the endpoint. *

* * @param endpointArn * The Amazon Resource Name (ARN) of the endpoint. */ public void setEndpointArn(String endpointArn) { this.endpointArn = endpointArn; } /** *

* The Amazon Resource Name (ARN) of the endpoint. *

* * @return The Amazon Resource Name (ARN) of the endpoint. */ public String getEndpointArn() { return this.endpointArn; } /** *

* The Amazon Resource Name (ARN) of the endpoint. *

* * @param endpointArn * The Amazon Resource Name (ARN) of the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withEndpointArn(String endpointArn) { setEndpointArn(endpointArn); return this; } /** *

* The database endpoint identifier. *

* * @param endpointIdentifier * The database endpoint identifier. */ public void setEndpointIdentifier(String endpointIdentifier) { this.endpointIdentifier = endpointIdentifier; } /** *

* The database endpoint identifier. *

* * @return The database endpoint identifier. */ public String getEndpointIdentifier() { return this.endpointIdentifier; } /** *

* The database endpoint identifier. *

* * @param endpointIdentifier * The database endpoint identifier. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withEndpointIdentifier(String endpointIdentifier) { setEndpointIdentifier(endpointIdentifier); return this; } /** *

* The type of endpoint. Valid values are source and target. *

* * @param endpointType * The type of endpoint. Valid values are source and target. */ public void setEndpointType(String endpointType) { this.endpointType = endpointType; } /** *

* The type of endpoint. Valid values are source and target. *

* * @return The type of endpoint. Valid values are source and target. */ public String getEndpointType() { return this.endpointType; } /** *

* The type of endpoint. Valid values are source and target. *

* * @param endpointType * The type of endpoint. Valid values are source and target. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withEndpointType(String endpointType) { setEndpointType(endpointType); return this; } /** *

* The type of engine for the endpoint, depending on the EndpointType value. *

* * @param engineName * The type of engine for the endpoint, depending on the EndpointType value. */ public void setEngineName(String engineName) { this.engineName = engineName; } /** *

* The type of engine for the endpoint, depending on the EndpointType value. *

* * @return The type of engine for the endpoint, depending on the EndpointType value. */ public String getEngineName() { return this.engineName; } /** *

* The type of engine for the endpoint, depending on the EndpointType value. *

* * @param engineName * The type of engine for the endpoint, depending on the EndpointType value. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withEngineName(String engineName) { setEngineName(engineName); return this; } /** *

* A value that can be used for cross-account validation. *

* * @param externalId * A value that can be used for cross-account validation. */ public void setExternalId(String externalId) { this.externalId = externalId; } /** *

* A value that can be used for cross-account validation. *

* * @return A value that can be used for cross-account validation. */ public String getExternalId() { return this.externalId; } /** *

* A value that can be used for cross-account validation. *

* * @param externalId * A value that can be used for cross-account validation. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withExternalId(String externalId) { setExternalId(externalId); return this; } /** *

* Additional attributes associated with the connection. *

* * @param extraConnectionAttributes * Additional attributes associated with the connection. */ public void setExtraConnectionAttributes(String extraConnectionAttributes) { this.extraConnectionAttributes = extraConnectionAttributes; } /** *

* Additional attributes associated with the connection. *

* * @return Additional attributes associated with the connection. */ public String getExtraConnectionAttributes() { return this.extraConnectionAttributes; } /** *

* Additional attributes associated with the connection. *

* * @param extraConnectionAttributes * Additional attributes associated with the connection. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withExtraConnectionAttributes(String extraConnectionAttributes) { setExtraConnectionAttributes(extraConnectionAttributes); return this; } /** *

* An DMS key identifier that is used to encrypt the connection parameters for the endpoint. If you don't specify a * value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS creates the default * encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default * encryption key for each Amazon Web Services Region. *

* * @param kmsKeyId * An DMS key identifier that is used to encrypt the connection parameters for the endpoint. If you don't * specify a value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS * creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account * has a different default encryption key for each Amazon Web Services Region. */ public void setKmsKeyId(String kmsKeyId) { this.kmsKeyId = kmsKeyId; } /** *

* An DMS key identifier that is used to encrypt the connection parameters for the endpoint. If you don't specify a * value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS creates the default * encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default * encryption key for each Amazon Web Services Region. *

* * @return An DMS key identifier that is used to encrypt the connection parameters for the endpoint. If you don't * specify a value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS * creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account * has a different default encryption key for each Amazon Web Services Region. */ public String getKmsKeyId() { return this.kmsKeyId; } /** *

* An DMS key identifier that is used to encrypt the connection parameters for the endpoint. If you don't specify a * value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS creates the default * encryption key for your Amazon Web Services account. Your Amazon Web Services account has a different default * encryption key for each Amazon Web Services Region. *

* * @param kmsKeyId * An DMS key identifier that is used to encrypt the connection parameters for the endpoint. If you don't * specify a value for the KmsKeyId parameter, then DMS uses your default encryption key. KMS * creates the default encryption key for your Amazon Web Services account. Your Amazon Web Services account * has a different default encryption key for each Amazon Web Services Region. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withKmsKeyId(String kmsKeyId) { setKmsKeyId(kmsKeyId); return this; } /** *

* The port used to access the endpoint. *

* * @param port * The port used to access the endpoint. */ public void setPort(Integer port) { this.port = port; } /** *

* The port used to access the endpoint. *

* * @return The port used to access the endpoint. */ public Integer getPort() { return this.port; } /** *

* The port used to access the endpoint. *

* * @param port * The port used to access the endpoint. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withPort(Integer port) { setPort(port); return this; } /** *

* The name of the server where the endpoint database resides. *

* * @param serverName * The name of the server where the endpoint database resides. */ public void setServerName(String serverName) { this.serverName = serverName; } /** *

* The name of the server where the endpoint database resides. *

* * @return The name of the server where the endpoint database resides. */ public String getServerName() { return this.serverName; } /** *

* The name of the server where the endpoint database resides. *

* * @param serverName * The name of the server where the endpoint database resides. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withServerName(String serverName) { setServerName(serverName); return this; } /** *

* The SSL mode used to connect to the endpoint. The default is none. *

* * @param sslMode * The SSL mode used to connect to the endpoint. The default is none. */ public void setSslMode(String sslMode) { this.sslMode = sslMode; } /** *

* The SSL mode used to connect to the endpoint. The default is none. *

* * @return The SSL mode used to connect to the endpoint. The default is none. */ public String getSslMode() { return this.sslMode; } /** *

* The SSL mode used to connect to the endpoint. The default is none. *

* * @param sslMode * The SSL mode used to connect to the endpoint. The default is none. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withSslMode(String sslMode) { setSslMode(sslMode); return this; } /** *

* The user name to be used to log in to the endpoint database. *

* * @param username * The user name to be used to log in to the endpoint database. */ public void setUsername(String username) { this.username = username; } /** *

* The user name to be used to log in to the endpoint database. *

* * @return The user name to be used to log in to the endpoint database. */ public String getUsername() { return this.username; } /** *

* The user name to be used to log in to the endpoint database. *

* * @param username * The user name to be used to log in to the endpoint database. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsDmsEndpointDetails withUsername(String username) { setUsername(username); 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 (getCertificateArn() != null) sb.append("CertificateArn: ").append(getCertificateArn()).append(","); if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getEndpointArn() != null) sb.append("EndpointArn: ").append(getEndpointArn()).append(","); if (getEndpointIdentifier() != null) sb.append("EndpointIdentifier: ").append(getEndpointIdentifier()).append(","); if (getEndpointType() != null) sb.append("EndpointType: ").append(getEndpointType()).append(","); if (getEngineName() != null) sb.append("EngineName: ").append(getEngineName()).append(","); if (getExternalId() != null) sb.append("ExternalId: ").append(getExternalId()).append(","); if (getExtraConnectionAttributes() != null) sb.append("ExtraConnectionAttributes: ").append(getExtraConnectionAttributes()).append(","); if (getKmsKeyId() != null) sb.append("KmsKeyId: ").append(getKmsKeyId()).append(","); if (getPort() != null) sb.append("Port: ").append(getPort()).append(","); if (getServerName() != null) sb.append("ServerName: ").append(getServerName()).append(","); if (getSslMode() != null) sb.append("SslMode: ").append(getSslMode()).append(","); if (getUsername() != null) sb.append("Username: ").append(getUsername()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof AwsDmsEndpointDetails == false) return false; AwsDmsEndpointDetails other = (AwsDmsEndpointDetails) obj; if (other.getCertificateArn() == null ^ this.getCertificateArn() == null) return false; if (other.getCertificateArn() != null && other.getCertificateArn().equals(this.getCertificateArn()) == false) return false; if (other.getDatabaseName() == null ^ this.getDatabaseName() == null) return false; if (other.getDatabaseName() != null && other.getDatabaseName().equals(this.getDatabaseName()) == false) return false; if (other.getEndpointArn() == null ^ this.getEndpointArn() == null) return false; if (other.getEndpointArn() != null && other.getEndpointArn().equals(this.getEndpointArn()) == false) return false; if (other.getEndpointIdentifier() == null ^ this.getEndpointIdentifier() == null) return false; if (other.getEndpointIdentifier() != null && other.getEndpointIdentifier().equals(this.getEndpointIdentifier()) == false) return false; if (other.getEndpointType() == null ^ this.getEndpointType() == null) return false; if (other.getEndpointType() != null && other.getEndpointType().equals(this.getEndpointType()) == false) return false; if (other.getEngineName() == null ^ this.getEngineName() == null) return false; if (other.getEngineName() != null && other.getEngineName().equals(this.getEngineName()) == false) return false; if (other.getExternalId() == null ^ this.getExternalId() == null) return false; if (other.getExternalId() != null && other.getExternalId().equals(this.getExternalId()) == false) return false; if (other.getExtraConnectionAttributes() == null ^ this.getExtraConnectionAttributes() == null) return false; if (other.getExtraConnectionAttributes() != null && other.getExtraConnectionAttributes().equals(this.getExtraConnectionAttributes()) == false) return false; if (other.getKmsKeyId() == null ^ this.getKmsKeyId() == null) return false; if (other.getKmsKeyId() != null && other.getKmsKeyId().equals(this.getKmsKeyId()) == false) return false; if (other.getPort() == null ^ this.getPort() == null) return false; if (other.getPort() != null && other.getPort().equals(this.getPort()) == false) return false; if (other.getServerName() == null ^ this.getServerName() == null) return false; if (other.getServerName() != null && other.getServerName().equals(this.getServerName()) == false) return false; if (other.getSslMode() == null ^ this.getSslMode() == null) return false; if (other.getSslMode() != null && other.getSslMode().equals(this.getSslMode()) == false) return false; if (other.getUsername() == null ^ this.getUsername() == null) return false; if (other.getUsername() != null && other.getUsername().equals(this.getUsername()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCertificateArn() == null) ? 0 : getCertificateArn().hashCode()); hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getEndpointArn() == null) ? 0 : getEndpointArn().hashCode()); hashCode = prime * hashCode + ((getEndpointIdentifier() == null) ? 0 : getEndpointIdentifier().hashCode()); hashCode = prime * hashCode + ((getEndpointType() == null) ? 0 : getEndpointType().hashCode()); hashCode = prime * hashCode + ((getEngineName() == null) ? 0 : getEngineName().hashCode()); hashCode = prime * hashCode + ((getExternalId() == null) ? 0 : getExternalId().hashCode()); hashCode = prime * hashCode + ((getExtraConnectionAttributes() == null) ? 0 : getExtraConnectionAttributes().hashCode()); hashCode = prime * hashCode + ((getKmsKeyId() == null) ? 0 : getKmsKeyId().hashCode()); hashCode = prime * hashCode + ((getPort() == null) ? 0 : getPort().hashCode()); hashCode = prime * hashCode + ((getServerName() == null) ? 0 : getServerName().hashCode()); hashCode = prime * hashCode + ((getSslMode() == null) ? 0 : getSslMode().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); return hashCode; } @Override public AwsDmsEndpointDetails clone() { try { return (AwsDmsEndpointDetails) 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.securityhub.model.transform.AwsDmsEndpointDetailsMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy