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

com.amazonaws.services.kinesisanalytics.model.InputUpdate 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.778
Show newest version
/*
 * 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 a specific input configuration (identified by the InputId of an application). *

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

* Input ID of the application input to be updated. *

*/ private String inputId; /** *

* Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming source. *

*/ private String namePrefixUpdate; /** *

* Describes updates for an input processing configuration. *

*/ private InputProcessingConfigurationUpdate inputProcessingConfigurationUpdate; /** *

* If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon Resource * Name (ARN) and IAM role ARN. *

*/ private KinesisStreamsInputUpdate kinesisStreamsInputUpdate; /** *

* If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated stream * ARN and IAM role ARN. *

*/ private KinesisFirehoseInputUpdate kinesisFirehoseInputUpdate; /** *

* Describes the data format on the streaming source, and how record elements on the streaming source map to columns * of the in-application stream that is created. *

*/ private InputSchemaUpdate inputSchemaUpdate; /** *

* Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for the * specific streaming source). *

*/ private InputParallelismUpdate inputParallelismUpdate; /** *

* Input ID of the application input to be updated. *

* * @param inputId * Input ID of the application input to be updated. */ public void setInputId(String inputId) { this.inputId = inputId; } /** *

* Input ID of the application input to be updated. *

* * @return Input ID of the application input to be updated. */ public String getInputId() { return this.inputId; } /** *

* Input ID of the application input to be updated. *

* * @param inputId * Input ID of the application input to be updated. * @return Returns a reference to this object so that method calls can be chained together. */ public InputUpdate withInputId(String inputId) { setInputId(inputId); return this; } /** *

* Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming source. *

* * @param namePrefixUpdate * Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming * source. */ public void setNamePrefixUpdate(String namePrefixUpdate) { this.namePrefixUpdate = namePrefixUpdate; } /** *

* Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming source. *

* * @return Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming * source. */ public String getNamePrefixUpdate() { return this.namePrefixUpdate; } /** *

* Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming source. *

* * @param namePrefixUpdate * Name prefix for in-application streams that Amazon Kinesis Analytics creates for the specific streaming * source. * @return Returns a reference to this object so that method calls can be chained together. */ public InputUpdate withNamePrefixUpdate(String namePrefixUpdate) { setNamePrefixUpdate(namePrefixUpdate); return this; } /** *

* Describes updates for an input processing configuration. *

* * @param inputProcessingConfigurationUpdate * Describes updates for an input processing configuration. */ public void setInputProcessingConfigurationUpdate(InputProcessingConfigurationUpdate inputProcessingConfigurationUpdate) { this.inputProcessingConfigurationUpdate = inputProcessingConfigurationUpdate; } /** *

* Describes updates for an input processing configuration. *

* * @return Describes updates for an input processing configuration. */ public InputProcessingConfigurationUpdate getInputProcessingConfigurationUpdate() { return this.inputProcessingConfigurationUpdate; } /** *

* Describes updates for an input processing configuration. *

* * @param inputProcessingConfigurationUpdate * Describes updates for an input processing configuration. * @return Returns a reference to this object so that method calls can be chained together. */ public InputUpdate withInputProcessingConfigurationUpdate(InputProcessingConfigurationUpdate inputProcessingConfigurationUpdate) { setInputProcessingConfigurationUpdate(inputProcessingConfigurationUpdate); return this; } /** *

* If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon Resource * Name (ARN) and IAM role ARN. *

* * @param kinesisStreamsInputUpdate * If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon * Resource Name (ARN) and IAM role ARN. */ public void setKinesisStreamsInputUpdate(KinesisStreamsInputUpdate kinesisStreamsInputUpdate) { this.kinesisStreamsInputUpdate = kinesisStreamsInputUpdate; } /** *

* If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon Resource * Name (ARN) and IAM role ARN. *

* * @return If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon * Resource Name (ARN) and IAM role ARN. */ public KinesisStreamsInputUpdate getKinesisStreamsInputUpdate() { return this.kinesisStreamsInputUpdate; } /** *

* If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon Resource * Name (ARN) and IAM role ARN. *

* * @param kinesisStreamsInputUpdate * If an Amazon Kinesis stream is the streaming source to be updated, provides an updated stream Amazon * Resource Name (ARN) and IAM role ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public InputUpdate withKinesisStreamsInputUpdate(KinesisStreamsInputUpdate kinesisStreamsInputUpdate) { setKinesisStreamsInputUpdate(kinesisStreamsInputUpdate); return this; } /** *

* If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated stream * ARN and IAM role ARN. *

* * @param kinesisFirehoseInputUpdate * If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated * stream ARN and IAM role ARN. */ public void setKinesisFirehoseInputUpdate(KinesisFirehoseInputUpdate kinesisFirehoseInputUpdate) { this.kinesisFirehoseInputUpdate = kinesisFirehoseInputUpdate; } /** *

* If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated stream * ARN and IAM role ARN. *

* * @return If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated * stream ARN and IAM role ARN. */ public KinesisFirehoseInputUpdate getKinesisFirehoseInputUpdate() { return this.kinesisFirehoseInputUpdate; } /** *

* If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated stream * ARN and IAM role ARN. *

* * @param kinesisFirehoseInputUpdate * If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated * stream ARN and IAM role ARN. * @return Returns a reference to this object so that method calls can be chained together. */ public InputUpdate withKinesisFirehoseInputUpdate(KinesisFirehoseInputUpdate kinesisFirehoseInputUpdate) { setKinesisFirehoseInputUpdate(kinesisFirehoseInputUpdate); return this; } /** *

* Describes the data format on the streaming source, and how record elements on the streaming source map to columns * of the in-application stream that is created. *

* * @param inputSchemaUpdate * Describes the data format on the streaming source, and how record elements on the streaming source map to * columns of the in-application stream that is created. */ public void setInputSchemaUpdate(InputSchemaUpdate inputSchemaUpdate) { this.inputSchemaUpdate = inputSchemaUpdate; } /** *

* Describes the data format on the streaming source, and how record elements on the streaming source map to columns * of the in-application stream that is created. *

* * @return Describes the data format on the streaming source, and how record elements on the streaming source map to * columns of the in-application stream that is created. */ public InputSchemaUpdate getInputSchemaUpdate() { return this.inputSchemaUpdate; } /** *

* Describes the data format on the streaming source, and how record elements on the streaming source map to columns * of the in-application stream that is created. *

* * @param inputSchemaUpdate * Describes the data format on the streaming source, and how record elements on the streaming source map to * columns of the in-application stream that is created. * @return Returns a reference to this object so that method calls can be chained together. */ public InputUpdate withInputSchemaUpdate(InputSchemaUpdate inputSchemaUpdate) { setInputSchemaUpdate(inputSchemaUpdate); return this; } /** *

* Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for the * specific streaming source). *

* * @param inputParallelismUpdate * Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for * the specific streaming source). */ public void setInputParallelismUpdate(InputParallelismUpdate inputParallelismUpdate) { this.inputParallelismUpdate = inputParallelismUpdate; } /** *

* Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for the * specific streaming source). *

* * @return Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for * the specific streaming source). */ public InputParallelismUpdate getInputParallelismUpdate() { return this.inputParallelismUpdate; } /** *

* Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for the * specific streaming source). *

* * @param inputParallelismUpdate * Describes the parallelism updates (the number in-application streams Amazon Kinesis Analytics creates for * the specific streaming source). * @return Returns a reference to this object so that method calls can be chained together. */ public InputUpdate withInputParallelismUpdate(InputParallelismUpdate inputParallelismUpdate) { setInputParallelismUpdate(inputParallelismUpdate); 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 (getInputId() != null) sb.append("InputId: ").append(getInputId()).append(","); if (getNamePrefixUpdate() != null) sb.append("NamePrefixUpdate: ").append(getNamePrefixUpdate()).append(","); if (getInputProcessingConfigurationUpdate() != null) sb.append("InputProcessingConfigurationUpdate: ").append(getInputProcessingConfigurationUpdate()).append(","); if (getKinesisStreamsInputUpdate() != null) sb.append("KinesisStreamsInputUpdate: ").append(getKinesisStreamsInputUpdate()).append(","); if (getKinesisFirehoseInputUpdate() != null) sb.append("KinesisFirehoseInputUpdate: ").append(getKinesisFirehoseInputUpdate()).append(","); if (getInputSchemaUpdate() != null) sb.append("InputSchemaUpdate: ").append(getInputSchemaUpdate()).append(","); if (getInputParallelismUpdate() != null) sb.append("InputParallelismUpdate: ").append(getInputParallelismUpdate()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof InputUpdate == false) return false; InputUpdate other = (InputUpdate) obj; if (other.getInputId() == null ^ this.getInputId() == null) return false; if (other.getInputId() != null && other.getInputId().equals(this.getInputId()) == false) return false; if (other.getNamePrefixUpdate() == null ^ this.getNamePrefixUpdate() == null) return false; if (other.getNamePrefixUpdate() != null && other.getNamePrefixUpdate().equals(this.getNamePrefixUpdate()) == false) return false; if (other.getInputProcessingConfigurationUpdate() == null ^ this.getInputProcessingConfigurationUpdate() == null) return false; if (other.getInputProcessingConfigurationUpdate() != null && other.getInputProcessingConfigurationUpdate().equals(this.getInputProcessingConfigurationUpdate()) == false) return false; if (other.getKinesisStreamsInputUpdate() == null ^ this.getKinesisStreamsInputUpdate() == null) return false; if (other.getKinesisStreamsInputUpdate() != null && other.getKinesisStreamsInputUpdate().equals(this.getKinesisStreamsInputUpdate()) == false) return false; if (other.getKinesisFirehoseInputUpdate() == null ^ this.getKinesisFirehoseInputUpdate() == null) return false; if (other.getKinesisFirehoseInputUpdate() != null && other.getKinesisFirehoseInputUpdate().equals(this.getKinesisFirehoseInputUpdate()) == false) return false; if (other.getInputSchemaUpdate() == null ^ this.getInputSchemaUpdate() == null) return false; if (other.getInputSchemaUpdate() != null && other.getInputSchemaUpdate().equals(this.getInputSchemaUpdate()) == false) return false; if (other.getInputParallelismUpdate() == null ^ this.getInputParallelismUpdate() == null) return false; if (other.getInputParallelismUpdate() != null && other.getInputParallelismUpdate().equals(this.getInputParallelismUpdate()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getInputId() == null) ? 0 : getInputId().hashCode()); hashCode = prime * hashCode + ((getNamePrefixUpdate() == null) ? 0 : getNamePrefixUpdate().hashCode()); hashCode = prime * hashCode + ((getInputProcessingConfigurationUpdate() == null) ? 0 : getInputProcessingConfigurationUpdate().hashCode()); hashCode = prime * hashCode + ((getKinesisStreamsInputUpdate() == null) ? 0 : getKinesisStreamsInputUpdate().hashCode()); hashCode = prime * hashCode + ((getKinesisFirehoseInputUpdate() == null) ? 0 : getKinesisFirehoseInputUpdate().hashCode()); hashCode = prime * hashCode + ((getInputSchemaUpdate() == null) ? 0 : getInputSchemaUpdate().hashCode()); hashCode = prime * hashCode + ((getInputParallelismUpdate() == null) ? 0 : getInputParallelismUpdate().hashCode()); return hashCode; } @Override public InputUpdate clone() { try { return (InputUpdate) 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.InputUpdateMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy