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

com.amazonaws.services.quicksight.model.DataSource Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2014-2019 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.quicksight.model;

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

/**
 * 

* The structure of a data source. *

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

* The Amazon Resource name (ARN) of the data source. *

*/ private String arn; /** *

* The ID of the data source. This ID is unique per AWS Region for each AWS account. *

*/ private String dataSourceId; /** *

* A display name for the data source. *

*/ private String name; /** *

* The type of the data source. This indicates which database engine the data source connects to. *

*/ private String type; /** *

* The HTTP status of the request. *

*/ private String status; /** *

* The time this was created. *

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

* The last time this was updated. *

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

* The parameters that QuickSight uses to connect to your underlying source. This is a variant type structure. At * most one of the attributes should be non-null for this structure to be valid. *

*/ private DataSourceParameters dataSourceParameters; /** *

* The VPC connection information. You need to use this parameter only when you want QuickSight to use a VPC * connection when connecting to your underlying source. *

*/ private VpcConnectionProperties vpcConnectionProperties; /** *

* Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source. *

*/ private SslProperties sslProperties; /** *

* Error information from the last update or the creation of the data source. *

*/ private DataSourceErrorInfo errorInfo; /** *

* The Amazon Resource name (ARN) of the data source. *

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

* The Amazon Resource name (ARN) of the data source. *

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

* The Amazon Resource name (ARN) of the data source. *

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

* The ID of the data source. This ID is unique per AWS Region for each AWS account. *

* * @param dataSourceId * The ID of the data source. This ID is unique per AWS Region for each AWS account. */ public void setDataSourceId(String dataSourceId) { this.dataSourceId = dataSourceId; } /** *

* The ID of the data source. This ID is unique per AWS Region for each AWS account. *

* * @return The ID of the data source. This ID is unique per AWS Region for each AWS account. */ public String getDataSourceId() { return this.dataSourceId; } /** *

* The ID of the data source. This ID is unique per AWS Region for each AWS account. *

* * @param dataSourceId * The ID of the data source. This ID is unique per AWS Region for each AWS account. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withDataSourceId(String dataSourceId) { setDataSourceId(dataSourceId); return this; } /** *

* A display name for the data source. *

* * @param name * A display name for the data source. */ public void setName(String name) { this.name = name; } /** *

* A display name for the data source. *

* * @return A display name for the data source. */ public String getName() { return this.name; } /** *

* A display name for the data source. *

* * @param name * A display name for the data source. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withName(String name) { setName(name); return this; } /** *

* The type of the data source. This indicates which database engine the data source connects to. *

* * @param type * The type of the data source. This indicates which database engine the data source connects to. * @see DataSourceType */ public void setType(String type) { this.type = type; } /** *

* The type of the data source. This indicates which database engine the data source connects to. *

* * @return The type of the data source. This indicates which database engine the data source connects to. * @see DataSourceType */ public String getType() { return this.type; } /** *

* The type of the data source. This indicates which database engine the data source connects to. *

* * @param type * The type of the data source. This indicates which database engine the data source connects to. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceType */ public DataSource withType(String type) { setType(type); return this; } /** *

* The type of the data source. This indicates which database engine the data source connects to. *

* * @param type * The type of the data source. This indicates which database engine the data source connects to. * @return Returns a reference to this object so that method calls can be chained together. * @see DataSourceType */ public DataSource withType(DataSourceType type) { this.type = type.toString(); return this; } /** *

* The HTTP status of the request. *

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

* The HTTP status of the request. *

* * @return The HTTP status of the request. * @see ResourceStatus */ public String getStatus() { return this.status; } /** *

* The HTTP status of the request. *

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

* The HTTP status of the request. *

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

* The time this was created. *

* * @param createdTime * The time this was created. */ public void setCreatedTime(java.util.Date createdTime) { this.createdTime = createdTime; } /** *

* The time this was created. *

* * @return The time this was created. */ public java.util.Date getCreatedTime() { return this.createdTime; } /** *

* The time this was created. *

* * @param createdTime * The time this was created. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withCreatedTime(java.util.Date createdTime) { setCreatedTime(createdTime); return this; } /** *

* The last time this was updated. *

* * @param lastUpdatedTime * The last time this was updated. */ public void setLastUpdatedTime(java.util.Date lastUpdatedTime) { this.lastUpdatedTime = lastUpdatedTime; } /** *

* The last time this was updated. *

* * @return The last time this was updated. */ public java.util.Date getLastUpdatedTime() { return this.lastUpdatedTime; } /** *

* The last time this was updated. *

* * @param lastUpdatedTime * The last time this was updated. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withLastUpdatedTime(java.util.Date lastUpdatedTime) { setLastUpdatedTime(lastUpdatedTime); return this; } /** *

* The parameters that QuickSight uses to connect to your underlying source. This is a variant type structure. At * most one of the attributes should be non-null for this structure to be valid. *

* * @param dataSourceParameters * The parameters that QuickSight uses to connect to your underlying source. This is a variant type * structure. At most one of the attributes should be non-null for this structure to be valid. */ public void setDataSourceParameters(DataSourceParameters dataSourceParameters) { this.dataSourceParameters = dataSourceParameters; } /** *

* The parameters that QuickSight uses to connect to your underlying source. This is a variant type structure. At * most one of the attributes should be non-null for this structure to be valid. *

* * @return The parameters that QuickSight uses to connect to your underlying source. This is a variant type * structure. At most one of the attributes should be non-null for this structure to be valid. */ public DataSourceParameters getDataSourceParameters() { return this.dataSourceParameters; } /** *

* The parameters that QuickSight uses to connect to your underlying source. This is a variant type structure. At * most one of the attributes should be non-null for this structure to be valid. *

* * @param dataSourceParameters * The parameters that QuickSight uses to connect to your underlying source. This is a variant type * structure. At most one of the attributes should be non-null for this structure to be valid. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withDataSourceParameters(DataSourceParameters dataSourceParameters) { setDataSourceParameters(dataSourceParameters); return this; } /** *

* The VPC connection information. You need to use this parameter only when you want QuickSight to use a VPC * connection when connecting to your underlying source. *

* * @param vpcConnectionProperties * The VPC connection information. You need to use this parameter only when you want QuickSight to use a VPC * connection when connecting to your underlying source. */ public void setVpcConnectionProperties(VpcConnectionProperties vpcConnectionProperties) { this.vpcConnectionProperties = vpcConnectionProperties; } /** *

* The VPC connection information. You need to use this parameter only when you want QuickSight to use a VPC * connection when connecting to your underlying source. *

* * @return The VPC connection information. You need to use this parameter only when you want QuickSight to use a VPC * connection when connecting to your underlying source. */ public VpcConnectionProperties getVpcConnectionProperties() { return this.vpcConnectionProperties; } /** *

* The VPC connection information. You need to use this parameter only when you want QuickSight to use a VPC * connection when connecting to your underlying source. *

* * @param vpcConnectionProperties * The VPC connection information. You need to use this parameter only when you want QuickSight to use a VPC * connection when connecting to your underlying source. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withVpcConnectionProperties(VpcConnectionProperties vpcConnectionProperties) { setVpcConnectionProperties(vpcConnectionProperties); return this; } /** *

* Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source. *

* * @param sslProperties * Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source. */ public void setSslProperties(SslProperties sslProperties) { this.sslProperties = sslProperties; } /** *

* Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source. *

* * @return Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source. */ public SslProperties getSslProperties() { return this.sslProperties; } /** *

* Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source. *

* * @param sslProperties * Secure Socket Layer (SSL) properties that apply when QuickSight connects to your underlying source. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withSslProperties(SslProperties sslProperties) { setSslProperties(sslProperties); return this; } /** *

* Error information from the last update or the creation of the data source. *

* * @param errorInfo * Error information from the last update or the creation of the data source. */ public void setErrorInfo(DataSourceErrorInfo errorInfo) { this.errorInfo = errorInfo; } /** *

* Error information from the last update or the creation of the data source. *

* * @return Error information from the last update or the creation of the data source. */ public DataSourceErrorInfo getErrorInfo() { return this.errorInfo; } /** *

* Error information from the last update or the creation of the data source. *

* * @param errorInfo * Error information from the last update or the creation of the data source. * @return Returns a reference to this object so that method calls can be chained together. */ public DataSource withErrorInfo(DataSourceErrorInfo errorInfo) { setErrorInfo(errorInfo); 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 (getArn() != null) sb.append("Arn: ").append(getArn()).append(","); if (getDataSourceId() != null) sb.append("DataSourceId: ").append(getDataSourceId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getType() != null) sb.append("Type: ").append(getType()).append(","); if (getStatus() != null) sb.append("Status: ").append(getStatus()).append(","); if (getCreatedTime() != null) sb.append("CreatedTime: ").append(getCreatedTime()).append(","); if (getLastUpdatedTime() != null) sb.append("LastUpdatedTime: ").append(getLastUpdatedTime()).append(","); if (getDataSourceParameters() != null) sb.append("DataSourceParameters: ").append(getDataSourceParameters()).append(","); if (getVpcConnectionProperties() != null) sb.append("VpcConnectionProperties: ").append(getVpcConnectionProperties()).append(","); if (getSslProperties() != null) sb.append("SslProperties: ").append(getSslProperties()).append(","); if (getErrorInfo() != null) sb.append("ErrorInfo: ").append(getErrorInfo()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof DataSource == false) return false; DataSource other = (DataSource) obj; if (other.getArn() == null ^ this.getArn() == null) return false; if (other.getArn() != null && other.getArn().equals(this.getArn()) == false) return false; if (other.getDataSourceId() == null ^ this.getDataSourceId() == null) return false; if (other.getDataSourceId() != null && other.getDataSourceId().equals(this.getDataSourceId()) == 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.getType() == null ^ this.getType() == null) return false; if (other.getType() != null && other.getType().equals(this.getType()) == 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.getCreatedTime() == null ^ this.getCreatedTime() == null) return false; if (other.getCreatedTime() != null && other.getCreatedTime().equals(this.getCreatedTime()) == false) return false; if (other.getLastUpdatedTime() == null ^ this.getLastUpdatedTime() == null) return false; if (other.getLastUpdatedTime() != null && other.getLastUpdatedTime().equals(this.getLastUpdatedTime()) == false) return false; if (other.getDataSourceParameters() == null ^ this.getDataSourceParameters() == null) return false; if (other.getDataSourceParameters() != null && other.getDataSourceParameters().equals(this.getDataSourceParameters()) == false) return false; if (other.getVpcConnectionProperties() == null ^ this.getVpcConnectionProperties() == null) return false; if (other.getVpcConnectionProperties() != null && other.getVpcConnectionProperties().equals(this.getVpcConnectionProperties()) == false) return false; if (other.getSslProperties() == null ^ this.getSslProperties() == null) return false; if (other.getSslProperties() != null && other.getSslProperties().equals(this.getSslProperties()) == false) return false; if (other.getErrorInfo() == null ^ this.getErrorInfo() == null) return false; if (other.getErrorInfo() != null && other.getErrorInfo().equals(this.getErrorInfo()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getArn() == null) ? 0 : getArn().hashCode()); hashCode = prime * hashCode + ((getDataSourceId() == null) ? 0 : getDataSourceId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode()); hashCode = prime * hashCode + ((getStatus() == null) ? 0 : getStatus().hashCode()); hashCode = prime * hashCode + ((getCreatedTime() == null) ? 0 : getCreatedTime().hashCode()); hashCode = prime * hashCode + ((getLastUpdatedTime() == null) ? 0 : getLastUpdatedTime().hashCode()); hashCode = prime * hashCode + ((getDataSourceParameters() == null) ? 0 : getDataSourceParameters().hashCode()); hashCode = prime * hashCode + ((getVpcConnectionProperties() == null) ? 0 : getVpcConnectionProperties().hashCode()); hashCode = prime * hashCode + ((getSslProperties() == null) ? 0 : getSslProperties().hashCode()); hashCode = prime * hashCode + ((getErrorInfo() == null) ? 0 : getErrorInfo().hashCode()); return hashCode; } @Override public DataSource clone() { try { return (DataSource) 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.quicksight.model.transform.DataSourceMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy