com.amazonaws.services.timestreaminfluxdb.model.CreateDbInstanceResult Maven / Gradle / Ivy
Show all versions of aws-java-sdk-timestreaminfluxdb 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.timestreaminfluxdb.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class CreateDbInstanceResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* A service-generated unique identifier.
*
*/
private String id;
/**
*
* The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream
* for InfluxDB API and CLI commands.
*
*/
private String name;
/**
*
* The Amazon Resource Name (ARN) of the DB instance.
*
*/
private String arn;
/**
*
* The status of the DB instance.
*
*/
private String status;
/**
*
* The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
*
*/
private String endpoint;
/**
*
* The Timestream for InfluxDB instance type that InfluxDB runs on.
*
*/
private String dbInstanceType;
/**
*
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
*
*/
private String dbStorageType;
/**
*
* The amount of storage allocated for your DB storage type (in gibibytes).
*
*/
private Integer allocatedStorage;
/**
*
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
*
*/
private String deploymentType;
/**
*
* A list of VPC subnet IDs associated with the DB instance.
*
*/
private java.util.List vpcSubnetIds;
/**
*
* Indicates if the DB instance has a public IP to facilitate access.
*
*/
private Boolean publiclyAccessible;
/**
*
* A list of VPC security group IDs associated with the DB instance.
*
*/
private java.util.List vpcSecurityGroupIds;
/**
*
* The id of the DB parameter group assigned to your DB instance.
*
*/
private String dbParameterGroupIdentifier;
/**
*
* The Availability Zone in which the DB instance resides.
*
*/
private String availabilityZone;
/**
*
* The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.
*
*/
private String secondaryAvailabilityZone;
/**
*
* Configuration for sending InfluxDB engine logs to send to specified S3 bucket.
*
*/
private LogDeliveryConfiguration logDeliveryConfiguration;
/**
*
* The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization
* parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values:
* organization, bucket, username, and password.
*
*/
private String influxAuthParametersSecretArn;
/**
*
* A service-generated unique identifier.
*
*
* @param id
* A service-generated unique identifier.
*/
public void setId(String id) {
this.id = id;
}
/**
*
* A service-generated unique identifier.
*
*
* @return A service-generated unique identifier.
*/
public String getId() {
return this.id;
}
/**
*
* A service-generated unique identifier.
*
*
* @param id
* A service-generated unique identifier.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withId(String id) {
setId(id);
return this;
}
/**
*
* The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream
* for InfluxDB API and CLI commands.
*
*
* @param name
* The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon
* Timestream for InfluxDB API and CLI commands.
*/
public void setName(String name) {
this.name = name;
}
/**
*
* The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream
* for InfluxDB API and CLI commands.
*
*
* @return The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon
* Timestream for InfluxDB API and CLI commands.
*/
public String getName() {
return this.name;
}
/**
*
* The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon Timestream
* for InfluxDB API and CLI commands.
*
*
* @param name
* The customer-supplied name that uniquely identifies the DB instance when interacting with the Amazon
* Timestream for InfluxDB API and CLI commands.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withName(String name) {
setName(name);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the DB instance.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the DB instance.
*/
public void setArn(String arn) {
this.arn = arn;
}
/**
*
* The Amazon Resource Name (ARN) of the DB instance.
*
*
* @return The Amazon Resource Name (ARN) of the DB instance.
*/
public String getArn() {
return this.arn;
}
/**
*
* The Amazon Resource Name (ARN) of the DB instance.
*
*
* @param arn
* The Amazon Resource Name (ARN) of the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withArn(String arn) {
setArn(arn);
return this;
}
/**
*
* The status of the DB instance.
*
*
* @param status
* The status of the DB instance.
* @see Status
*/
public void setStatus(String status) {
this.status = status;
}
/**
*
* The status of the DB instance.
*
*
* @return The status of the DB instance.
* @see Status
*/
public String getStatus() {
return this.status;
}
/**
*
* The status of the DB instance.
*
*
* @param status
* The status of the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Status
*/
public CreateDbInstanceResult withStatus(String status) {
setStatus(status);
return this;
}
/**
*
* The status of the DB instance.
*
*
* @param status
* The status of the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
* @see Status
*/
public CreateDbInstanceResult withStatus(Status status) {
this.status = status.toString();
return this;
}
/**
*
* The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
*
*
* @param endpoint
* The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
*/
public void setEndpoint(String endpoint) {
this.endpoint = endpoint;
}
/**
*
* The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
*
*
* @return The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
*/
public String getEndpoint() {
return this.endpoint;
}
/**
*
* The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
*
*
* @param endpoint
* The endpoint used to connect to InfluxDB. The default InfluxDB port is 8086.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withEndpoint(String endpoint) {
setEndpoint(endpoint);
return this;
}
/**
*
* The Timestream for InfluxDB instance type that InfluxDB runs on.
*
*
* @param dbInstanceType
* The Timestream for InfluxDB instance type that InfluxDB runs on.
* @see DbInstanceType
*/
public void setDbInstanceType(String dbInstanceType) {
this.dbInstanceType = dbInstanceType;
}
/**
*
* The Timestream for InfluxDB instance type that InfluxDB runs on.
*
*
* @return The Timestream for InfluxDB instance type that InfluxDB runs on.
* @see DbInstanceType
*/
public String getDbInstanceType() {
return this.dbInstanceType;
}
/**
*
* The Timestream for InfluxDB instance type that InfluxDB runs on.
*
*
* @param dbInstanceType
* The Timestream for InfluxDB instance type that InfluxDB runs on.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DbInstanceType
*/
public CreateDbInstanceResult withDbInstanceType(String dbInstanceType) {
setDbInstanceType(dbInstanceType);
return this;
}
/**
*
* The Timestream for InfluxDB instance type that InfluxDB runs on.
*
*
* @param dbInstanceType
* The Timestream for InfluxDB instance type that InfluxDB runs on.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DbInstanceType
*/
public CreateDbInstanceResult withDbInstanceType(DbInstanceType dbInstanceType) {
this.dbInstanceType = dbInstanceType.toString();
return this;
}
/**
*
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
*
*
* @param dbStorageType
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
* @see DbStorageType
*/
public void setDbStorageType(String dbStorageType) {
this.dbStorageType = dbStorageType;
}
/**
*
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
*
*
* @return The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
* @see DbStorageType
*/
public String getDbStorageType() {
return this.dbStorageType;
}
/**
*
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
*
*
* @param dbStorageType
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DbStorageType
*/
public CreateDbInstanceResult withDbStorageType(String dbStorageType) {
setDbStorageType(dbStorageType);
return this;
}
/**
*
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
*
*
* @param dbStorageType
* The Timestream for InfluxDB DB storage type that InfluxDB stores data on.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DbStorageType
*/
public CreateDbInstanceResult withDbStorageType(DbStorageType dbStorageType) {
this.dbStorageType = dbStorageType.toString();
return this;
}
/**
*
* The amount of storage allocated for your DB storage type (in gibibytes).
*
*
* @param allocatedStorage
* The amount of storage allocated for your DB storage type (in gibibytes).
*/
public void setAllocatedStorage(Integer allocatedStorage) {
this.allocatedStorage = allocatedStorage;
}
/**
*
* The amount of storage allocated for your DB storage type (in gibibytes).
*
*
* @return The amount of storage allocated for your DB storage type (in gibibytes).
*/
public Integer getAllocatedStorage() {
return this.allocatedStorage;
}
/**
*
* The amount of storage allocated for your DB storage type (in gibibytes).
*
*
* @param allocatedStorage
* The amount of storage allocated for your DB storage type (in gibibytes).
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withAllocatedStorage(Integer allocatedStorage) {
setAllocatedStorage(allocatedStorage);
return this;
}
/**
*
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
*
*
* @param deploymentType
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
* @see DeploymentType
*/
public void setDeploymentType(String deploymentType) {
this.deploymentType = deploymentType;
}
/**
*
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
*
*
* @return Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
* @see DeploymentType
*/
public String getDeploymentType() {
return this.deploymentType;
}
/**
*
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
*
*
* @param deploymentType
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeploymentType
*/
public CreateDbInstanceResult withDeploymentType(String deploymentType) {
setDeploymentType(deploymentType);
return this;
}
/**
*
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
*
*
* @param deploymentType
* Specifies whether the Timestream for InfluxDB is deployed as Single-AZ or with a MultiAZ Standby for High
* availability.
* @return Returns a reference to this object so that method calls can be chained together.
* @see DeploymentType
*/
public CreateDbInstanceResult withDeploymentType(DeploymentType deploymentType) {
this.deploymentType = deploymentType.toString();
return this;
}
/**
*
* A list of VPC subnet IDs associated with the DB instance.
*
*
* @return A list of VPC subnet IDs associated with the DB instance.
*/
public java.util.List getVpcSubnetIds() {
return vpcSubnetIds;
}
/**
*
* A list of VPC subnet IDs associated with the DB instance.
*
*
* @param vpcSubnetIds
* A list of VPC subnet IDs associated with the DB instance.
*/
public void setVpcSubnetIds(java.util.Collection vpcSubnetIds) {
if (vpcSubnetIds == null) {
this.vpcSubnetIds = null;
return;
}
this.vpcSubnetIds = new java.util.ArrayList(vpcSubnetIds);
}
/**
*
* A list of VPC subnet IDs associated with the DB instance.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVpcSubnetIds(java.util.Collection)} or {@link #withVpcSubnetIds(java.util.Collection)} if you want to
* override the existing values.
*
*
* @param vpcSubnetIds
* A list of VPC subnet IDs associated with the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withVpcSubnetIds(String... vpcSubnetIds) {
if (this.vpcSubnetIds == null) {
setVpcSubnetIds(new java.util.ArrayList(vpcSubnetIds.length));
}
for (String ele : vpcSubnetIds) {
this.vpcSubnetIds.add(ele);
}
return this;
}
/**
*
* A list of VPC subnet IDs associated with the DB instance.
*
*
* @param vpcSubnetIds
* A list of VPC subnet IDs associated with the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withVpcSubnetIds(java.util.Collection vpcSubnetIds) {
setVpcSubnetIds(vpcSubnetIds);
return this;
}
/**
*
* Indicates if the DB instance has a public IP to facilitate access.
*
*
* @param publiclyAccessible
* Indicates if the DB instance has a public IP to facilitate access.
*/
public void setPubliclyAccessible(Boolean publiclyAccessible) {
this.publiclyAccessible = publiclyAccessible;
}
/**
*
* Indicates if the DB instance has a public IP to facilitate access.
*
*
* @return Indicates if the DB instance has a public IP to facilitate access.
*/
public Boolean getPubliclyAccessible() {
return this.publiclyAccessible;
}
/**
*
* Indicates if the DB instance has a public IP to facilitate access.
*
*
* @param publiclyAccessible
* Indicates if the DB instance has a public IP to facilitate access.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withPubliclyAccessible(Boolean publiclyAccessible) {
setPubliclyAccessible(publiclyAccessible);
return this;
}
/**
*
* Indicates if the DB instance has a public IP to facilitate access.
*
*
* @return Indicates if the DB instance has a public IP to facilitate access.
*/
public Boolean isPubliclyAccessible() {
return this.publiclyAccessible;
}
/**
*
* A list of VPC security group IDs associated with the DB instance.
*
*
* @return A list of VPC security group IDs associated with the DB instance.
*/
public java.util.List getVpcSecurityGroupIds() {
return vpcSecurityGroupIds;
}
/**
*
* A list of VPC security group IDs associated with the DB instance.
*
*
* @param vpcSecurityGroupIds
* A list of VPC security group IDs associated with the DB instance.
*/
public void setVpcSecurityGroupIds(java.util.Collection vpcSecurityGroupIds) {
if (vpcSecurityGroupIds == null) {
this.vpcSecurityGroupIds = null;
return;
}
this.vpcSecurityGroupIds = new java.util.ArrayList(vpcSecurityGroupIds);
}
/**
*
* A list of VPC security group IDs associated with the DB instance.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVpcSecurityGroupIds(java.util.Collection)} or {@link #withVpcSecurityGroupIds(java.util.Collection)}
* if you want to override the existing values.
*
*
* @param vpcSecurityGroupIds
* A list of VPC security group IDs associated with the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withVpcSecurityGroupIds(String... vpcSecurityGroupIds) {
if (this.vpcSecurityGroupIds == null) {
setVpcSecurityGroupIds(new java.util.ArrayList(vpcSecurityGroupIds.length));
}
for (String ele : vpcSecurityGroupIds) {
this.vpcSecurityGroupIds.add(ele);
}
return this;
}
/**
*
* A list of VPC security group IDs associated with the DB instance.
*
*
* @param vpcSecurityGroupIds
* A list of VPC security group IDs associated with the DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withVpcSecurityGroupIds(java.util.Collection vpcSecurityGroupIds) {
setVpcSecurityGroupIds(vpcSecurityGroupIds);
return this;
}
/**
*
* The id of the DB parameter group assigned to your DB instance.
*
*
* @param dbParameterGroupIdentifier
* The id of the DB parameter group assigned to your DB instance.
*/
public void setDbParameterGroupIdentifier(String dbParameterGroupIdentifier) {
this.dbParameterGroupIdentifier = dbParameterGroupIdentifier;
}
/**
*
* The id of the DB parameter group assigned to your DB instance.
*
*
* @return The id of the DB parameter group assigned to your DB instance.
*/
public String getDbParameterGroupIdentifier() {
return this.dbParameterGroupIdentifier;
}
/**
*
* The id of the DB parameter group assigned to your DB instance.
*
*
* @param dbParameterGroupIdentifier
* The id of the DB parameter group assigned to your DB instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withDbParameterGroupIdentifier(String dbParameterGroupIdentifier) {
setDbParameterGroupIdentifier(dbParameterGroupIdentifier);
return this;
}
/**
*
* The Availability Zone in which the DB instance resides.
*
*
* @param availabilityZone
* The Availability Zone in which the DB instance resides.
*/
public void setAvailabilityZone(String availabilityZone) {
this.availabilityZone = availabilityZone;
}
/**
*
* The Availability Zone in which the DB instance resides.
*
*
* @return The Availability Zone in which the DB instance resides.
*/
public String getAvailabilityZone() {
return this.availabilityZone;
}
/**
*
* The Availability Zone in which the DB instance resides.
*
*
* @param availabilityZone
* The Availability Zone in which the DB instance resides.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withAvailabilityZone(String availabilityZone) {
setAvailabilityZone(availabilityZone);
return this;
}
/**
*
* The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.
*
*
* @param secondaryAvailabilityZone
* The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby
* instance.
*/
public void setSecondaryAvailabilityZone(String secondaryAvailabilityZone) {
this.secondaryAvailabilityZone = secondaryAvailabilityZone;
}
/**
*
* The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.
*
*
* @return The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby
* instance.
*/
public String getSecondaryAvailabilityZone() {
return this.secondaryAvailabilityZone;
}
/**
*
* The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby instance.
*
*
* @param secondaryAvailabilityZone
* The Availability Zone in which the standby instance is located when deploying with a MultiAZ standby
* instance.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withSecondaryAvailabilityZone(String secondaryAvailabilityZone) {
setSecondaryAvailabilityZone(secondaryAvailabilityZone);
return this;
}
/**
*
* Configuration for sending InfluxDB engine logs to send to specified S3 bucket.
*
*
* @param logDeliveryConfiguration
* Configuration for sending InfluxDB engine logs to send to specified S3 bucket.
*/
public void setLogDeliveryConfiguration(LogDeliveryConfiguration logDeliveryConfiguration) {
this.logDeliveryConfiguration = logDeliveryConfiguration;
}
/**
*
* Configuration for sending InfluxDB engine logs to send to specified S3 bucket.
*
*
* @return Configuration for sending InfluxDB engine logs to send to specified S3 bucket.
*/
public LogDeliveryConfiguration getLogDeliveryConfiguration() {
return this.logDeliveryConfiguration;
}
/**
*
* Configuration for sending InfluxDB engine logs to send to specified S3 bucket.
*
*
* @param logDeliveryConfiguration
* Configuration for sending InfluxDB engine logs to send to specified S3 bucket.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withLogDeliveryConfiguration(LogDeliveryConfiguration logDeliveryConfiguration) {
setLogDeliveryConfiguration(logDeliveryConfiguration);
return this;
}
/**
*
* The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization
* parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values:
* organization, bucket, username, and password.
*
*
* @param influxAuthParametersSecretArn
* The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB
* authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB
* authorization values: organization, bucket, username, and password.
*/
public void setInfluxAuthParametersSecretArn(String influxAuthParametersSecretArn) {
this.influxAuthParametersSecretArn = influxAuthParametersSecretArn;
}
/**
*
* The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization
* parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values:
* organization, bucket, username, and password.
*
*
* @return The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB
* authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB
* authorization values: organization, bucket, username, and password.
*/
public String getInfluxAuthParametersSecretArn() {
return this.influxAuthParametersSecretArn;
}
/**
*
* The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB authorization
* parameters. The secret value is a JSON formatted key-value pair holding InfluxDB authorization values:
* organization, bucket, username, and password.
*
*
* @param influxAuthParametersSecretArn
* The Amazon Resource Name (ARN) of the AWS Secrets Manager secret containing the initial InfluxDB
* authorization parameters. The secret value is a JSON formatted key-value pair holding InfluxDB
* authorization values: organization, bucket, username, and password.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public CreateDbInstanceResult withInfluxAuthParametersSecretArn(String influxAuthParametersSecretArn) {
setInfluxAuthParametersSecretArn(influxAuthParametersSecretArn);
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 (getId() != null)
sb.append("Id: ").append(getId()).append(",");
if (getName() != null)
sb.append("Name: ").append(getName()).append(",");
if (getArn() != null)
sb.append("Arn: ").append(getArn()).append(",");
if (getStatus() != null)
sb.append("Status: ").append(getStatus()).append(",");
if (getEndpoint() != null)
sb.append("Endpoint: ").append(getEndpoint()).append(",");
if (getDbInstanceType() != null)
sb.append("DbInstanceType: ").append(getDbInstanceType()).append(",");
if (getDbStorageType() != null)
sb.append("DbStorageType: ").append(getDbStorageType()).append(",");
if (getAllocatedStorage() != null)
sb.append("AllocatedStorage: ").append(getAllocatedStorage()).append(",");
if (getDeploymentType() != null)
sb.append("DeploymentType: ").append(getDeploymentType()).append(",");
if (getVpcSubnetIds() != null)
sb.append("VpcSubnetIds: ").append(getVpcSubnetIds()).append(",");
if (getPubliclyAccessible() != null)
sb.append("PubliclyAccessible: ").append(getPubliclyAccessible()).append(",");
if (getVpcSecurityGroupIds() != null)
sb.append("VpcSecurityGroupIds: ").append(getVpcSecurityGroupIds()).append(",");
if (getDbParameterGroupIdentifier() != null)
sb.append("DbParameterGroupIdentifier: ").append(getDbParameterGroupIdentifier()).append(",");
if (getAvailabilityZone() != null)
sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
if (getSecondaryAvailabilityZone() != null)
sb.append("SecondaryAvailabilityZone: ").append(getSecondaryAvailabilityZone()).append(",");
if (getLogDeliveryConfiguration() != null)
sb.append("LogDeliveryConfiguration: ").append(getLogDeliveryConfiguration()).append(",");
if (getInfluxAuthParametersSecretArn() != null)
sb.append("InfluxAuthParametersSecretArn: ").append(getInfluxAuthParametersSecretArn());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof CreateDbInstanceResult == false)
return false;
CreateDbInstanceResult other = (CreateDbInstanceResult) obj;
if (other.getId() == null ^ this.getId() == null)
return false;
if (other.getId() != null && other.getId().equals(this.getId()) == false)
return false;
if (other.getName() == null ^ this.getName() == null)
return false;
if (other.getName() != null && other.getName().equals(this.getName()) == false)
return false;
if (other.getArn() == null ^ this.getArn() == null)
return false;
if (other.getArn() != null && other.getArn().equals(this.getArn()) == false)
return false;
if (other.getStatus() == null ^ this.getStatus() == null)
return false;
if (other.getStatus() != null && other.getStatus().equals(this.getStatus()) == false)
return false;
if (other.getEndpoint() == null ^ this.getEndpoint() == null)
return false;
if (other.getEndpoint() != null && other.getEndpoint().equals(this.getEndpoint()) == false)
return false;
if (other.getDbInstanceType() == null ^ this.getDbInstanceType() == null)
return false;
if (other.getDbInstanceType() != null && other.getDbInstanceType().equals(this.getDbInstanceType()) == false)
return false;
if (other.getDbStorageType() == null ^ this.getDbStorageType() == null)
return false;
if (other.getDbStorageType() != null && other.getDbStorageType().equals(this.getDbStorageType()) == false)
return false;
if (other.getAllocatedStorage() == null ^ this.getAllocatedStorage() == null)
return false;
if (other.getAllocatedStorage() != null && other.getAllocatedStorage().equals(this.getAllocatedStorage()) == false)
return false;
if (other.getDeploymentType() == null ^ this.getDeploymentType() == null)
return false;
if (other.getDeploymentType() != null && other.getDeploymentType().equals(this.getDeploymentType()) == false)
return false;
if (other.getVpcSubnetIds() == null ^ this.getVpcSubnetIds() == null)
return false;
if (other.getVpcSubnetIds() != null && other.getVpcSubnetIds().equals(this.getVpcSubnetIds()) == false)
return false;
if (other.getPubliclyAccessible() == null ^ this.getPubliclyAccessible() == null)
return false;
if (other.getPubliclyAccessible() != null && other.getPubliclyAccessible().equals(this.getPubliclyAccessible()) == false)
return false;
if (other.getVpcSecurityGroupIds() == null ^ this.getVpcSecurityGroupIds() == null)
return false;
if (other.getVpcSecurityGroupIds() != null && other.getVpcSecurityGroupIds().equals(this.getVpcSecurityGroupIds()) == false)
return false;
if (other.getDbParameterGroupIdentifier() == null ^ this.getDbParameterGroupIdentifier() == null)
return false;
if (other.getDbParameterGroupIdentifier() != null && other.getDbParameterGroupIdentifier().equals(this.getDbParameterGroupIdentifier()) == false)
return false;
if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null)
return false;
if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false)
return false;
if (other.getSecondaryAvailabilityZone() == null ^ this.getSecondaryAvailabilityZone() == null)
return false;
if (other.getSecondaryAvailabilityZone() != null && other.getSecondaryAvailabilityZone().equals(this.getSecondaryAvailabilityZone()) == false)
return false;
if (other.getLogDeliveryConfiguration() == null ^ this.getLogDeliveryConfiguration() == null)
return false;
if (other.getLogDeliveryConfiguration() != null && other.getLogDeliveryConfiguration().equals(this.getLogDeliveryConfiguration()) == false)
return false;
if (other.getInfluxAuthParametersSecretArn() == null ^ this.getInfluxAuthParametersSecretArn() == null)
return false;
if (other.getInfluxAuthParametersSecretArn() != null
&& other.getInfluxAuthParametersSecretArn().equals(this.getInfluxAuthParametersSecretArn()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getId() == null) ? 0 : getId().hashCode());
hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode());
hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode());
hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode());
hashCode = prime * hashCode + ((getEndpoint() == null) ? 0 : getEndpoint().hashCode());
hashCode = prime * hashCode + ((getDbInstanceType() == null) ? 0 : getDbInstanceType().hashCode());
hashCode = prime * hashCode + ((getDbStorageType() == null) ? 0 : getDbStorageType().hashCode());
hashCode = prime * hashCode + ((getAllocatedStorage() == null) ? 0 : getAllocatedStorage().hashCode());
hashCode = prime * hashCode + ((getDeploymentType() == null) ? 0 : getDeploymentType().hashCode());
hashCode = prime * hashCode + ((getVpcSubnetIds() == null) ? 0 : getVpcSubnetIds().hashCode());
hashCode = prime * hashCode + ((getPubliclyAccessible() == null) ? 0 : getPubliclyAccessible().hashCode());
hashCode = prime * hashCode + ((getVpcSecurityGroupIds() == null) ? 0 : getVpcSecurityGroupIds().hashCode());
hashCode = prime * hashCode + ((getDbParameterGroupIdentifier() == null) ? 0 : getDbParameterGroupIdentifier().hashCode());
hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
hashCode = prime * hashCode + ((getSecondaryAvailabilityZone() == null) ? 0 : getSecondaryAvailabilityZone().hashCode());
hashCode = prime * hashCode + ((getLogDeliveryConfiguration() == null) ? 0 : getLogDeliveryConfiguration().hashCode());
hashCode = prime * hashCode + ((getInfluxAuthParametersSecretArn() == null) ? 0 : getInfluxAuthParametersSecretArn().hashCode());
return hashCode;
}
@Override
public CreateDbInstanceResult clone() {
try {
return (CreateDbInstanceResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}