com.amazonaws.services.kinesisanalytics.model.OutputUpdate Maven / Gradle / Ivy
Show all versions of aws-java-sdk-kinesis Show documentation
/*
* 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.kinesisanalytics.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Describes updates to the output configuration identified by the OutputId
.
*
*
* @see AWS API
* Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class OutputUpdate implements Serializable, Cloneable, StructuredPojo {
/**
*
* Identifies the specific output configuration that you want to update.
*
*/
private String outputId;
/**
*
* If you want to specify a different in-application stream for this output configuration, use this field to specify
* the new in-application stream name.
*
*/
private String nameUpdate;
/**
*
* Describes an Amazon Kinesis stream as the destination for the output.
*
*/
private KinesisStreamsOutputUpdate kinesisStreamsOutputUpdate;
/**
*
* Describes an Amazon Kinesis Firehose delivery stream as the destination for the output.
*
*/
private KinesisFirehoseOutputUpdate kinesisFirehoseOutputUpdate;
/**
*
* Describes an AWS Lambda function as the destination for the output.
*
*/
private LambdaOutputUpdate lambdaOutputUpdate;
/**
*
* Describes the data format when records are written to the destination. For more information, see Configuring Application
* Output.
*
*/
private DestinationSchema destinationSchemaUpdate;
/**
*
* Identifies the specific output configuration that you want to update.
*
*
* @param outputId
* Identifies the specific output configuration that you want to update.
*/
public void setOutputId(String outputId) {
this.outputId = outputId;
}
/**
*
* Identifies the specific output configuration that you want to update.
*
*
* @return Identifies the specific output configuration that you want to update.
*/
public String getOutputId() {
return this.outputId;
}
/**
*
* Identifies the specific output configuration that you want to update.
*
*
* @param outputId
* Identifies the specific output configuration that you want to update.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OutputUpdate withOutputId(String outputId) {
setOutputId(outputId);
return this;
}
/**
*
* If you want to specify a different in-application stream for this output configuration, use this field to specify
* the new in-application stream name.
*
*
* @param nameUpdate
* If you want to specify a different in-application stream for this output configuration, use this field to
* specify the new in-application stream name.
*/
public void setNameUpdate(String nameUpdate) {
this.nameUpdate = nameUpdate;
}
/**
*
* If you want to specify a different in-application stream for this output configuration, use this field to specify
* the new in-application stream name.
*
*
* @return If you want to specify a different in-application stream for this output configuration, use this field to
* specify the new in-application stream name.
*/
public String getNameUpdate() {
return this.nameUpdate;
}
/**
*
* If you want to specify a different in-application stream for this output configuration, use this field to specify
* the new in-application stream name.
*
*
* @param nameUpdate
* If you want to specify a different in-application stream for this output configuration, use this field to
* specify the new in-application stream name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OutputUpdate withNameUpdate(String nameUpdate) {
setNameUpdate(nameUpdate);
return this;
}
/**
*
* Describes an Amazon Kinesis stream as the destination for the output.
*
*
* @param kinesisStreamsOutputUpdate
* Describes an Amazon Kinesis stream as the destination for the output.
*/
public void setKinesisStreamsOutputUpdate(KinesisStreamsOutputUpdate kinesisStreamsOutputUpdate) {
this.kinesisStreamsOutputUpdate = kinesisStreamsOutputUpdate;
}
/**
*
* Describes an Amazon Kinesis stream as the destination for the output.
*
*
* @return Describes an Amazon Kinesis stream as the destination for the output.
*/
public KinesisStreamsOutputUpdate getKinesisStreamsOutputUpdate() {
return this.kinesisStreamsOutputUpdate;
}
/**
*
* Describes an Amazon Kinesis stream as the destination for the output.
*
*
* @param kinesisStreamsOutputUpdate
* Describes an Amazon Kinesis stream as the destination for the output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OutputUpdate withKinesisStreamsOutputUpdate(KinesisStreamsOutputUpdate kinesisStreamsOutputUpdate) {
setKinesisStreamsOutputUpdate(kinesisStreamsOutputUpdate);
return this;
}
/**
*
* Describes an Amazon Kinesis Firehose delivery stream as the destination for the output.
*
*
* @param kinesisFirehoseOutputUpdate
* Describes an Amazon Kinesis Firehose delivery stream as the destination for the output.
*/
public void setKinesisFirehoseOutputUpdate(KinesisFirehoseOutputUpdate kinesisFirehoseOutputUpdate) {
this.kinesisFirehoseOutputUpdate = kinesisFirehoseOutputUpdate;
}
/**
*
* Describes an Amazon Kinesis Firehose delivery stream as the destination for the output.
*
*
* @return Describes an Amazon Kinesis Firehose delivery stream as the destination for the output.
*/
public KinesisFirehoseOutputUpdate getKinesisFirehoseOutputUpdate() {
return this.kinesisFirehoseOutputUpdate;
}
/**
*
* Describes an Amazon Kinesis Firehose delivery stream as the destination for the output.
*
*
* @param kinesisFirehoseOutputUpdate
* Describes an Amazon Kinesis Firehose delivery stream as the destination for the output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OutputUpdate withKinesisFirehoseOutputUpdate(KinesisFirehoseOutputUpdate kinesisFirehoseOutputUpdate) {
setKinesisFirehoseOutputUpdate(kinesisFirehoseOutputUpdate);
return this;
}
/**
*
* Describes an AWS Lambda function as the destination for the output.
*
*
* @param lambdaOutputUpdate
* Describes an AWS Lambda function as the destination for the output.
*/
public void setLambdaOutputUpdate(LambdaOutputUpdate lambdaOutputUpdate) {
this.lambdaOutputUpdate = lambdaOutputUpdate;
}
/**
*
* Describes an AWS Lambda function as the destination for the output.
*
*
* @return Describes an AWS Lambda function as the destination for the output.
*/
public LambdaOutputUpdate getLambdaOutputUpdate() {
return this.lambdaOutputUpdate;
}
/**
*
* Describes an AWS Lambda function as the destination for the output.
*
*
* @param lambdaOutputUpdate
* Describes an AWS Lambda function as the destination for the output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OutputUpdate withLambdaOutputUpdate(LambdaOutputUpdate lambdaOutputUpdate) {
setLambdaOutputUpdate(lambdaOutputUpdate);
return this;
}
/**
*
* Describes the data format when records are written to the destination. For more information, see Configuring Application
* Output.
*
*
* @param destinationSchemaUpdate
* Describes the data format when records are written to the destination. For more information, see Configuring
* Application Output.
*/
public void setDestinationSchemaUpdate(DestinationSchema destinationSchemaUpdate) {
this.destinationSchemaUpdate = destinationSchemaUpdate;
}
/**
*
* Describes the data format when records are written to the destination. For more information, see Configuring Application
* Output.
*
*
* @return Describes the data format when records are written to the destination. For more information, see Configuring
* Application Output.
*/
public DestinationSchema getDestinationSchemaUpdate() {
return this.destinationSchemaUpdate;
}
/**
*
* Describes the data format when records are written to the destination. For more information, see Configuring Application
* Output.
*
*
* @param destinationSchemaUpdate
* Describes the data format when records are written to the destination. For more information, see Configuring
* Application Output.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public OutputUpdate withDestinationSchemaUpdate(DestinationSchema destinationSchemaUpdate) {
setDestinationSchemaUpdate(destinationSchemaUpdate);
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 (getNameUpdate() != null)
sb.append("NameUpdate: ").append(getNameUpdate()).append(",");
if (getKinesisStreamsOutputUpdate() != null)
sb.append("KinesisStreamsOutputUpdate: ").append(getKinesisStreamsOutputUpdate()).append(",");
if (getKinesisFirehoseOutputUpdate() != null)
sb.append("KinesisFirehoseOutputUpdate: ").append(getKinesisFirehoseOutputUpdate()).append(",");
if (getLambdaOutputUpdate() != null)
sb.append("LambdaOutputUpdate: ").append(getLambdaOutputUpdate()).append(",");
if (getDestinationSchemaUpdate() != null)
sb.append("DestinationSchemaUpdate: ").append(getDestinationSchemaUpdate());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof OutputUpdate == false)
return false;
OutputUpdate other = (OutputUpdate) obj;
if (other.getOutputId() == null ^ this.getOutputId() == null)
return false;
if (other.getOutputId() != null && other.getOutputId().equals(this.getOutputId()) == false)
return false;
if (other.getNameUpdate() == null ^ this.getNameUpdate() == null)
return false;
if (other.getNameUpdate() != null && other.getNameUpdate().equals(this.getNameUpdate()) == false)
return false;
if (other.getKinesisStreamsOutputUpdate() == null ^ this.getKinesisStreamsOutputUpdate() == null)
return false;
if (other.getKinesisStreamsOutputUpdate() != null && other.getKinesisStreamsOutputUpdate().equals(this.getKinesisStreamsOutputUpdate()) == false)
return false;
if (other.getKinesisFirehoseOutputUpdate() == null ^ this.getKinesisFirehoseOutputUpdate() == null)
return false;
if (other.getKinesisFirehoseOutputUpdate() != null && other.getKinesisFirehoseOutputUpdate().equals(this.getKinesisFirehoseOutputUpdate()) == false)
return false;
if (other.getLambdaOutputUpdate() == null ^ this.getLambdaOutputUpdate() == null)
return false;
if (other.getLambdaOutputUpdate() != null && other.getLambdaOutputUpdate().equals(this.getLambdaOutputUpdate()) == false)
return false;
if (other.getDestinationSchemaUpdate() == null ^ this.getDestinationSchemaUpdate() == null)
return false;
if (other.getDestinationSchemaUpdate() != null && other.getDestinationSchemaUpdate().equals(this.getDestinationSchemaUpdate()) == 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 + ((getNameUpdate() == null) ? 0 : getNameUpdate().hashCode());
hashCode = prime * hashCode + ((getKinesisStreamsOutputUpdate() == null) ? 0 : getKinesisStreamsOutputUpdate().hashCode());
hashCode = prime * hashCode + ((getKinesisFirehoseOutputUpdate() == null) ? 0 : getKinesisFirehoseOutputUpdate().hashCode());
hashCode = prime * hashCode + ((getLambdaOutputUpdate() == null) ? 0 : getLambdaOutputUpdate().hashCode());
hashCode = prime * hashCode + ((getDestinationSchemaUpdate() == null) ? 0 : getDestinationSchemaUpdate().hashCode());
return hashCode;
}
@Override
public OutputUpdate clone() {
try {
return (OutputUpdate) 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.OutputUpdateMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}