
com.amazonaws.services.kinesisanalyticsv2.model.ApplicationConfiguration Maven / Gradle / Ivy
/*
* 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;
/**
*
* Specifies the creation parameters for a Managed Service for Apache Flink application.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ApplicationConfiguration implements Serializable, Cloneable, StructuredPojo {
/**
*
* The creation and update parameters for a SQL-based Kinesis Data Analytics application.
*
*/
private SqlApplicationConfiguration sqlApplicationConfiguration;
/**
*
* The creation and update parameters for a Managed Service for Apache Flink application.
*
*/
private FlinkApplicationConfiguration flinkApplicationConfiguration;
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*/
private EnvironmentProperties environmentProperties;
/**
*
* The code location and type parameters for a Managed Service for Apache Flink application.
*
*/
private ApplicationCodeConfiguration applicationCodeConfiguration;
/**
*
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*
*/
private ApplicationSnapshotConfiguration applicationSnapshotConfiguration;
private ApplicationSystemRollbackConfiguration applicationSystemRollbackConfiguration;
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*/
private java.util.List vpcConfigurations;
/**
*
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*
*/
private ZeppelinApplicationConfiguration zeppelinApplicationConfiguration;
/**
*
* The creation and update parameters for a SQL-based Kinesis Data Analytics application.
*
*
* @param sqlApplicationConfiguration
* The creation and update parameters for a SQL-based Kinesis Data Analytics application.
*/
public void setSqlApplicationConfiguration(SqlApplicationConfiguration sqlApplicationConfiguration) {
this.sqlApplicationConfiguration = sqlApplicationConfiguration;
}
/**
*
* The creation and update parameters for a SQL-based Kinesis Data Analytics application.
*
*
* @return The creation and update parameters for a SQL-based Kinesis Data Analytics application.
*/
public SqlApplicationConfiguration getSqlApplicationConfiguration() {
return this.sqlApplicationConfiguration;
}
/**
*
* The creation and update parameters for a SQL-based Kinesis Data Analytics application.
*
*
* @param sqlApplicationConfiguration
* The creation and update parameters for a SQL-based Kinesis Data Analytics application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfiguration withSqlApplicationConfiguration(SqlApplicationConfiguration sqlApplicationConfiguration) {
setSqlApplicationConfiguration(sqlApplicationConfiguration);
return this;
}
/**
*
* The creation and update parameters for a Managed Service for Apache Flink application.
*
*
* @param flinkApplicationConfiguration
* The creation and update parameters for a Managed Service for Apache Flink application.
*/
public void setFlinkApplicationConfiguration(FlinkApplicationConfiguration flinkApplicationConfiguration) {
this.flinkApplicationConfiguration = flinkApplicationConfiguration;
}
/**
*
* The creation and update parameters for a Managed Service for Apache Flink application.
*
*
* @return The creation and update parameters for a Managed Service for Apache Flink application.
*/
public FlinkApplicationConfiguration getFlinkApplicationConfiguration() {
return this.flinkApplicationConfiguration;
}
/**
*
* The creation and update parameters for a Managed Service for Apache Flink application.
*
*
* @param flinkApplicationConfiguration
* The creation and update parameters for a Managed Service for Apache Flink application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfiguration withFlinkApplicationConfiguration(FlinkApplicationConfiguration flinkApplicationConfiguration) {
setFlinkApplicationConfiguration(flinkApplicationConfiguration);
return this;
}
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*
* @param environmentProperties
* Describes execution properties for a Managed Service for Apache Flink application.
*/
public void setEnvironmentProperties(EnvironmentProperties environmentProperties) {
this.environmentProperties = environmentProperties;
}
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*
* @return Describes execution properties for a Managed Service for Apache Flink application.
*/
public EnvironmentProperties getEnvironmentProperties() {
return this.environmentProperties;
}
/**
*
* Describes execution properties for a Managed Service for Apache Flink application.
*
*
* @param environmentProperties
* 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 ApplicationConfiguration withEnvironmentProperties(EnvironmentProperties environmentProperties) {
setEnvironmentProperties(environmentProperties);
return this;
}
/**
*
* The code location and type parameters for a Managed Service for Apache Flink application.
*
*
* @param applicationCodeConfiguration
* The code location and type parameters for a Managed Service for Apache Flink application.
*/
public void setApplicationCodeConfiguration(ApplicationCodeConfiguration applicationCodeConfiguration) {
this.applicationCodeConfiguration = applicationCodeConfiguration;
}
/**
*
* The code location and type parameters for a Managed Service for Apache Flink application.
*
*
* @return The code location and type parameters for a Managed Service for Apache Flink application.
*/
public ApplicationCodeConfiguration getApplicationCodeConfiguration() {
return this.applicationCodeConfiguration;
}
/**
*
* The code location and type parameters for a Managed Service for Apache Flink application.
*
*
* @param applicationCodeConfiguration
* The code location and type parameters for a Managed Service for Apache Flink application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfiguration withApplicationCodeConfiguration(ApplicationCodeConfiguration applicationCodeConfiguration) {
setApplicationCodeConfiguration(applicationCodeConfiguration);
return this;
}
/**
*
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*
*
* @param applicationSnapshotConfiguration
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*/
public void setApplicationSnapshotConfiguration(ApplicationSnapshotConfiguration applicationSnapshotConfiguration) {
this.applicationSnapshotConfiguration = applicationSnapshotConfiguration;
}
/**
*
* 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 ApplicationSnapshotConfiguration getApplicationSnapshotConfiguration() {
return this.applicationSnapshotConfiguration;
}
/**
*
* Describes whether snapshots are enabled for a Managed Service for Apache Flink application.
*
*
* @param applicationSnapshotConfiguration
* 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 ApplicationConfiguration withApplicationSnapshotConfiguration(ApplicationSnapshotConfiguration applicationSnapshotConfiguration) {
setApplicationSnapshotConfiguration(applicationSnapshotConfiguration);
return this;
}
/**
* @param applicationSystemRollbackConfiguration
*/
public void setApplicationSystemRollbackConfiguration(ApplicationSystemRollbackConfiguration applicationSystemRollbackConfiguration) {
this.applicationSystemRollbackConfiguration = applicationSystemRollbackConfiguration;
}
/**
* @return
*/
public ApplicationSystemRollbackConfiguration getApplicationSystemRollbackConfiguration() {
return this.applicationSystemRollbackConfiguration;
}
/**
* @param applicationSystemRollbackConfiguration
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ApplicationConfiguration withApplicationSystemRollbackConfiguration(ApplicationSystemRollbackConfiguration applicationSystemRollbackConfiguration) {
setApplicationSystemRollbackConfiguration(applicationSystemRollbackConfiguration);
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 getVpcConfigurations() {
return vpcConfigurations;
}
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*
* @param vpcConfigurations
* The array of descriptions of VPC configurations available to the application.
*/
public void setVpcConfigurations(java.util.Collection vpcConfigurations) {
if (vpcConfigurations == null) {
this.vpcConfigurations = null;
return;
}
this.vpcConfigurations = new java.util.ArrayList(vpcConfigurations);
}
/**
*
* 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 #setVpcConfigurations(java.util.Collection)} or {@link #withVpcConfigurations(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param vpcConfigurations
* 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 ApplicationConfiguration withVpcConfigurations(VpcConfiguration... vpcConfigurations) {
if (this.vpcConfigurations == null) {
setVpcConfigurations(new java.util.ArrayList(vpcConfigurations.length));
}
for (VpcConfiguration ele : vpcConfigurations) {
this.vpcConfigurations.add(ele);
}
return this;
}
/**
*
* The array of descriptions of VPC configurations available to the application.
*
*
* @param vpcConfigurations
* 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 ApplicationConfiguration withVpcConfigurations(java.util.Collection vpcConfigurations) {
setVpcConfigurations(vpcConfigurations);
return this;
}
/**
*
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*
*
* @param zeppelinApplicationConfiguration
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*/
public void setZeppelinApplicationConfiguration(ZeppelinApplicationConfiguration zeppelinApplicationConfiguration) {
this.zeppelinApplicationConfiguration = zeppelinApplicationConfiguration;
}
/**
*
* 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 ZeppelinApplicationConfiguration getZeppelinApplicationConfiguration() {
return this.zeppelinApplicationConfiguration;
}
/**
*
* The configuration parameters for a Managed Service for Apache Flink Studio notebook.
*
*
* @param zeppelinApplicationConfiguration
* 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 ApplicationConfiguration withZeppelinApplicationConfiguration(ZeppelinApplicationConfiguration zeppelinApplicationConfiguration) {
setZeppelinApplicationConfiguration(zeppelinApplicationConfiguration);
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 (getSqlApplicationConfiguration() != null)
sb.append("SqlApplicationConfiguration: ").append(getSqlApplicationConfiguration()).append(",");
if (getFlinkApplicationConfiguration() != null)
sb.append("FlinkApplicationConfiguration: ").append(getFlinkApplicationConfiguration()).append(",");
if (getEnvironmentProperties() != null)
sb.append("EnvironmentProperties: ").append(getEnvironmentProperties()).append(",");
if (getApplicationCodeConfiguration() != null)
sb.append("ApplicationCodeConfiguration: ").append(getApplicationCodeConfiguration()).append(",");
if (getApplicationSnapshotConfiguration() != null)
sb.append("ApplicationSnapshotConfiguration: ").append(getApplicationSnapshotConfiguration()).append(",");
if (getApplicationSystemRollbackConfiguration() != null)
sb.append("ApplicationSystemRollbackConfiguration: ").append(getApplicationSystemRollbackConfiguration()).append(",");
if (getVpcConfigurations() != null)
sb.append("VpcConfigurations: ").append(getVpcConfigurations()).append(",");
if (getZeppelinApplicationConfiguration() != null)
sb.append("ZeppelinApplicationConfiguration: ").append(getZeppelinApplicationConfiguration());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ApplicationConfiguration == false)
return false;
ApplicationConfiguration other = (ApplicationConfiguration) obj;
if (other.getSqlApplicationConfiguration() == null ^ this.getSqlApplicationConfiguration() == null)
return false;
if (other.getSqlApplicationConfiguration() != null && other.getSqlApplicationConfiguration().equals(this.getSqlApplicationConfiguration()) == false)
return false;
if (other.getFlinkApplicationConfiguration() == null ^ this.getFlinkApplicationConfiguration() == null)
return false;
if (other.getFlinkApplicationConfiguration() != null
&& other.getFlinkApplicationConfiguration().equals(this.getFlinkApplicationConfiguration()) == false)
return false;
if (other.getEnvironmentProperties() == null ^ this.getEnvironmentProperties() == null)
return false;
if (other.getEnvironmentProperties() != null && other.getEnvironmentProperties().equals(this.getEnvironmentProperties()) == false)
return false;
if (other.getApplicationCodeConfiguration() == null ^ this.getApplicationCodeConfiguration() == null)
return false;
if (other.getApplicationCodeConfiguration() != null && other.getApplicationCodeConfiguration().equals(this.getApplicationCodeConfiguration()) == false)
return false;
if (other.getApplicationSnapshotConfiguration() == null ^ this.getApplicationSnapshotConfiguration() == null)
return false;
if (other.getApplicationSnapshotConfiguration() != null
&& other.getApplicationSnapshotConfiguration().equals(this.getApplicationSnapshotConfiguration()) == false)
return false;
if (other.getApplicationSystemRollbackConfiguration() == null ^ this.getApplicationSystemRollbackConfiguration() == null)
return false;
if (other.getApplicationSystemRollbackConfiguration() != null
&& other.getApplicationSystemRollbackConfiguration().equals(this.getApplicationSystemRollbackConfiguration()) == false)
return false;
if (other.getVpcConfigurations() == null ^ this.getVpcConfigurations() == null)
return false;
if (other.getVpcConfigurations() != null && other.getVpcConfigurations().equals(this.getVpcConfigurations()) == false)
return false;
if (other.getZeppelinApplicationConfiguration() == null ^ this.getZeppelinApplicationConfiguration() == null)
return false;
if (other.getZeppelinApplicationConfiguration() != null
&& other.getZeppelinApplicationConfiguration().equals(this.getZeppelinApplicationConfiguration()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getSqlApplicationConfiguration() == null) ? 0 : getSqlApplicationConfiguration().hashCode());
hashCode = prime * hashCode + ((getFlinkApplicationConfiguration() == null) ? 0 : getFlinkApplicationConfiguration().hashCode());
hashCode = prime * hashCode + ((getEnvironmentProperties() == null) ? 0 : getEnvironmentProperties().hashCode());
hashCode = prime * hashCode + ((getApplicationCodeConfiguration() == null) ? 0 : getApplicationCodeConfiguration().hashCode());
hashCode = prime * hashCode + ((getApplicationSnapshotConfiguration() == null) ? 0 : getApplicationSnapshotConfiguration().hashCode());
hashCode = prime * hashCode + ((getApplicationSystemRollbackConfiguration() == null) ? 0 : getApplicationSystemRollbackConfiguration().hashCode());
hashCode = prime * hashCode + ((getVpcConfigurations() == null) ? 0 : getVpcConfigurations().hashCode());
hashCode = prime * hashCode + ((getZeppelinApplicationConfiguration() == null) ? 0 : getZeppelinApplicationConfiguration().hashCode());
return hashCode;
}
@Override
public ApplicationConfiguration clone() {
try {
return (ApplicationConfiguration) 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.ApplicationConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}