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

com.amazonaws.services.ssmsap.model.Database Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.778
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.ssmsap.model;

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

/**
 * 

* The SAP HANA database of the application registered with AWS Systems Manager for SAP. *

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

* The ID of the application. *

*/ private String applicationId; /** *

* The ID of the component. *

*/ private String componentId; /** *

* The credentials of the database. *

*/ private java.util.List credentials; /** *

* The ID of the SAP HANA database. *

*/ private String databaseId; /** *

* The name of the database. *

*/ private String databaseName; /** *

* The type of the database. *

*/ private String databaseType; /** *

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

*/ private String arn; /** *

* The status of the database. *

*/ private String status; /** *

* The primary host of the database. *

*/ private String primaryHost; /** *

* The SQL port of the database. *

*/ private Integer sQLPort; /** *

* The time at which the database was last updated. *

*/ private java.util.Date lastUpdated; /** *

* The ID of the application. *

* * @param applicationId * The ID of the application. */ public void setApplicationId(String applicationId) { this.applicationId = applicationId; } /** *

* The ID of the application. *

* * @return The ID of the application. */ public String getApplicationId() { return this.applicationId; } /** *

* The ID of the application. *

* * @param applicationId * The ID of the application. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withApplicationId(String applicationId) { setApplicationId(applicationId); return this; } /** *

* The ID of the component. *

* * @param componentId * The ID of the component. */ public void setComponentId(String componentId) { this.componentId = componentId; } /** *

* The ID of the component. *

* * @return The ID of the component. */ public String getComponentId() { return this.componentId; } /** *

* The ID of the component. *

* * @param componentId * The ID of the component. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withComponentId(String componentId) { setComponentId(componentId); return this; } /** *

* The credentials of the database. *

* * @return The credentials of the database. */ public java.util.List getCredentials() { return credentials; } /** *

* The credentials of the database. *

* * @param credentials * The credentials of the database. */ public void setCredentials(java.util.Collection credentials) { if (credentials == null) { this.credentials = null; return; } this.credentials = new java.util.ArrayList(credentials); } /** *

* The credentials of the database. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setCredentials(java.util.Collection)} or {@link #withCredentials(java.util.Collection)} if you want to * override the existing values. *

* * @param credentials * The credentials of the database. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withCredentials(ApplicationCredential... credentials) { if (this.credentials == null) { setCredentials(new java.util.ArrayList(credentials.length)); } for (ApplicationCredential ele : credentials) { this.credentials.add(ele); } return this; } /** *

* The credentials of the database. *

* * @param credentials * The credentials of the database. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withCredentials(java.util.Collection credentials) { setCredentials(credentials); return this; } /** *

* The ID of the SAP HANA database. *

* * @param databaseId * The ID of the SAP HANA database. */ public void setDatabaseId(String databaseId) { this.databaseId = databaseId; } /** *

* The ID of the SAP HANA database. *

* * @return The ID of the SAP HANA database. */ public String getDatabaseId() { return this.databaseId; } /** *

* The ID of the SAP HANA database. *

* * @param databaseId * The ID of the SAP HANA database. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withDatabaseId(String databaseId) { setDatabaseId(databaseId); return this; } /** *

* The name of the database. *

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

* The name of the database. *

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

* The name of the database. *

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

* The type of the database. *

* * @param databaseType * The type of the database. * @see DatabaseType */ public void setDatabaseType(String databaseType) { this.databaseType = databaseType; } /** *

* The type of the database. *

* * @return The type of the database. * @see DatabaseType */ public String getDatabaseType() { return this.databaseType; } /** *

* The type of the database. *

* * @param databaseType * The type of the database. * @return Returns a reference to this object so that method calls can be chained together. * @see DatabaseType */ public Database withDatabaseType(String databaseType) { setDatabaseType(databaseType); return this; } /** *

* The type of the database. *

* * @param databaseType * The type of the database. * @return Returns a reference to this object so that method calls can be chained together. * @see DatabaseType */ public Database withDatabaseType(DatabaseType databaseType) { this.databaseType = databaseType.toString(); return this; } /** *

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

* * @param arn * The Amazon Resource Name (ARN) of the database. */ public void setArn(String arn) { this.arn = arn; } /** *

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

* * @return The Amazon Resource Name (ARN) of the database. */ public String getArn() { return this.arn; } /** *

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

* * @param arn * The Amazon Resource Name (ARN) of the database. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withArn(String arn) { setArn(arn); return this; } /** *

* The status of the database. *

* * @param status * The status of the database. * @see DatabaseStatus */ public void setStatus(String status) { this.status = status; } /** *

* The status of the database. *

* * @return The status of the database. * @see DatabaseStatus */ public String getStatus() { return this.status; } /** *

* The status of the database. *

* * @param status * The status of the database. * @return Returns a reference to this object so that method calls can be chained together. * @see DatabaseStatus */ public Database withStatus(String status) { setStatus(status); return this; } /** *

* The status of the database. *

* * @param status * The status of the database. * @return Returns a reference to this object so that method calls can be chained together. * @see DatabaseStatus */ public Database withStatus(DatabaseStatus status) { this.status = status.toString(); return this; } /** *

* The primary host of the database. *

* * @param primaryHost * The primary host of the database. */ public void setPrimaryHost(String primaryHost) { this.primaryHost = primaryHost; } /** *

* The primary host of the database. *

* * @return The primary host of the database. */ public String getPrimaryHost() { return this.primaryHost; } /** *

* The primary host of the database. *

* * @param primaryHost * The primary host of the database. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withPrimaryHost(String primaryHost) { setPrimaryHost(primaryHost); return this; } /** *

* The SQL port of the database. *

* * @param sQLPort * The SQL port of the database. */ public void setSQLPort(Integer sQLPort) { this.sQLPort = sQLPort; } /** *

* The SQL port of the database. *

* * @return The SQL port of the database. */ public Integer getSQLPort() { return this.sQLPort; } /** *

* The SQL port of the database. *

* * @param sQLPort * The SQL port of the database. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withSQLPort(Integer sQLPort) { setSQLPort(sQLPort); return this; } /** *

* The time at which the database was last updated. *

* * @param lastUpdated * The time at which the database was last updated. */ public void setLastUpdated(java.util.Date lastUpdated) { this.lastUpdated = lastUpdated; } /** *

* The time at which the database was last updated. *

* * @return The time at which the database was last updated. */ public java.util.Date getLastUpdated() { return this.lastUpdated; } /** *

* The time at which the database was last updated. *

* * @param lastUpdated * The time at which the database was last updated. * @return Returns a reference to this object so that method calls can be chained together. */ public Database withLastUpdated(java.util.Date lastUpdated) { setLastUpdated(lastUpdated); 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 (getApplicationId() != null) sb.append("ApplicationId: ").append(getApplicationId()).append(","); if (getComponentId() != null) sb.append("ComponentId: ").append(getComponentId()).append(","); if (getCredentials() != null) sb.append("Credentials: ").append(getCredentials()).append(","); if (getDatabaseId() != null) sb.append("DatabaseId: ").append(getDatabaseId()).append(","); if (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getDatabaseType() != null) sb.append("DatabaseType: ").append(getDatabaseType()).append(","); if (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getPrimaryHost() != null) sb.append("PrimaryHost: ").append(getPrimaryHost()).append(","); if (getSQLPort() != null) sb.append("SQLPort: ").append(getSQLPort()).append(","); if (getLastUpdated() != null) sb.append("LastUpdated: ").append(getLastUpdated()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof Database == false) return false; Database other = (Database) obj; if (other.getApplicationId() == null ^ this.getApplicationId() == null) return false; if (other.getApplicationId() != null && other.getApplicationId().equals(this.getApplicationId()) == false) return false; if (other.getComponentId() == null ^ this.getComponentId() == null) return false; if (other.getComponentId() != null && other.getComponentId().equals(this.getComponentId()) == false) return false; if (other.getCredentials() == null ^ this.getCredentials() == null) return false; if (other.getCredentials() != null && other.getCredentials().equals(this.getCredentials()) == false) return false; if (other.getDatabaseId() == null ^ this.getDatabaseId() == null) return false; if (other.getDatabaseId() != null && other.getDatabaseId().equals(this.getDatabaseId()) == 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.getDatabaseType() == null ^ this.getDatabaseType() == null) return false; if (other.getDatabaseType() != null && other.getDatabaseType().equals(this.getDatabaseType()) == 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.getPrimaryHost() == null ^ this.getPrimaryHost() == null) return false; if (other.getPrimaryHost() != null && other.getPrimaryHost().equals(this.getPrimaryHost()) == false) return false; if (other.getSQLPort() == null ^ this.getSQLPort() == null) return false; if (other.getSQLPort() != null && other.getSQLPort().equals(this.getSQLPort()) == false) return false; if (other.getLastUpdated() == null ^ this.getLastUpdated() == null) return false; if (other.getLastUpdated() != null && other.getLastUpdated().equals(this.getLastUpdated()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationId() == null) ? 0 : getApplicationId().hashCode()); hashCode = prime * hashCode + ((getComponentId() == null) ? 0 : getComponentId().hashCode()); hashCode = prime * hashCode + ((getCredentials() == null) ? 0 : getCredentials().hashCode()); hashCode = prime * hashCode + ((getDatabaseId() == null) ? 0 : getDatabaseId().hashCode()); hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getDatabaseType() == null) ? 0 : getDatabaseType().hashCode()); hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getPrimaryHost() == null) ? 0 : getPrimaryHost().hashCode()); hashCode = prime * hashCode + ((getSQLPort() == null) ? 0 : getSQLPort().hashCode()); hashCode = prime * hashCode + ((getLastUpdated() == null) ? 0 : getLastUpdated().hashCode()); return hashCode; } @Override public Database clone() { try { return (Database) 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.ssmsap.model.transform.DatabaseMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy