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

com.amazonaws.services.kinesisanalyticsv2.model.FlinkApplicationConfiguration 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

The 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 configuration parameters for a Managed Service for Apache Flink application or a Studio notebook. *

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

* Describes an application's checkpointing configuration. Checkpointing is the process of persisting application * state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation. *

*/ private CheckpointConfiguration checkpointConfiguration; /** *

* Describes configuration parameters for Amazon CloudWatch logging for an application. *

*/ private MonitoringConfiguration monitoringConfiguration; /** *

* Describes parameters for how an application executes multiple tasks simultaneously. *

*/ private ParallelismConfiguration parallelismConfiguration; /** *

* Describes an application's checkpointing configuration. Checkpointing is the process of persisting application * state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation. *

* * @param checkpointConfiguration * Describes an application's checkpointing configuration. Checkpointing is the process of persisting * application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation. */ public void setCheckpointConfiguration(CheckpointConfiguration checkpointConfiguration) { this.checkpointConfiguration = checkpointConfiguration; } /** *

* Describes an application's checkpointing configuration. Checkpointing is the process of persisting application * state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation. *

* * @return Describes an application's checkpointing configuration. Checkpointing is the process of persisting * application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation. */ public CheckpointConfiguration getCheckpointConfiguration() { return this.checkpointConfiguration; } /** *

* Describes an application's checkpointing configuration. Checkpointing is the process of persisting application * state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation. *

* * @param checkpointConfiguration * Describes an application's checkpointing configuration. Checkpointing is the process of persisting * application state for fault tolerance. For more information, see Checkpoints for Fault Tolerance in the Apache Flink Documentation. * @return Returns a reference to this object so that method calls can be chained together. */ public FlinkApplicationConfiguration withCheckpointConfiguration(CheckpointConfiguration checkpointConfiguration) { setCheckpointConfiguration(checkpointConfiguration); return this; } /** *

* Describes configuration parameters for Amazon CloudWatch logging for an application. *

* * @param monitoringConfiguration * Describes configuration parameters for Amazon CloudWatch logging for an application. */ public void setMonitoringConfiguration(MonitoringConfiguration monitoringConfiguration) { this.monitoringConfiguration = monitoringConfiguration; } /** *

* Describes configuration parameters for Amazon CloudWatch logging for an application. *

* * @return Describes configuration parameters for Amazon CloudWatch logging for an application. */ public MonitoringConfiguration getMonitoringConfiguration() { return this.monitoringConfiguration; } /** *

* Describes configuration parameters for Amazon CloudWatch logging for an application. *

* * @param monitoringConfiguration * Describes configuration parameters for Amazon CloudWatch logging for an application. * @return Returns a reference to this object so that method calls can be chained together. */ public FlinkApplicationConfiguration withMonitoringConfiguration(MonitoringConfiguration monitoringConfiguration) { setMonitoringConfiguration(monitoringConfiguration); return this; } /** *

* Describes parameters for how an application executes multiple tasks simultaneously. *

* * @param parallelismConfiguration * Describes parameters for how an application executes multiple tasks simultaneously. */ public void setParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) { this.parallelismConfiguration = parallelismConfiguration; } /** *

* Describes parameters for how an application executes multiple tasks simultaneously. *

* * @return Describes parameters for how an application executes multiple tasks simultaneously. */ public ParallelismConfiguration getParallelismConfiguration() { return this.parallelismConfiguration; } /** *

* Describes parameters for how an application executes multiple tasks simultaneously. *

* * @param parallelismConfiguration * Describes parameters for how an application executes multiple tasks simultaneously. * @return Returns a reference to this object so that method calls can be chained together. */ public FlinkApplicationConfiguration withParallelismConfiguration(ParallelismConfiguration parallelismConfiguration) { setParallelismConfiguration(parallelismConfiguration); 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 (getCheckpointConfiguration() != null) sb.append("CheckpointConfiguration: ").append(getCheckpointConfiguration()).append(","); if (getMonitoringConfiguration() != null) sb.append("MonitoringConfiguration: ").append(getMonitoringConfiguration()).append(","); if (getParallelismConfiguration() != null) sb.append("ParallelismConfiguration: ").append(getParallelismConfiguration()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof FlinkApplicationConfiguration == false) return false; FlinkApplicationConfiguration other = (FlinkApplicationConfiguration) obj; if (other.getCheckpointConfiguration() == null ^ this.getCheckpointConfiguration() == null) return false; if (other.getCheckpointConfiguration() != null && other.getCheckpointConfiguration().equals(this.getCheckpointConfiguration()) == false) return false; if (other.getMonitoringConfiguration() == null ^ this.getMonitoringConfiguration() == null) return false; if (other.getMonitoringConfiguration() != null && other.getMonitoringConfiguration().equals(this.getMonitoringConfiguration()) == false) return false; if (other.getParallelismConfiguration() == null ^ this.getParallelismConfiguration() == null) return false; if (other.getParallelismConfiguration() != null && other.getParallelismConfiguration().equals(this.getParallelismConfiguration()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getCheckpointConfiguration() == null) ? 0 : getCheckpointConfiguration().hashCode()); hashCode = prime * hashCode + ((getMonitoringConfiguration() == null) ? 0 : getMonitoringConfiguration().hashCode()); hashCode = prime * hashCode + ((getParallelismConfiguration() == null) ? 0 : getParallelismConfiguration().hashCode()); return hashCode; } @Override public FlinkApplicationConfiguration clone() { try { return (FlinkApplicationConfiguration) 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.FlinkApplicationConfigurationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy