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

com.amazonaws.services.kinesisanalyticsv2.model.SqlRunConfiguration Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Amazon Kinesis Analytics module holds the client classes that are used for communicating with Amazon Kinesis Analytics Service

There is a newer version: 1.12.780
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.kinesisanalyticsv2.model;

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

/**
 * 

* Describes the starting parameters for a SQL-based Kinesis Data Analytics application. *

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

* The input source ID. You can get this ID by calling the DescribeApplication operation. *

*/ private String inputId; /** *

* The point at which you want the application to start processing records from the streaming source. *

*/ private InputStartingPositionConfiguration inputStartingPositionConfiguration; /** *

* The input source ID. You can get this ID by calling the DescribeApplication operation. *

* * @param inputId * The input source ID. You can get this ID by calling the DescribeApplication operation. */ public void setInputId(String inputId) { this.inputId = inputId; } /** *

* The input source ID. You can get this ID by calling the DescribeApplication operation. *

* * @return The input source ID. You can get this ID by calling the DescribeApplication operation. */ public String getInputId() { return this.inputId; } /** *

* The input source ID. You can get this ID by calling the DescribeApplication operation. *

* * @param inputId * The input source ID. You can get this ID by calling the DescribeApplication operation. * @return Returns a reference to this object so that method calls can be chained together. */ public SqlRunConfiguration withInputId(String inputId) { setInputId(inputId); return this; } /** *

* The point at which you want the application to start processing records from the streaming source. *

* * @param inputStartingPositionConfiguration * The point at which you want the application to start processing records from the streaming source. */ public void setInputStartingPositionConfiguration(InputStartingPositionConfiguration inputStartingPositionConfiguration) { this.inputStartingPositionConfiguration = inputStartingPositionConfiguration; } /** *

* The point at which you want the application to start processing records from the streaming source. *

* * @return The point at which you want the application to start processing records from the streaming source. */ public InputStartingPositionConfiguration getInputStartingPositionConfiguration() { return this.inputStartingPositionConfiguration; } /** *

* The point at which you want the application to start processing records from the streaming source. *

* * @param inputStartingPositionConfiguration * The point at which you want the application to start processing records from the streaming source. * @return Returns a reference to this object so that method calls can be chained together. */ public SqlRunConfiguration withInputStartingPositionConfiguration(InputStartingPositionConfiguration inputStartingPositionConfiguration) { setInputStartingPositionConfiguration(inputStartingPositionConfiguration); 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 (getInputStartingPositionConfiguration() != null) sb.append("InputStartingPositionConfiguration: ").append(getInputStartingPositionConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof SqlRunConfiguration == false) return false; SqlRunConfiguration other = (SqlRunConfiguration) obj; if (other.getInputId() == null ^ this.getInputId() == null) return false; if (other.getInputId() != null && other.getInputId().equals(this.getInputId()) == false) return false; if (other.getInputStartingPositionConfiguration() == null ^ this.getInputStartingPositionConfiguration() == null) return false; if (other.getInputStartingPositionConfiguration() != null && other.getInputStartingPositionConfiguration().equals(this.getInputStartingPositionConfiguration()) == 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 + ((getInputStartingPositionConfiguration() == null) ? 0 : getInputStartingPositionConfiguration().hashCode()); return hashCode; } @Override public SqlRunConfiguration clone() { try { return (SqlRunConfiguration) 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.kinesisanalyticsv2.model.transform.SqlRunConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy