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

com.amazonaws.services.finspace.model.KxDatabaseConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for FinSpace User Environment Management module holds the client classes that are used for communicating with FinSpace User Environment Management Service

The 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.finspace.model;

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

/**
 * 

* The configuration of data that is available for querying from this database. *

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

* The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is * included by default. *

*/ private String databaseName; /** *

* Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the * cluster. *

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

* A unique identifier of the changeset that is associated with the cluster. *

*/ private String changesetId; /** *

* The name of the dataview to be used for caching historical data on disk. *

*/ private String dataviewName; /** *

* The configuration of the dataview to be used with specified cluster. *

*/ private KxDataviewConfiguration dataviewConfiguration; /** *

* The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is * included by default. *

* * @param databaseName * The name of the kdb database. When this parameter is specified in the structure, S3 with the whole * database is included by default. */ public void setDatabaseName(String databaseName) { this.databaseName = databaseName; } /** *

* The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is * included by default. *

* * @return The name of the kdb database. When this parameter is specified in the structure, S3 with the whole * database is included by default. */ public String getDatabaseName() { return this.databaseName; } /** *

* The name of the kdb database. When this parameter is specified in the structure, S3 with the whole database is * included by default. *

* * @param databaseName * The name of the kdb database. When this parameter is specified in the structure, S3 with the whole * database is included by default. * @return Returns a reference to this object so that method calls can be chained together. */ public KxDatabaseConfiguration withDatabaseName(String databaseName) { setDatabaseName(databaseName); return this; } /** *

* Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the * cluster. *

* * @return Configuration details for the disk cache used to increase performance reading from a kdb database mounted * to the cluster. */ public java.util.List getCacheConfigurations() { return cacheConfigurations; } /** *

* Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the * cluster. *

* * @param cacheConfigurations * Configuration details for the disk cache used to increase performance reading from a kdb database mounted * to the cluster. */ public void setCacheConfigurations(java.util.Collection cacheConfigurations) { if (cacheConfigurations == null) { this.cacheConfigurations = null; return; } this.cacheConfigurations = new java.util.ArrayList(cacheConfigurations); } /** *

* Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the * cluster. *

*

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

* * @param cacheConfigurations * Configuration details for the disk cache used to increase performance reading from a kdb database mounted * to the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public KxDatabaseConfiguration withCacheConfigurations(KxDatabaseCacheConfiguration... cacheConfigurations) { if (this.cacheConfigurations == null) { setCacheConfigurations(new java.util.ArrayList(cacheConfigurations.length)); } for (KxDatabaseCacheConfiguration ele : cacheConfigurations) { this.cacheConfigurations.add(ele); } return this; } /** *

* Configuration details for the disk cache used to increase performance reading from a kdb database mounted to the * cluster. *

* * @param cacheConfigurations * Configuration details for the disk cache used to increase performance reading from a kdb database mounted * to the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public KxDatabaseConfiguration withCacheConfigurations(java.util.Collection cacheConfigurations) { setCacheConfigurations(cacheConfigurations); return this; } /** *

* A unique identifier of the changeset that is associated with the cluster. *

* * @param changesetId * A unique identifier of the changeset that is associated with the cluster. */ public void setChangesetId(String changesetId) { this.changesetId = changesetId; } /** *

* A unique identifier of the changeset that is associated with the cluster. *

* * @return A unique identifier of the changeset that is associated with the cluster. */ public String getChangesetId() { return this.changesetId; } /** *

* A unique identifier of the changeset that is associated with the cluster. *

* * @param changesetId * A unique identifier of the changeset that is associated with the cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public KxDatabaseConfiguration withChangesetId(String changesetId) { setChangesetId(changesetId); return this; } /** *

* The name of the dataview to be used for caching historical data on disk. *

* * @param dataviewName * The name of the dataview to be used for caching historical data on disk. */ public void setDataviewName(String dataviewName) { this.dataviewName = dataviewName; } /** *

* The name of the dataview to be used for caching historical data on disk. *

* * @return The name of the dataview to be used for caching historical data on disk. */ public String getDataviewName() { return this.dataviewName; } /** *

* The name of the dataview to be used for caching historical data on disk. *

* * @param dataviewName * The name of the dataview to be used for caching historical data on disk. * @return Returns a reference to this object so that method calls can be chained together. */ public KxDatabaseConfiguration withDataviewName(String dataviewName) { setDataviewName(dataviewName); return this; } /** *

* The configuration of the dataview to be used with specified cluster. *

* * @param dataviewConfiguration * The configuration of the dataview to be used with specified cluster. */ public void setDataviewConfiguration(KxDataviewConfiguration dataviewConfiguration) { this.dataviewConfiguration = dataviewConfiguration; } /** *

* The configuration of the dataview to be used with specified cluster. *

* * @return The configuration of the dataview to be used with specified cluster. */ public KxDataviewConfiguration getDataviewConfiguration() { return this.dataviewConfiguration; } /** *

* The configuration of the dataview to be used with specified cluster. *

* * @param dataviewConfiguration * The configuration of the dataview to be used with specified cluster. * @return Returns a reference to this object so that method calls can be chained together. */ public KxDatabaseConfiguration withDataviewConfiguration(KxDataviewConfiguration dataviewConfiguration) { setDataviewConfiguration(dataviewConfiguration); 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 (getDatabaseName() != null) sb.append("DatabaseName: ").append(getDatabaseName()).append(","); if (getCacheConfigurations() != null) sb.append("CacheConfigurations: ").append(getCacheConfigurations()).append(","); if (getChangesetId() != null) sb.append("ChangesetId: ").append(getChangesetId()).append(","); if (getDataviewName() != null) sb.append("DataviewName: ").append(getDataviewName()).append(","); if (getDataviewConfiguration() != null) sb.append("DataviewConfiguration: ").append(getDataviewConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof KxDatabaseConfiguration == false) return false; KxDatabaseConfiguration other = (KxDatabaseConfiguration) obj; if (other.getDatabaseName() == null ^ this.getDatabaseName() == null) return false; if (other.getDatabaseName() != null && other.getDatabaseName().equals(this.getDatabaseName()) == false) return false; if (other.getCacheConfigurations() == null ^ this.getCacheConfigurations() == null) return false; if (other.getCacheConfigurations() != null && other.getCacheConfigurations().equals(this.getCacheConfigurations()) == false) return false; if (other.getChangesetId() == null ^ this.getChangesetId() == null) return false; if (other.getChangesetId() != null && other.getChangesetId().equals(this.getChangesetId()) == false) return false; if (other.getDataviewName() == null ^ this.getDataviewName() == null) return false; if (other.getDataviewName() != null && other.getDataviewName().equals(this.getDataviewName()) == false) return false; if (other.getDataviewConfiguration() == null ^ this.getDataviewConfiguration() == null) return false; if (other.getDataviewConfiguration() != null && other.getDataviewConfiguration().equals(this.getDataviewConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getDatabaseName() == null) ? 0 : getDatabaseName().hashCode()); hashCode = prime * hashCode + ((getCacheConfigurations() == null) ? 0 : getCacheConfigurations().hashCode()); hashCode = prime * hashCode + ((getChangesetId() == null) ? 0 : getChangesetId().hashCode()); hashCode = prime * hashCode + ((getDataviewName() == null) ? 0 : getDataviewName().hashCode()); hashCode = prime * hashCode + ((getDataviewConfiguration() == null) ? 0 : getDataviewConfiguration().hashCode()); return hashCode; } @Override public KxDatabaseConfiguration clone() { try { return (KxDatabaseConfiguration) 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.finspace.model.transform.KxDatabaseConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy