com.amazonaws.services.kinesisanalyticsv2.model.ApplicationConfigurationDescription Maven / Gradle / Ivy
Show all versions of aws-java-sdk-kinesisanalyticsv2 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.kinesisanalyticsv2.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* Describes details about the application code and starting parameters for a Managed Service for Apache Flink
* application.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ApplicationConfigurationDescription implements Serializable, Cloneable, StructuredPojo {
/**
*
* The details about inputs, outputs, and reference data sources for a SQL-based Kinesis Data Analytics application.
*
*/
private SqlApplicationConfigurationDescription sqlApplicationConfigurationDescription;
/**
*
* The details about the application code for a Managed Service for Apache Flink application.
*
*/
private ApplicationCodeConfigurationDescription applicationCodeConfigurationDescription;
/**
*
* The details about the starting properties for a Managed Service for Apache Flink application.
*
*/
private RunConfigurationDescription runConfigurationDescription;
/**
*
* The details about a Managed Service for Apache Flink application.
*
*/
private FlinkApplicationConfigurationDescription flinkApplicationConfigurationDescription;
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*/
private EnvironmentPropertyDescriptions environmentPropertyDescriptions;
/**
*
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*
*/
private ApplicationSnapshotConfigurationDescription applicationSnapshotConfigurationDescription;
private ApplicationSystemRollbackConfigurationDescription applicationSystemRollbackConfigurationDescription;
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*/
private java.util.List vpcConfigurationDescriptions;
/**
*
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*
*/
private ZeppelinApplicationConfigurationDescription zeppelinApplicationConfigurationDescription;
/**
*
* The details about inputs, outputs, and reference data sources for a SQL-based Kinesis Data Analytics application.
*
*
* @param sqlApplicationConfigurationDescription
* The details about inputs, outputs, and reference data sources for a SQL-based Kinesis Data Analytics
* application.
*/
public void setSqlApplicationConfigurationDescription(SqlApplicationConfigurationDescription sqlApplicationConfigurationDescription) {
this.sqlApplicationConfigurationDescription = sqlApplicationConfigurationDescription;
}
/**
*
* The details about inputs, outputs, and reference data sources for a SQL-based Kinesis Data Analytics application.
*
*
* @return The details about inputs, outputs, and reference data sources for a SQL-based Kinesis Data Analytics
* application.
*/
public SqlApplicationConfigurationDescription getSqlApplicationConfigurationDescription() {
return this.sqlApplicationConfigurationDescription;
}
/**
*
* The details about inputs, outputs, and reference data sources for a SQL-based Kinesis Data Analytics application.
*
*
* @param sqlApplicationConfigurationDescription
* The details about inputs, outputs, and reference data sources for a SQL-based Kinesis Data Analytics
* application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withSqlApplicationConfigurationDescription(
SqlApplicationConfigurationDescription sqlApplicationConfigurationDescription) {
setSqlApplicationConfigurationDescription(sqlApplicationConfigurationDescription);
return this;
}
/**
*
* The details about the application code for a Managed Service for Apache Flink application.
*
*
* @param applicationCodeConfigurationDescription
* The details about the application code for a Managed Service for Apache Flink application.
*/
public void setApplicationCodeConfigurationDescription(ApplicationCodeConfigurationDescription applicationCodeConfigurationDescription) {
this.applicationCodeConfigurationDescription = applicationCodeConfigurationDescription;
}
/**
*
* The details about the application code for a Managed Service for Apache Flink application.
*
*
* @return The details about the application code for a Managed Service for Apache Flink application.
*/
public ApplicationCodeConfigurationDescription getApplicationCodeConfigurationDescription() {
return this.applicationCodeConfigurationDescription;
}
/**
*
* The details about the application code for a Managed Service for Apache Flink application.
*
*
* @param applicationCodeConfigurationDescription
* The details about the application code for a Managed Service for Apache Flink application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withApplicationCodeConfigurationDescription(
ApplicationCodeConfigurationDescription applicationCodeConfigurationDescription) {
setApplicationCodeConfigurationDescription(applicationCodeConfigurationDescription);
return this;
}
/**
*
* The details about the starting properties for a Managed Service for Apache Flink application.
*
*
* @param runConfigurationDescription
* The details about the starting properties for a Managed Service for Apache Flink application.
*/
public void setRunConfigurationDescription(RunConfigurationDescription runConfigurationDescription) {
this.runConfigurationDescription = runConfigurationDescription;
}
/**
*
* The details about the starting properties for a Managed Service for Apache Flink application.
*
*
* @return The details about the starting properties for a Managed Service for Apache Flink application.
*/
public RunConfigurationDescription getRunConfigurationDescription() {
return this.runConfigurationDescription;
}
/**
*
* The details about the starting properties for a Managed Service for Apache Flink application.
*
*
* @param runConfigurationDescription
* The details about the starting properties for a Managed Service for Apache Flink application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withRunConfigurationDescription(RunConfigurationDescription runConfigurationDescription) {
setRunConfigurationDescription(runConfigurationDescription);
return this;
}
/**
*
* The details about a Managed Service for Apache Flink application.
*
*
* @param flinkApplicationConfigurationDescription
* The details about a Managed Service for Apache Flink application.
*/
public void setFlinkApplicationConfigurationDescription(FlinkApplicationConfigurationDescription flinkApplicationConfigurationDescription) {
this.flinkApplicationConfigurationDescription = flinkApplicationConfigurationDescription;
}
/**
*
* The details about a Managed Service for Apache Flink application.
*
*
* @return The details about a Managed Service for Apache Flink application.
*/
public FlinkApplicationConfigurationDescription getFlinkApplicationConfigurationDescription() {
return this.flinkApplicationConfigurationDescription;
}
/**
*
* The details about a Managed Service for Apache Flink application.
*
*
* @param flinkApplicationConfigurationDescription
* The details about a Managed Service for Apache Flink application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withFlinkApplicationConfigurationDescription(
FlinkApplicationConfigurationDescription flinkApplicationConfigurationDescription) {
setFlinkApplicationConfigurationDescription(flinkApplicationConfigurationDescription);
return this;
}
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*
* @param environmentPropertyDescriptions
* Describes execution properties for a Managed Service for Apache Flink application.
*/
public void setEnvironmentPropertyDescriptions(EnvironmentPropertyDescriptions environmentPropertyDescriptions) {
this.environmentPropertyDescriptions = environmentPropertyDescriptions;
}
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*
* @return Describes execution properties for a Managed Service for Apache Flink application.
*/
public EnvironmentPropertyDescriptions getEnvironmentPropertyDescriptions() {
return this.environmentPropertyDescriptions;
}
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*
* @param environmentPropertyDescriptions
* Describes execution properties for a Managed Service for Apache Flink application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withEnvironmentPropertyDescriptions(EnvironmentPropertyDescriptions environmentPropertyDescriptions) {
setEnvironmentPropertyDescriptions(environmentPropertyDescriptions);
return this;
}
/**
*
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*
*
* @param applicationSnapshotConfigurationDescription
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*/
public void setApplicationSnapshotConfigurationDescription(ApplicationSnapshotConfigurationDescription applicationSnapshotConfigurationDescription) {
this.applicationSnapshotConfigurationDescription = applicationSnapshotConfigurationDescription;
}
/**
*
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*
*
* @return Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*/
public ApplicationSnapshotConfigurationDescription getApplicationSnapshotConfigurationDescription() {
return this.applicationSnapshotConfigurationDescription;
}
/**
*
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*
*
* @param applicationSnapshotConfigurationDescription
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withApplicationSnapshotConfigurationDescription(
ApplicationSnapshotConfigurationDescription applicationSnapshotConfigurationDescription) {
setApplicationSnapshotConfigurationDescription(applicationSnapshotConfigurationDescription);
return this;
}
/**
* @param applicationSystemRollbackConfigurationDescription
*/
public void setApplicationSystemRollbackConfigurationDescription(
ApplicationSystemRollbackConfigurationDescription applicationSystemRollbackConfigurationDescription) {
this.applicationSystemRollbackConfigurationDescription = applicationSystemRollbackConfigurationDescription;
}
/**
* @return
*/
public ApplicationSystemRollbackConfigurationDescription getApplicationSystemRollbackConfigurationDescription() {
return this.applicationSystemRollbackConfigurationDescription;
}
/**
* @param applicationSystemRollbackConfigurationDescription
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withApplicationSystemRollbackConfigurationDescription(
ApplicationSystemRollbackConfigurationDescription applicationSystemRollbackConfigurationDescription) {
setApplicationSystemRollbackConfigurationDescription(applicationSystemRollbackConfigurationDescription);
return this;
}
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*
* @return The array of descriptions of VPC configurations available to the application.
*/
public java.util.List getVpcConfigurationDescriptions() {
return vpcConfigurationDescriptions;
}
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*
* @param vpcConfigurationDescriptions
* The array of descriptions of VPC configurations available to the application.
*/
public void setVpcConfigurationDescriptions(java.util.Collection vpcConfigurationDescriptions) {
if (vpcConfigurationDescriptions == null) {
this.vpcConfigurationDescriptions = null;
return;
}
this.vpcConfigurationDescriptions = new java.util.ArrayList(vpcConfigurationDescriptions);
}
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setVpcConfigurationDescriptions(java.util.Collection)} or
* {@link #withVpcConfigurationDescriptions(java.util.Collection)} if you want to override the existing values.
*
*
* @param vpcConfigurationDescriptions
* The array of descriptions of VPC configurations available to the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withVpcConfigurationDescriptions(VpcConfigurationDescription... vpcConfigurationDescriptions) {
if (this.vpcConfigurationDescriptions == null) {
setVpcConfigurationDescriptions(new java.util.ArrayList(vpcConfigurationDescriptions.length));
}
for (VpcConfigurationDescription ele : vpcConfigurationDescriptions) {
this.vpcConfigurationDescriptions.add(ele);
}
return this;
}
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*
* @param vpcConfigurationDescriptions
* The array of descriptions of VPC configurations available to the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withVpcConfigurationDescriptions(java.util.Collection vpcConfigurationDescriptions) {
setVpcConfigurationDescriptions(vpcConfigurationDescriptions);
return this;
}
/**
*
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*
*
* @param zeppelinApplicationConfigurationDescription
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*/
public void setZeppelinApplicationConfigurationDescription(ZeppelinApplicationConfigurationDescription zeppelinApplicationConfigurationDescription) {
this.zeppelinApplicationConfigurationDescription = zeppelinApplicationConfigurationDescription;
}
/**
*
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*
*
* @return The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*/
public ZeppelinApplicationConfigurationDescription getZeppelinApplicationConfigurationDescription() {
return this.zeppelinApplicationConfigurationDescription;
}
/**
*
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*
*
* @param zeppelinApplicationConfigurationDescription
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfigurationDescription withZeppelinApplicationConfigurationDescription(
ZeppelinApplicationConfigurationDescription zeppelinApplicationConfigurationDescription) {
setZeppelinApplicationConfigurationDescription(zeppelinApplicationConfigurationDescription);
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 (getSqlApplicationConfigurationDescription() != null)
sb.append("SqlApplicationConfigurationDescription: ").append(getSqlApplicationConfigurationDescription()).append(",");
if (getApplicationCodeConfigurationDescription() != null)
sb.append("ApplicationCodeConfigurationDescription: ").append(getApplicationCodeConfigurationDescription()).append(",");
if (getRunConfigurationDescription() != null)
sb.append("RunConfigurationDescription: ").append(getRunConfigurationDescription()).append(",");
if (getFlinkApplicationConfigurationDescription() != null)
sb.append("FlinkApplicationConfigurationDescription: ").append(getFlinkApplicationConfigurationDescription()).append(",");
if (getEnvironmentPropertyDescriptions() != null)
sb.append("EnvironmentPropertyDescriptions: ").append(getEnvironmentPropertyDescriptions()).append(",");
if (getApplicationSnapshotConfigurationDescription() != null)
sb.append("ApplicationSnapshotConfigurationDescription: ").append(getApplicationSnapshotConfigurationDescription()).append(",");
if (getApplicationSystemRollbackConfigurationDescription() != null)
sb.append("ApplicationSystemRollbackConfigurationDescription: ").append(getApplicationSystemRollbackConfigurationDescription()).append(",");
if (getVpcConfigurationDescriptions() != null)
sb.append("VpcConfigurationDescriptions: ").append(getVpcConfigurationDescriptions()).append(",");
if (getZeppelinApplicationConfigurationDescription() != null)
sb.append("ZeppelinApplicationConfigurationDescription: ").append(getZeppelinApplicationConfigurationDescription());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ApplicationConfigurationDescription == false)
return false;
ApplicationConfigurationDescription other = (ApplicationConfigurationDescription) obj;
if (other.getSqlApplicationConfigurationDescription() == null ^ this.getSqlApplicationConfigurationDescription() == null)
return false;
if (other.getSqlApplicationConfigurationDescription() != null
&& other.getSqlApplicationConfigurationDescription().equals(this.getSqlApplicationConfigurationDescription()) == false)
return false;
if (other.getApplicationCodeConfigurationDescription() == null ^ this.getApplicationCodeConfigurationDescription() == null)
return false;
if (other.getApplicationCodeConfigurationDescription() != null
&& other.getApplicationCodeConfigurationDescription().equals(this.getApplicationCodeConfigurationDescription()) == false)
return false;
if (other.getRunConfigurationDescription() == null ^ this.getRunConfigurationDescription() == null)
return false;
if (other.getRunConfigurationDescription() != null && other.getRunConfigurationDescription().equals(this.getRunConfigurationDescription()) == false)
return false;
if (other.getFlinkApplicationConfigurationDescription() == null ^ this.getFlinkApplicationConfigurationDescription() == null)
return false;
if (other.getFlinkApplicationConfigurationDescription() != null
&& other.getFlinkApplicationConfigurationDescription().equals(this.getFlinkApplicationConfigurationDescription()) == false)
return false;
if (other.getEnvironmentPropertyDescriptions() == null ^ this.getEnvironmentPropertyDescriptions() == null)
return false;
if (other.getEnvironmentPropertyDescriptions() != null
&& other.getEnvironmentPropertyDescriptions().equals(this.getEnvironmentPropertyDescriptions()) == false)
return false;
if (other.getApplicationSnapshotConfigurationDescription() == null ^ this.getApplicationSnapshotConfigurationDescription() == null)
return false;
if (other.getApplicationSnapshotConfigurationDescription() != null
&& other.getApplicationSnapshotConfigurationDescription().equals(this.getApplicationSnapshotConfigurationDescription()) == false)
return false;
if (other.getApplicationSystemRollbackConfigurationDescription() == null ^ this.getApplicationSystemRollbackConfigurationDescription() == null)
return false;
if (other.getApplicationSystemRollbackConfigurationDescription() != null
&& other.getApplicationSystemRollbackConfigurationDescription().equals(this.getApplicationSystemRollbackConfigurationDescription()) == false)
return false;
if (other.getVpcConfigurationDescriptions() == null ^ this.getVpcConfigurationDescriptions() == null)
return false;
if (other.getVpcConfigurationDescriptions() != null && other.getVpcConfigurationDescriptions().equals(this.getVpcConfigurationDescriptions()) == false)
return false;
if (other.getZeppelinApplicationConfigurationDescription() == null ^ this.getZeppelinApplicationConfigurationDescription() == null)
return false;
if (other.getZeppelinApplicationConfigurationDescription() != null
&& other.getZeppelinApplicationConfigurationDescription().equals(this.getZeppelinApplicationConfigurationDescription()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSqlApplicationConfigurationDescription() == null) ? 0 : getSqlApplicationConfigurationDescription().hashCode());
hashCode = prime * hashCode + ((getApplicationCodeConfigurationDescription() == null) ? 0 : getApplicationCodeConfigurationDescription().hashCode());
hashCode = prime * hashCode + ((getRunConfigurationDescription() == null) ? 0 : getRunConfigurationDescription().hashCode());
hashCode = prime * hashCode + ((getFlinkApplicationConfigurationDescription() == null) ? 0 : getFlinkApplicationConfigurationDescription().hashCode());
hashCode = prime * hashCode + ((getEnvironmentPropertyDescriptions() == null) ? 0 : getEnvironmentPropertyDescriptions().hashCode());
hashCode = prime * hashCode
+ ((getApplicationSnapshotConfigurationDescription() == null) ? 0 : getApplicationSnapshotConfigurationDescription().hashCode());
hashCode = prime * hashCode
+ ((getApplicationSystemRollbackConfigurationDescription() == null) ? 0 : getApplicationSystemRollbackConfigurationDescription().hashCode());
hashCode = prime * hashCode + ((getVpcConfigurationDescriptions() == null) ? 0 : getVpcConfigurationDescriptions().hashCode());
hashCode = prime * hashCode
+ ((getZeppelinApplicationConfigurationDescription() == null) ? 0 : getZeppelinApplicationConfigurationDescription().hashCode());
return hashCode;
}
@Override
public ApplicationConfigurationDescription clone() {
try {
return (ApplicationConfigurationDescription) 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.ApplicationConfigurationDescriptionMarshaller.getInstance()
.marshall(this, protocolMarshaller);
}
}