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

com.amazonaws.services.kinesisanalytics.model.ReferenceDataSourceDescription Maven / Gradle / Ivy

Go to download

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

There is a newer version: 1.9.8
Show newest version
/*
 * Copyright 2011-2016 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.kinesisanalytics.model;

import java.io.Serializable;

/**
 * 

* Describes the reference data source configured for an application. *

*/ public class ReferenceDataSourceDescription implements Serializable, Cloneable { /** *

* ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the reference * data source to your application using the AddApplicationReferenceDataSource operation. *

*/ private String referenceId; /** *

* The in-application table name created by the specific reference data source configuration. *

*/ private String tableName; /** *

* Provides the S3 bucket name, the object key name that contains the reference data. It also provides the Amazon * Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and * populate the in-application reference table. *

*/ private S3ReferenceDataSourceDescription s3ReferenceDataSourceDescription; private SourceSchema referenceSchema; /** *

* ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the reference * data source to your application using the AddApplicationReferenceDataSource operation. *

* * @param referenceId * ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the * reference data source to your application using the AddApplicationReferenceDataSource operation. */ public void setReferenceId(String referenceId) { this.referenceId = referenceId; } /** *

* ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the reference * data source to your application using the AddApplicationReferenceDataSource operation. *

* * @return ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the * reference data source to your application using the AddApplicationReferenceDataSource operation. */ public String getReferenceId() { return this.referenceId; } /** *

* ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the reference * data source to your application using the AddApplicationReferenceDataSource operation. *

* * @param referenceId * ID of the reference data source. This is the ID that Amazon Kinesis Analytics assigns when you add the * reference data source to your application using the AddApplicationReferenceDataSource operation. * @return Returns a reference to this object so that method calls can be chained together. */ public ReferenceDataSourceDescription withReferenceId(String referenceId) { setReferenceId(referenceId); return this; } /** *

* The in-application table name created by the specific reference data source configuration. *

* * @param tableName * The in-application table name created by the specific reference data source configuration. */ public void setTableName(String tableName) { this.tableName = tableName; } /** *

* The in-application table name created by the specific reference data source configuration. *

* * @return The in-application table name created by the specific reference data source configuration. */ public String getTableName() { return this.tableName; } /** *

* The in-application table name created by the specific reference data source configuration. *

* * @param tableName * The in-application table name created by the specific reference data source configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public ReferenceDataSourceDescription withTableName(String tableName) { setTableName(tableName); return this; } /** *

* Provides the S3 bucket name, the object key name that contains the reference data. It also provides the Amazon * Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and * populate the in-application reference table. *

* * @param s3ReferenceDataSourceDescription * Provides the S3 bucket name, the object key name that contains the reference data. It also provides the * Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 * object and populate the in-application reference table. */ public void setS3ReferenceDataSourceDescription(S3ReferenceDataSourceDescription s3ReferenceDataSourceDescription) { this.s3ReferenceDataSourceDescription = s3ReferenceDataSourceDescription; } /** *

* Provides the S3 bucket name, the object key name that contains the reference data. It also provides the Amazon * Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and * populate the in-application reference table. *

* * @return Provides the S3 bucket name, the object key name that contains the reference data. It also provides the * Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 * object and populate the in-application reference table. */ public S3ReferenceDataSourceDescription getS3ReferenceDataSourceDescription() { return this.s3ReferenceDataSourceDescription; } /** *

* Provides the S3 bucket name, the object key name that contains the reference data. It also provides the Amazon * Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 object and * populate the in-application reference table. *

* * @param s3ReferenceDataSourceDescription * Provides the S3 bucket name, the object key name that contains the reference data. It also provides the * Amazon Resource Name (ARN) of the IAM role that Amazon Kinesis Analytics can assume to read the Amazon S3 * object and populate the in-application reference table. * @return Returns a reference to this object so that method calls can be chained together. */ public ReferenceDataSourceDescription withS3ReferenceDataSourceDescription(S3ReferenceDataSourceDescription s3ReferenceDataSourceDescription) { setS3ReferenceDataSourceDescription(s3ReferenceDataSourceDescription); return this; } /** * @param referenceSchema */ public void setReferenceSchema(SourceSchema referenceSchema) { this.referenceSchema = referenceSchema; } /** * @return */ public SourceSchema getReferenceSchema() { return this.referenceSchema; } /** * @param referenceSchema * @return Returns a reference to this object so that method calls can be chained together. */ public ReferenceDataSourceDescription withReferenceSchema(SourceSchema referenceSchema) { setReferenceSchema(referenceSchema); return this; } /** * Returns a string representation of this object; useful for testing and debugging. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getReferenceId() != null) sb.append("ReferenceId: " + getReferenceId() + ","); if (getTableName() != null) sb.append("TableName: " + getTableName() + ","); if (getS3ReferenceDataSourceDescription() != null) sb.append("S3ReferenceDataSourceDescription: " + getS3ReferenceDataSourceDescription() + ","); if (getReferenceSchema() != null) sb.append("ReferenceSchema: " + getReferenceSchema()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ReferenceDataSourceDescription == false) return false; ReferenceDataSourceDescription other = (ReferenceDataSourceDescription) obj; if (other.getReferenceId() == null ^ this.getReferenceId() == null) return false; if (other.getReferenceId() != null && other.getReferenceId().equals(this.getReferenceId()) == false) return false; if (other.getTableName() == null ^ this.getTableName() == null) return false; if (other.getTableName() != null && other.getTableName().equals(this.getTableName()) == false) return false; if (other.getS3ReferenceDataSourceDescription() == null ^ this.getS3ReferenceDataSourceDescription() == null) return false; if (other.getS3ReferenceDataSourceDescription() != null && other.getS3ReferenceDataSourceDescription().equals(this.getS3ReferenceDataSourceDescription()) == false) return false; if (other.getReferenceSchema() == null ^ this.getReferenceSchema() == null) return false; if (other.getReferenceSchema() != null && other.getReferenceSchema().equals(this.getReferenceSchema()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getReferenceId() == null) ? 0 : getReferenceId().hashCode()); hashCode = prime * hashCode + ((getTableName() == null) ? 0 : getTableName().hashCode()); hashCode = prime * hashCode + ((getS3ReferenceDataSourceDescription() == null) ? 0 : getS3ReferenceDataSourceDescription().hashCode()); hashCode = prime * hashCode + ((getReferenceSchema() == null) ? 0 : getReferenceSchema().hashCode()); return hashCode; } @Override public ReferenceDataSourceDescription clone() { try { return (ReferenceDataSourceDescription) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy