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

com.amazonaws.services.kinesisanalyticsv2.model.StopApplicationRequest 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.AmazonWebServiceRequest;

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

    /**
     * 

* The name of the running application to stop. *

*/ private String applicationName; /** *

* Set to true to force the application to stop. If you set Force to true, * Managed Service for Apache Flink stops the application without taking a snapshot. *

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based Kinesis * Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. *

*/ private Boolean force; /** *

* The name of the running application to stop. *

* * @param applicationName * The name of the running application to stop. */ public void setApplicationName(String applicationName) { this.applicationName = applicationName; } /** *

* The name of the running application to stop. *

* * @return The name of the running application to stop. */ public String getApplicationName() { return this.applicationName; } /** *

* The name of the running application to stop. *

* * @param applicationName * The name of the running application to stop. * @return Returns a reference to this object so that method calls can be chained together. */ public StopApplicationRequest withApplicationName(String applicationName) { setApplicationName(applicationName); return this; } /** *

* Set to true to force the application to stop. If you set Force to true, * Managed Service for Apache Flink stops the application without taking a snapshot. *

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based Kinesis * Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. *

* * @param force * Set to true to force the application to stop. If you set Force to * true, Managed Service for Apache Flink stops the application without taking a snapshot.

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your * application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based * Kinesis Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. */ public void setForce(Boolean force) { this.force = force; } /** *

* Set to true to force the application to stop. If you set Force to true, * Managed Service for Apache Flink stops the application without taking a snapshot. *

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based Kinesis * Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. *

* * @return Set to true to force the application to stop. If you set Force to * true, Managed Service for Apache Flink stops the application without taking a snapshot.

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your * application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based * Kinesis Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. */ public Boolean getForce() { return this.force; } /** *

* Set to true to force the application to stop. If you set Force to true, * Managed Service for Apache Flink stops the application without taking a snapshot. *

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based Kinesis * Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. *

* * @param force * Set to true to force the application to stop. If you set Force to * true, Managed Service for Apache Flink stops the application without taking a snapshot.

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your * application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based * Kinesis Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. * @return Returns a reference to this object so that method calls can be chained together. */ public StopApplicationRequest withForce(Boolean force) { setForce(force); return this; } /** *

* Set to true to force the application to stop. If you set Force to true, * Managed Service for Apache Flink stops the application without taking a snapshot. *

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based Kinesis * Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. *

* * @return Set to true to force the application to stop. If you set Force to * true, Managed Service for Apache Flink stops the application without taking a snapshot.

* *

* Force-stopping your application may lead to data loss or duplication. To prevent data loss or duplicate * processing of data during application restarts, we recommend you to take frequent snapshots of your * application. *

*
*

* You can only force stop a Managed Service for Apache Flink application. You can't force stop a SQL-based * Kinesis Data Analytics application. *

*

* The application must be in the STARTING, UPDATING, STOPPING, * AUTOSCALING, or RUNNING status. */ public Boolean isForce() { return this.force; } /** * 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 (getApplicationName() != null) sb.append("ApplicationName: ").append(getApplicationName()).append(","); if (getForce() != null) sb.append("Force: ").append(getForce()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof StopApplicationRequest == false) return false; StopApplicationRequest other = (StopApplicationRequest) obj; if (other.getApplicationName() == null ^ this.getApplicationName() == null) return false; if (other.getApplicationName() != null && other.getApplicationName().equals(this.getApplicationName()) == false) return false; if (other.getForce() == null ^ this.getForce() == null) return false; if (other.getForce() != null && other.getForce().equals(this.getForce()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getApplicationName() == null) ? 0 : getApplicationName().hashCode()); hashCode = prime * hashCode + ((getForce() == null) ? 0 : getForce().hashCode()); return hashCode; } @Override public StopApplicationRequest clone() { return (StopApplicationRequest) super.clone(); } }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy