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

com.amazonaws.services.timestreaminfluxdb.model.DbInstanceSummary 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.timestreaminfluxdb.model;

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

/**
 * 

* Contains a summary of a DB instance. *

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

* The service-generated unique identifier of the DB instance. *

*/ private String id; /** *

* This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for * InfluxDB API and AWS 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 to run InfluxDB on. *

*/ private String dbInstanceType; /** *

* The storage type for your DB instance. *

*/ private String dbStorageType; /** *

* The amount of storage to allocate for your DbStorageType in GiB (gibibytes). *

*/ private Integer allocatedStorage; /** *

* Single-Instance or with a MultiAZ Standby for High availability. *

*/ private String deploymentType; /** *

* The service-generated unique identifier of the DB instance. *

* * @param id * The service-generated unique identifier of the DB instance. */ public void setId(String id) { this.id = id; } /** *

* The service-generated unique identifier of the DB instance. *

* * @return The service-generated unique identifier of the DB instance. */ public String getId() { return this.id; } /** *

* The service-generated unique identifier of the DB instance. *

* * @param id * The service-generated unique identifier of the DB instance. * @return Returns a reference to this object so that method calls can be chained together. */ public DbInstanceSummary withId(String id) { setId(id); return this; } /** *

* This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for * InfluxDB API and AWS CLI commands. *

* * @param name * This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon * Timestream for InfluxDB API and AWS CLI commands. */ public void setName(String name) { this.name = name; } /** *

* This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for * InfluxDB API and AWS CLI commands. *

* * @return This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon * Timestream for InfluxDB API and AWS CLI commands. */ public String getName() { return this.name; } /** *

* This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon Timestream for * InfluxDB API and AWS CLI commands. *

* * @param name * This customer-supplied name uniquely identifies the DB instance when interacting with the Amazon * Timestream for InfluxDB API and AWS CLI commands. * @return Returns a reference to this object so that method calls can be chained together. */ public DbInstanceSummary 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 DbInstanceSummary 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 DbInstanceSummary 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 DbInstanceSummary 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 DbInstanceSummary withEndpoint(String endpoint) { setEndpoint(endpoint); return this; } /** *

* The Timestream for InfluxDB instance type to run InfluxDB on. *

* * @param dbInstanceType * The Timestream for InfluxDB instance type to run InfluxDB on. * @see DbInstanceType */ public void setDbInstanceType(String dbInstanceType) { this.dbInstanceType = dbInstanceType; } /** *

* The Timestream for InfluxDB instance type to run InfluxDB on. *

* * @return The Timestream for InfluxDB instance type to run InfluxDB on. * @see DbInstanceType */ public String getDbInstanceType() { return this.dbInstanceType; } /** *

* The Timestream for InfluxDB instance type to run InfluxDB on. *

* * @param dbInstanceType * The Timestream for InfluxDB instance type to run InfluxDB on. * @return Returns a reference to this object so that method calls can be chained together. * @see DbInstanceType */ public DbInstanceSummary withDbInstanceType(String dbInstanceType) { setDbInstanceType(dbInstanceType); return this; } /** *

* The Timestream for InfluxDB instance type to run InfluxDB on. *

* * @param dbInstanceType * The Timestream for InfluxDB instance type to run InfluxDB on. * @return Returns a reference to this object so that method calls can be chained together. * @see DbInstanceType */ public DbInstanceSummary withDbInstanceType(DbInstanceType dbInstanceType) { this.dbInstanceType = dbInstanceType.toString(); return this; } /** *

* The storage type for your DB instance. *

* * @param dbStorageType * The storage type for your DB instance. * @see DbStorageType */ public void setDbStorageType(String dbStorageType) { this.dbStorageType = dbStorageType; } /** *

* The storage type for your DB instance. *

* * @return The storage type for your DB instance. * @see DbStorageType */ public String getDbStorageType() { return this.dbStorageType; } /** *

* The storage type for your DB instance. *

* * @param dbStorageType * The storage type for your DB instance. * @return Returns a reference to this object so that method calls can be chained together. * @see DbStorageType */ public DbInstanceSummary withDbStorageType(String dbStorageType) { setDbStorageType(dbStorageType); return this; } /** *

* The storage type for your DB instance. *

* * @param dbStorageType * The storage type for your DB instance. * @return Returns a reference to this object so that method calls can be chained together. * @see DbStorageType */ public DbInstanceSummary withDbStorageType(DbStorageType dbStorageType) { this.dbStorageType = dbStorageType.toString(); return this; } /** *

* The amount of storage to allocate for your DbStorageType in GiB (gibibytes). *

* * @param allocatedStorage * The amount of storage to allocate for your DbStorageType in GiB (gibibytes). */ public void setAllocatedStorage(Integer allocatedStorage) { this.allocatedStorage = allocatedStorage; } /** *

* The amount of storage to allocate for your DbStorageType in GiB (gibibytes). *

* * @return The amount of storage to allocate for your DbStorageType in GiB (gibibytes). */ public Integer getAllocatedStorage() { return this.allocatedStorage; } /** *

* The amount of storage to allocate for your DbStorageType in GiB (gibibytes). *

* * @param allocatedStorage * The amount of storage to allocate for your DbStorageType in GiB (gibibytes). * @return Returns a reference to this object so that method calls can be chained together. */ public DbInstanceSummary withAllocatedStorage(Integer allocatedStorage) { setAllocatedStorage(allocatedStorage); return this; } /** *

* Single-Instance or with a MultiAZ Standby for High availability. *

* * @param deploymentType * Single-Instance or with a MultiAZ Standby for High availability. * @see DeploymentType */ public void setDeploymentType(String deploymentType) { this.deploymentType = deploymentType; } /** *

* Single-Instance or with a MultiAZ Standby for High availability. *

* * @return Single-Instance or with a MultiAZ Standby for High availability. * @see DeploymentType */ public String getDeploymentType() { return this.deploymentType; } /** *

* Single-Instance or with a MultiAZ Standby for High availability. *

* * @param deploymentType * Single-Instance 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 DbInstanceSummary withDeploymentType(String deploymentType) { setDeploymentType(deploymentType); return this; } /** *

* Single-Instance or with a MultiAZ Standby for High availability. *

* * @param deploymentType * Single-Instance 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 DbInstanceSummary withDeploymentType(DeploymentType deploymentType) { this.deploymentType = deploymentType.toString(); 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()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DbInstanceSummary == false) return false; DbInstanceSummary other = (DbInstanceSummary) 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; 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()); return hashCode; } @Override public DbInstanceSummary clone() { try { return (DbInstanceSummary) 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.timestreaminfluxdb.model.transform.DbInstanceSummaryMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy