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

com.amazonaws.services.kinesisanalytics.model.OutputDescription 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.12.772
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.kinesisanalytics.model;

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

/**
 * 

* Describes the application output configuration, which includes the in-application stream name and the destination * where the stream data is written. The destination can be an Amazon Kinesis stream or an Amazon Kinesis Firehose * delivery stream. *

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

* A unique identifier for the output configuration. *

*/ private String outputId; /** *

* Name of the in-application stream configured as output. *

*/ private String name; /** *

* Describes Amazon Kinesis stream configured as the destination where output is written. *

*/ private KinesisStreamsOutputDescription kinesisStreamsOutputDescription; /** *

* Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is written. *

*/ private KinesisFirehoseOutputDescription kinesisFirehoseOutputDescription; /** *

* Describes the AWS Lambda function configured as the destination where output is written. *

*/ private LambdaOutputDescription lambdaOutputDescription; /** *

* Data format used for writing data to the destination. *

*/ private DestinationSchema destinationSchema; /** *

* A unique identifier for the output configuration. *

* * @param outputId * A unique identifier for the output configuration. */ public void setOutputId(String outputId) { this.outputId = outputId; } /** *

* A unique identifier for the output configuration. *

* * @return A unique identifier for the output configuration. */ public String getOutputId() { return this.outputId; } /** *

* A unique identifier for the output configuration. *

* * @param outputId * A unique identifier for the output configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public OutputDescription withOutputId(String outputId) { setOutputId(outputId); return this; } /** *

* Name of the in-application stream configured as output. *

* * @param name * Name of the in-application stream configured as output. */ public void setName(String name) { this.name = name; } /** *

* Name of the in-application stream configured as output. *

* * @return Name of the in-application stream configured as output. */ public String getName() { return this.name; } /** *

* Name of the in-application stream configured as output. *

* * @param name * Name of the in-application stream configured as output. * @return Returns a reference to this object so that method calls can be chained together. */ public OutputDescription withName(String name) { setName(name); return this; } /** *

* Describes Amazon Kinesis stream configured as the destination where output is written. *

* * @param kinesisStreamsOutputDescription * Describes Amazon Kinesis stream configured as the destination where output is written. */ public void setKinesisStreamsOutputDescription(KinesisStreamsOutputDescription kinesisStreamsOutputDescription) { this.kinesisStreamsOutputDescription = kinesisStreamsOutputDescription; } /** *

* Describes Amazon Kinesis stream configured as the destination where output is written. *

* * @return Describes Amazon Kinesis stream configured as the destination where output is written. */ public KinesisStreamsOutputDescription getKinesisStreamsOutputDescription() { return this.kinesisStreamsOutputDescription; } /** *

* Describes Amazon Kinesis stream configured as the destination where output is written. *

* * @param kinesisStreamsOutputDescription * Describes Amazon Kinesis stream configured as the destination where output is written. * @return Returns a reference to this object so that method calls can be chained together. */ public OutputDescription withKinesisStreamsOutputDescription(KinesisStreamsOutputDescription kinesisStreamsOutputDescription) { setKinesisStreamsOutputDescription(kinesisStreamsOutputDescription); return this; } /** *

* Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is written. *

* * @param kinesisFirehoseOutputDescription * Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is * written. */ public void setKinesisFirehoseOutputDescription(KinesisFirehoseOutputDescription kinesisFirehoseOutputDescription) { this.kinesisFirehoseOutputDescription = kinesisFirehoseOutputDescription; } /** *

* Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is written. *

* * @return Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is * written. */ public KinesisFirehoseOutputDescription getKinesisFirehoseOutputDescription() { return this.kinesisFirehoseOutputDescription; } /** *

* Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is written. *

* * @param kinesisFirehoseOutputDescription * Describes the Amazon Kinesis Firehose delivery stream configured as the destination where output is * written. * @return Returns a reference to this object so that method calls can be chained together. */ public OutputDescription withKinesisFirehoseOutputDescription(KinesisFirehoseOutputDescription kinesisFirehoseOutputDescription) { setKinesisFirehoseOutputDescription(kinesisFirehoseOutputDescription); return this; } /** *

* Describes the AWS Lambda function configured as the destination where output is written. *

* * @param lambdaOutputDescription * Describes the AWS Lambda function configured as the destination where output is written. */ public void setLambdaOutputDescription(LambdaOutputDescription lambdaOutputDescription) { this.lambdaOutputDescription = lambdaOutputDescription; } /** *

* Describes the AWS Lambda function configured as the destination where output is written. *

* * @return Describes the AWS Lambda function configured as the destination where output is written. */ public LambdaOutputDescription getLambdaOutputDescription() { return this.lambdaOutputDescription; } /** *

* Describes the AWS Lambda function configured as the destination where output is written. *

* * @param lambdaOutputDescription * Describes the AWS Lambda function configured as the destination where output is written. * @return Returns a reference to this object so that method calls can be chained together. */ public OutputDescription withLambdaOutputDescription(LambdaOutputDescription lambdaOutputDescription) { setLambdaOutputDescription(lambdaOutputDescription); return this; } /** *

* Data format used for writing data to the destination. *

* * @param destinationSchema * Data format used for writing data to the destination. */ public void setDestinationSchema(DestinationSchema destinationSchema) { this.destinationSchema = destinationSchema; } /** *

* Data format used for writing data to the destination. *

* * @return Data format used for writing data to the destination. */ public DestinationSchema getDestinationSchema() { return this.destinationSchema; } /** *

* Data format used for writing data to the destination. *

* * @param destinationSchema * Data format used for writing data to the destination. * @return Returns a reference to this object so that method calls can be chained together. */ public OutputDescription withDestinationSchema(DestinationSchema destinationSchema) { setDestinationSchema(destinationSchema); 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 (getOutputId() != null) sb.append("OutputId: ").append(getOutputId()).append(","); if (getName() != null) sb.append("Name: ").append(getName()).append(","); if (getKinesisStreamsOutputDescription() != null) sb.append("KinesisStreamsOutputDescription: ").append(getKinesisStreamsOutputDescription()).append(","); if (getKinesisFirehoseOutputDescription() != null) sb.append("KinesisFirehoseOutputDescription: ").append(getKinesisFirehoseOutputDescription()).append(","); if (getLambdaOutputDescription() != null) sb.append("LambdaOutputDescription: ").append(getLambdaOutputDescription()).append(","); if (getDestinationSchema() != null) sb.append("DestinationSchema: ").append(getDestinationSchema()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof OutputDescription == false) return false; OutputDescription other = (OutputDescription) obj; if (other.getOutputId() == null ^ this.getOutputId() == null) return false; if (other.getOutputId() != null && other.getOutputId().equals(this.getOutputId()) == 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.getKinesisStreamsOutputDescription() == null ^ this.getKinesisStreamsOutputDescription() == null) return false; if (other.getKinesisStreamsOutputDescription() != null && other.getKinesisStreamsOutputDescription().equals(this.getKinesisStreamsOutputDescription()) == false) return false; if (other.getKinesisFirehoseOutputDescription() == null ^ this.getKinesisFirehoseOutputDescription() == null) return false; if (other.getKinesisFirehoseOutputDescription() != null && other.getKinesisFirehoseOutputDescription().equals(this.getKinesisFirehoseOutputDescription()) == false) return false; if (other.getLambdaOutputDescription() == null ^ this.getLambdaOutputDescription() == null) return false; if (other.getLambdaOutputDescription() != null && other.getLambdaOutputDescription().equals(this.getLambdaOutputDescription()) == false) return false; if (other.getDestinationSchema() == null ^ this.getDestinationSchema() == null) return false; if (other.getDestinationSchema() != null && other.getDestinationSchema().equals(this.getDestinationSchema()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getOutputId() == null) ? 0 : getOutputId().hashCode()); hashCode = prime * hashCode + ((getName() == null) ? 0 : getName().hashCode()); hashCode = prime * hashCode + ((getKinesisStreamsOutputDescription() == null) ? 0 : getKinesisStreamsOutputDescription().hashCode()); hashCode = prime * hashCode + ((getKinesisFirehoseOutputDescription() == null) ? 0 : getKinesisFirehoseOutputDescription().hashCode()); hashCode = prime * hashCode + ((getLambdaOutputDescription() == null) ? 0 : getLambdaOutputDescription().hashCode()); hashCode = prime * hashCode + ((getDestinationSchema() == null) ? 0 : getDestinationSchema().hashCode()); return hashCode; } @Override public OutputDescription clone() { try { return (OutputDescription) 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.kinesisanalytics.model.transform.OutputDescriptionMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy