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

com.amazonaws.services.lookoutmetrics.model.RedshiftSourceConfig 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.lookoutmetrics.model;

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

/**
 * 

* Provides information about the Amazon Redshift database configuration. *

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

* A string identifying the Redshift cluster. *

*/ private String clusterIdentifier; /** *

* The name of the database host. *

*/ private String databaseHost; /** *

* The port number where the database can be accessed. *

*/ private Integer databasePort; /** *

* The Amazon Resource Name (ARN) of the AWS Secrets Manager role. *

*/ private String secretManagerArn; /** *

* The Redshift database name. *

*/ private String databaseName; /** *

* The table name of the Redshift database. *

*/ private String tableName; /** *

* The Amazon Resource Name (ARN) of the role providing access to the database. *

*/ private String roleArn; /** *

* Contains information about the Amazon Virtual Private Cloud (VPC) configuration. *

*/ private VpcConfiguration vpcConfiguration; /** *

* A string identifying the Redshift cluster. *

* * @param clusterIdentifier * A string identifying the Redshift cluster. */ public void setClusterIdentifier(String clusterIdentifier) { this.clusterIdentifier = clusterIdentifier; } /** *

* A string identifying the Redshift cluster. *

* * @return A string identifying the Redshift cluster. */ public String getClusterIdentifier() { return this.clusterIdentifier; } /** *

* A string identifying the Redshift cluster. *

* * @param clusterIdentifier * A string identifying the Redshift cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public RedshiftSourceConfig withClusterIdentifier(String clusterIdentifier) { setClusterIdentifier(clusterIdentifier); return this; } /** *

* The name of the database host. *

* * @param databaseHost * The name of the database host. */ public void setDatabaseHost(String databaseHost) { this.databaseHost = databaseHost; } /** *

* The name of the database host. *

* * @return The name of the database host. */ public String getDatabaseHost() { return this.databaseHost; } /** *

* The name of the database host. *

* * @param databaseHost * The name of the database host. * @return Returns a reference to this object so that method calls can be chained together. */ public RedshiftSourceConfig withDatabaseHost(String databaseHost) { setDatabaseHost(databaseHost); return this; } /** *

* The port number where the database can be accessed. *

* * @param databasePort * The port number where the database can be accessed. */ public void setDatabasePort(Integer databasePort) { this.databasePort = databasePort; } /** *

* The port number where the database can be accessed. *

* * @return The port number where the database can be accessed. */ public Integer getDatabasePort() { return this.databasePort; } /** *

* The port number where the database can be accessed. *

* * @param databasePort * The port number where the database can be accessed. * @return Returns a reference to this object so that method calls can be chained together. */ public RedshiftSourceConfig withDatabasePort(Integer databasePort) { setDatabasePort(databasePort); return this; } /** *

* The Amazon Resource Name (ARN) of the AWS Secrets Manager role. *

* * @param secretManagerArn * The Amazon Resource Name (ARN) of the AWS Secrets Manager role. */ public void setSecretManagerArn(String secretManagerArn) { this.secretManagerArn = secretManagerArn; } /** *

* The Amazon Resource Name (ARN) of the AWS Secrets Manager role. *

* * @return The Amazon Resource Name (ARN) of the AWS Secrets Manager role. */ public String getSecretManagerArn() { return this.secretManagerArn; } /** *

* The Amazon Resource Name (ARN) of the AWS Secrets Manager role. *

* * @param secretManagerArn * The Amazon Resource Name (ARN) of the AWS Secrets Manager role. * @return Returns a reference to this object so that method calls can be chained together. */ public RedshiftSourceConfig withSecretManagerArn(String secretManagerArn) { setSecretManagerArn(secretManagerArn); return this; } /** *

* The Redshift database name. *

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

* The Redshift database name. *

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

* The Redshift database name. *

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

* The table name of the Redshift database. *

* * @param tableName * The table name of the Redshift database. */ public void setTableName(String tableName) { this.tableName = tableName; } /** *

* The table name of the Redshift database. *

* * @return The table name of the Redshift database. */ public String getTableName() { return this.tableName; } /** *

* The table name of the Redshift database. *

* * @param tableName * The table name of the Redshift database. * @return Returns a reference to this object so that method calls can be chained together. */ public RedshiftSourceConfig withTableName(String tableName) { setTableName(tableName); return this; } /** *

* The Amazon Resource Name (ARN) of the role providing access to the database. *

* * @param roleArn * The Amazon Resource Name (ARN) of the role providing access to the database. */ public void setRoleArn(String roleArn) { this.roleArn = roleArn; } /** *

* The Amazon Resource Name (ARN) of the role providing access to the database. *

* * @return The Amazon Resource Name (ARN) of the role providing access to the database. */ public String getRoleArn() { return this.roleArn; } /** *

* The Amazon Resource Name (ARN) of the role providing access to the database. *

* * @param roleArn * The Amazon Resource Name (ARN) of the role providing access to the database. * @return Returns a reference to this object so that method calls can be chained together. */ public RedshiftSourceConfig withRoleArn(String roleArn) { setRoleArn(roleArn); return this; } /** *

* Contains information about the Amazon Virtual Private Cloud (VPC) configuration. *

* * @param vpcConfiguration * Contains information about the Amazon Virtual Private Cloud (VPC) configuration. */ public void setVpcConfiguration(VpcConfiguration vpcConfiguration) { this.vpcConfiguration = vpcConfiguration; } /** *

* Contains information about the Amazon Virtual Private Cloud (VPC) configuration. *

* * @return Contains information about the Amazon Virtual Private Cloud (VPC) configuration. */ public VpcConfiguration getVpcConfiguration() { return this.vpcConfiguration; } /** *

* Contains information about the Amazon Virtual Private Cloud (VPC) configuration. *

* * @param vpcConfiguration * Contains information about the Amazon Virtual Private Cloud (VPC) configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public RedshiftSourceConfig withVpcConfiguration(VpcConfiguration vpcConfiguration) { setVpcConfiguration(vpcConfiguration); 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 (getClusterIdentifier() != null) sb.append("ClusterIdentifier: ").append(getClusterIdentifier()).append(","); if (getDatabaseHost() != null) sb.append("DatabaseHost: ").append(getDatabaseHost()).append(","); if (getDatabasePort() != null) sb.append("DatabasePort: ").append(getDatabasePort()).append(","); if (getSecretManagerArn() != null) sb.append("SecretManagerArn: ").append(getSecretManagerArn()).append(","); if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getTableName() != null) sb.append("TableName: ").append(getTableName()).append(","); if (getRoleArn() != null) sb.append("RoleArn: ").append(getRoleArn()).append(","); if (getVpcConfiguration() != null) sb.append("VpcConfiguration: ").append(getVpcConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RedshiftSourceConfig == false) return false; RedshiftSourceConfig other = (RedshiftSourceConfig) obj; if (other.getClusterIdentifier() == null ^ this.getClusterIdentifier() == null) return false; if (other.getClusterIdentifier() != null && other.getClusterIdentifier().equals(this.getClusterIdentifier()) == false) return false; if (other.getDatabaseHost() == null ^ this.getDatabaseHost() == null) return false; if (other.getDatabaseHost() != null && other.getDatabaseHost().equals(this.getDatabaseHost()) == false) return false; if (other.getDatabasePort() == null ^ this.getDatabasePort() == null) return false; if (other.getDatabasePort() != null && other.getDatabasePort().equals(this.getDatabasePort()) == false) return false; if (other.getSecretManagerArn() == null ^ this.getSecretManagerArn() == null) return false; if (other.getSecretManagerArn() != null && other.getSecretManagerArn().equals(this.getSecretManagerArn()) == 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.getTableName() == null ^ this.getTableName() == null) return false; if (other.getTableName() != null && other.getTableName().equals(this.getTableName()) == false) return false; if (other.getRoleArn() == null ^ this.getRoleArn() == null) return false; if (other.getRoleArn() != null && other.getRoleArn().equals(this.getRoleArn()) == false) return false; if (other.getVpcConfiguration() == null ^ this.getVpcConfiguration() == null) return false; if (other.getVpcConfiguration() != null && other.getVpcConfiguration().equals(this.getVpcConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getClusterIdentifier() == null) ? 0 : getClusterIdentifier().hashCode()); hashCode = prime * hashCode + ((getDatabaseHost() == null) ? 0 : getDatabaseHost().hashCode()); hashCode = prime * hashCode + ((getDatabasePort() == null) ? 0 : getDatabasePort().hashCode()); hashCode = prime * hashCode + ((getSecretManagerArn() == null) ? 0 : getSecretManagerArn().hashCode()); hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getTableName() == null) ? 0 : getTableName().hashCode()); hashCode = prime * hashCode + ((getRoleArn() == null) ? 0 : getRoleArn().hashCode()); hashCode = prime * hashCode + ((getVpcConfiguration() == null) ? 0 : getVpcConfiguration().hashCode()); return hashCode; } @Override public RedshiftSourceConfig clone() { try { return (RedshiftSourceConfig) 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.lookoutmetrics.model.transform.RedshiftSourceConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy