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

com.amazonaws.services.kinesisfirehose.model.RedshiftDestinationDescription Maven / Gradle / Ivy

/*
 * 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.kinesisfirehose.model;

import java.io.Serializable;

/**
 * 

* Describes a destination in Amazon Redshift. *

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

* The ARN of the AWS credentials. *

*/ private String roleARN; /** *

* The database connection string. *

*/ private String clusterJDBCURL; /** *

* The COPY command. *

*/ private CopyCommand copyCommand; /** *

* The name of the user. *

*/ private String username; /** *

* Configures retry behavior in the event that Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes). *

*/ private RedshiftRetryOptions retryOptions; /** *

* The Amazon S3 destination. *

*/ private S3DestinationDescription s3DestinationDescription; /** *

* Describes CloudWatch logging options for your delivery stream. *

*/ private CloudWatchLoggingOptions cloudWatchLoggingOptions; /** *

* The ARN of the AWS credentials. *

* * @param roleARN * The ARN of the AWS credentials. */ public void setRoleARN(String roleARN) { this.roleARN = roleARN; } /** *

* The ARN of the AWS credentials. *

* * @return The ARN of the AWS credentials. */ public String getRoleARN() { return this.roleARN; } /** *

* The ARN of the AWS credentials. *

* * @param roleARN * The ARN of the AWS credentials. * @return Returns a reference to this object so that method calls can be * chained together. */ public RedshiftDestinationDescription withRoleARN(String roleARN) { setRoleARN(roleARN); return this; } /** *

* The database connection string. *

* * @param clusterJDBCURL * The database connection string. */ public void setClusterJDBCURL(String clusterJDBCURL) { this.clusterJDBCURL = clusterJDBCURL; } /** *

* The database connection string. *

* * @return The database connection string. */ public String getClusterJDBCURL() { return this.clusterJDBCURL; } /** *

* The database connection string. *

* * @param clusterJDBCURL * The database connection string. * @return Returns a reference to this object so that method calls can be * chained together. */ public RedshiftDestinationDescription withClusterJDBCURL( String clusterJDBCURL) { setClusterJDBCURL(clusterJDBCURL); return this; } /** *

* The COPY command. *

* * @param copyCommand * The COPY command. */ public void setCopyCommand(CopyCommand copyCommand) { this.copyCommand = copyCommand; } /** *

* The COPY command. *

* * @return The COPY command. */ public CopyCommand getCopyCommand() { return this.copyCommand; } /** *

* The COPY command. *

* * @param copyCommand * The COPY command. * @return Returns a reference to this object so that method calls can be * chained together. */ public RedshiftDestinationDescription withCopyCommand( CopyCommand copyCommand) { setCopyCommand(copyCommand); return this; } /** *

* The name of the user. *

* * @param username * The name of the user. */ public void setUsername(String username) { this.username = username; } /** *

* The name of the user. *

* * @return The name of the user. */ public String getUsername() { return this.username; } /** *

* The name of the user. *

* * @param username * The name of the user. * @return Returns a reference to this object so that method calls can be * chained together. */ public RedshiftDestinationDescription withUsername(String username) { setUsername(username); return this; } /** *

* Configures retry behavior in the event that Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes). *

* * @param retryOptions * Configures retry behavior in the event that Firehose is unable to * deliver documents to Amazon Redshift. Default value is 3600 (60 * minutes). */ public void setRetryOptions(RedshiftRetryOptions retryOptions) { this.retryOptions = retryOptions; } /** *

* Configures retry behavior in the event that Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes). *

* * @return Configures retry behavior in the event that Firehose is unable to * deliver documents to Amazon Redshift. Default value is 3600 (60 * minutes). */ public RedshiftRetryOptions getRetryOptions() { return this.retryOptions; } /** *

* Configures retry behavior in the event that Firehose is unable to deliver * documents to Amazon Redshift. Default value is 3600 (60 minutes). *

* * @param retryOptions * Configures retry behavior in the event that Firehose is unable to * deliver documents to Amazon Redshift. Default value is 3600 (60 * minutes). * @return Returns a reference to this object so that method calls can be * chained together. */ public RedshiftDestinationDescription withRetryOptions( RedshiftRetryOptions retryOptions) { setRetryOptions(retryOptions); return this; } /** *

* The Amazon S3 destination. *

* * @param s3DestinationDescription * The Amazon S3 destination. */ public void setS3DestinationDescription( S3DestinationDescription s3DestinationDescription) { this.s3DestinationDescription = s3DestinationDescription; } /** *

* The Amazon S3 destination. *

* * @return The Amazon S3 destination. */ public S3DestinationDescription getS3DestinationDescription() { return this.s3DestinationDescription; } /** *

* The Amazon S3 destination. *

* * @param s3DestinationDescription * The Amazon S3 destination. * @return Returns a reference to this object so that method calls can be * chained together. */ public RedshiftDestinationDescription withS3DestinationDescription( S3DestinationDescription s3DestinationDescription) { setS3DestinationDescription(s3DestinationDescription); return this; } /** *

* Describes CloudWatch logging options for your delivery stream. *

* * @param cloudWatchLoggingOptions * Describes CloudWatch logging options for your delivery stream. */ public void setCloudWatchLoggingOptions( CloudWatchLoggingOptions cloudWatchLoggingOptions) { this.cloudWatchLoggingOptions = cloudWatchLoggingOptions; } /** *

* Describes CloudWatch logging options for your delivery stream. *

* * @return Describes CloudWatch logging options for your delivery stream. */ public CloudWatchLoggingOptions getCloudWatchLoggingOptions() { return this.cloudWatchLoggingOptions; } /** *

* Describes CloudWatch logging options for your delivery stream. *

* * @param cloudWatchLoggingOptions * Describes CloudWatch logging options for your delivery stream. * @return Returns a reference to this object so that method calls can be * chained together. */ public RedshiftDestinationDescription withCloudWatchLoggingOptions( CloudWatchLoggingOptions cloudWatchLoggingOptions) { setCloudWatchLoggingOptions(cloudWatchLoggingOptions); 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 (getRoleARN() != null) sb.append("RoleARN: " + getRoleARN() + ","); if (getClusterJDBCURL() != null) sb.append("ClusterJDBCURL: " + getClusterJDBCURL() + ","); if (getCopyCommand() != null) sb.append("CopyCommand: " + getCopyCommand() + ","); if (getUsername() != null) sb.append("Username: " + getUsername() + ","); if (getRetryOptions() != null) sb.append("RetryOptions: " + getRetryOptions() + ","); if (getS3DestinationDescription() != null) sb.append("S3DestinationDescription: " + getS3DestinationDescription() + ","); if (getCloudWatchLoggingOptions() != null) sb.append("CloudWatchLoggingOptions: " + getCloudWatchLoggingOptions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof RedshiftDestinationDescription == false) return false; RedshiftDestinationDescription other = (RedshiftDestinationDescription) obj; if (other.getRoleARN() == null ^ this.getRoleARN() == null) return false; if (other.getRoleARN() != null && other.getRoleARN().equals(this.getRoleARN()) == false) return false; if (other.getClusterJDBCURL() == null ^ this.getClusterJDBCURL() == null) return false; if (other.getClusterJDBCURL() != null && other.getClusterJDBCURL().equals(this.getClusterJDBCURL()) == false) return false; if (other.getCopyCommand() == null ^ this.getCopyCommand() == null) return false; if (other.getCopyCommand() != null && other.getCopyCommand().equals(this.getCopyCommand()) == false) return false; if (other.getUsername() == null ^ this.getUsername() == null) return false; if (other.getUsername() != null && other.getUsername().equals(this.getUsername()) == false) return false; if (other.getRetryOptions() == null ^ this.getRetryOptions() == null) return false; if (other.getRetryOptions() != null && other.getRetryOptions().equals(this.getRetryOptions()) == false) return false; if (other.getS3DestinationDescription() == null ^ this.getS3DestinationDescription() == null) return false; if (other.getS3DestinationDescription() != null && other.getS3DestinationDescription().equals( this.getS3DestinationDescription()) == false) return false; if (other.getCloudWatchLoggingOptions() == null ^ this.getCloudWatchLoggingOptions() == null) return false; if (other.getCloudWatchLoggingOptions() != null && other.getCloudWatchLoggingOptions().equals( this.getCloudWatchLoggingOptions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getRoleARN() == null) ? 0 : getRoleARN().hashCode()); hashCode = prime * hashCode + ((getClusterJDBCURL() == null) ? 0 : getClusterJDBCURL() .hashCode()); hashCode = prime * hashCode + ((getCopyCommand() == null) ? 0 : getCopyCommand().hashCode()); hashCode = prime * hashCode + ((getUsername() == null) ? 0 : getUsername().hashCode()); hashCode = prime * hashCode + ((getRetryOptions() == null) ? 0 : getRetryOptions() .hashCode()); hashCode = prime * hashCode + ((getS3DestinationDescription() == null) ? 0 : getS3DestinationDescription().hashCode()); hashCode = prime * hashCode + ((getCloudWatchLoggingOptions() == null) ? 0 : getCloudWatchLoggingOptions().hashCode()); return hashCode; } @Override public RedshiftDestinationDescription clone() { try { return (RedshiftDestinationDescription) 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