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

com.amazonaws.services.lookoutmetrics.model.RDSSourceConfig Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show 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.lookoutmetrics.model;

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

/**
 * 

* Contains information about the Amazon Relational Database Service (RDS) configuration. *

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

* A string identifying the database instance. *

*/ private String dBInstanceIdentifier; /** *

* The host name of the database. *

*/ 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 name of the RDS database. *

*/ private String databaseName; /** *

* The name of the table in the database. *

*/ private String tableName; /** *

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

*/ private String roleArn; /** *

* An object containing information about the Amazon Virtual Private Cloud (VPC) configuration. *

*/ private VpcConfiguration vpcConfiguration; /** *

* A string identifying the database instance. *

* * @param dBInstanceIdentifier * A string identifying the database instance. */ public void setDBInstanceIdentifier(String dBInstanceIdentifier) { this.dBInstanceIdentifier = dBInstanceIdentifier; } /** *

* A string identifying the database instance. *

* * @return A string identifying the database instance. */ public String getDBInstanceIdentifier() { return this.dBInstanceIdentifier; } /** *

* A string identifying the database instance. *

* * @param dBInstanceIdentifier * A string identifying the database instance. * @return Returns a reference to this object so that method calls can be chained together. */ public RDSSourceConfig withDBInstanceIdentifier(String dBInstanceIdentifier) { setDBInstanceIdentifier(dBInstanceIdentifier); return this; } /** *

* The host name of the database. *

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

* The host name of the database. *

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

* The host name of the database. *

* * @param databaseHost * The host name of the database. * @return Returns a reference to this object so that method calls can be chained together. */ public RDSSourceConfig 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 RDSSourceConfig 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 RDSSourceConfig withSecretManagerArn(String secretManagerArn) { setSecretManagerArn(secretManagerArn); return this; } /** *

* The name of the RDS database. *

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

* The name of the RDS database. *

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

* The name of the RDS database. *

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

* The name of the table in the database. *

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

* The name of the table in the database. *

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

* The name of the table in the database. *

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

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

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

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

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

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

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

* An object containing information about the Amazon Virtual Private Cloud (VPC) configuration. *

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

* An object containing information about the Amazon Virtual Private Cloud (VPC) configuration. *

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

* An object containing information about the Amazon Virtual Private Cloud (VPC) configuration. *

* * @param vpcConfiguration * An object containing 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 RDSSourceConfig 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 (getDBInstanceIdentifier() != null) sb.append("DBInstanceIdentifier: ").append(getDBInstanceIdentifier()).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 RDSSourceConfig == false) return false; RDSSourceConfig other = (RDSSourceConfig) obj; if (other.getDBInstanceIdentifier() == null ^ this.getDBInstanceIdentifier() == null) return false; if (other.getDBInstanceIdentifier() != null && other.getDBInstanceIdentifier().equals(this.getDBInstanceIdentifier()) == 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 + ((getDBInstanceIdentifier() == null) ? 0 : getDBInstanceIdentifier().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 RDSSourceConfig clone() { try { return (RDSSourceConfig) 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.RDSSourceConfigMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy