com.amazonaws.services.kinesisanalytics.model.InputUpdate Maven / Gradle / Ivy
Show all versions of aws-java-sdk-kinesis Show documentation
/*
* 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 updates to a specific input configuration (identified by the InputId
of an application).
*
*/
public class InputUpdate implements Serializable, Cloneable {
/**
*
* Input ID of the application input to be updated.
*
*/
private String inputId;
/**
*
* Name prefix for in-application stream(s) that Kinesis Analytics creates for the specific streaming source.
*
*/
private String namePrefixUpdate;
/**
*
* If a Amazon Kinesis stream is the streaming source to be updated, provides an updated stream 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
* Amazon Resource Name (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 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 stream(s) that Kinesis Analytics creates for the specific streaming source.
*
*
* @param namePrefixUpdate
* Name prefix for in-application stream(s) that Kinesis Analytics creates for the specific streaming source.
*/
public void setNamePrefixUpdate(String namePrefixUpdate) {
this.namePrefixUpdate = namePrefixUpdate;
}
/**
*
* Name prefix for in-application stream(s) that Kinesis Analytics creates for the specific streaming source.
*
*
* @return Name prefix for in-application stream(s) that Kinesis Analytics creates for the specific streaming
* source.
*/
public String getNamePrefixUpdate() {
return this.namePrefixUpdate;
}
/**
*
* Name prefix for in-application stream(s) that Kinesis Analytics creates for the specific streaming source.
*
*
* @param namePrefixUpdate
* Name prefix for in-application stream(s) that 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;
}
/**
*
* If a Amazon Kinesis stream is the streaming source to be updated, provides an updated stream ARN and IAM role
* ARN.
*
*
* @param kinesisStreamsInputUpdate
* If a Amazon Kinesis stream is the streaming source to be updated, provides an updated stream ARN and IAM
* role ARN.
*/
public void setKinesisStreamsInputUpdate(KinesisStreamsInputUpdate kinesisStreamsInputUpdate) {
this.kinesisStreamsInputUpdate = kinesisStreamsInputUpdate;
}
/**
*
* If a Amazon Kinesis stream is the streaming source to be updated, provides an updated stream ARN and IAM role
* ARN.
*
*
* @return If a Amazon Kinesis stream is the streaming source to be updated, provides an updated stream ARN and IAM
* role ARN.
*/
public KinesisStreamsInputUpdate getKinesisStreamsInputUpdate() {
return this.kinesisStreamsInputUpdate;
}
/**
*
* If a Amazon Kinesis stream is the streaming source to be updated, provides an updated stream ARN and IAM role
* ARN.
*
*
* @param kinesisStreamsInputUpdate
* If a Amazon Kinesis 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 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
* Amazon Resource Name (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 Amazon Resource Name (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
* Amazon Resource Name (ARN) and IAM role ARN.
*
*
* @return If an Amazon Kinesis Firehose delivery stream is the streaming source to be updated, provides an updated
* stream Amazon Resource Name (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
* Amazon Resource Name (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 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 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 Kinesis Analytics creates for the specific
* streaming source).
*
*
* @param inputParallelismUpdate
* Describes the parallelism updates (the number in-application streams 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 Kinesis Analytics creates for the specific
* streaming source).
*
*
* @return Describes the parallelism updates (the number in-application streams Kinesis Analytics creates for the
* specific streaming source).
*/
public InputParallelismUpdate getInputParallelismUpdate() {
return this.inputParallelismUpdate;
}
/**
*
* Describes the parallelism updates (the number in-application streams Kinesis Analytics creates for the specific
* streaming source).
*
*
* @param inputParallelismUpdate
* Describes the parallelism updates (the number in-application streams 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; 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 (getInputId() != null)
sb.append("InputId: ").append(getInputId()).append(",");
if (getNamePrefixUpdate() != null)
sb.append("NamePrefixUpdate: ").append(getNamePrefixUpdate()).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.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 + ((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);
}
}
}