
com.amazonaws.services.kinesisanalyticsv2.model.ParallelismConfigurationUpdate 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;
/**
*
* Describes updates to parameters for how an application executes multiple tasks simultaneously.
*
*
* @see AWS API Documentation
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class ParallelismConfigurationUpdate implements Serializable, Cloneable, StructuredPojo {
/**
*
* Describes updates to whether the application uses the default parallelism for the Managed Service for Apache
* Flink service, or if a custom parallelism is used. You must set this property to CUSTOM
in order to
* change your application's AutoScalingEnabled
, Parallelism
, or
* ParallelismPerKPU
properties.
*
*/
private String configurationTypeUpdate;
/**
*
* Describes updates to the initial number of parallel tasks an application can perform. If
* AutoScalingEnabled
is set to True, then Managed Service for Apache Flink can increase the
* CurrentParallelism
value in response to application load. The service can increase
* CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
times the
* maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by
* requesting a limit increase. If application load is reduced, the service will reduce
* CurrentParallelism
down to the Parallelism
setting.
*
*/
private Integer parallelismUpdate;
/**
*
* Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit (KPU)
* used by the application.
*
*/
private Integer parallelismPerKPUUpdate;
/**
*
* Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of a
* Managed Service for Apache Flink application in response to increased throughput.
*
*/
private Boolean autoScalingEnabledUpdate;
/**
*
* Describes updates to whether the application uses the default parallelism for the Managed Service for Apache
* Flink service, or if a custom parallelism is used. You must set this property to CUSTOM
in order to
* change your application's AutoScalingEnabled
, Parallelism
, or
* ParallelismPerKPU
properties.
*
*
* @param configurationTypeUpdate
* Describes updates to whether the application uses the default parallelism for the Managed Service for
* Apache Flink service, or if a custom parallelism is used. You must set this property to
* CUSTOM
in order to change your application's AutoScalingEnabled
,
* Parallelism
, or ParallelismPerKPU
properties.
* @see ConfigurationType
*/
public void setConfigurationTypeUpdate(String configurationTypeUpdate) {
this.configurationTypeUpdate = configurationTypeUpdate;
}
/**
*
* Describes updates to whether the application uses the default parallelism for the Managed Service for Apache
* Flink service, or if a custom parallelism is used. You must set this property to CUSTOM
in order to
* change your application's AutoScalingEnabled
, Parallelism
, or
* ParallelismPerKPU
properties.
*
*
* @return Describes updates to whether the application uses the default parallelism for the Managed Service for
* Apache Flink service, or if a custom parallelism is used. You must set this property to
* CUSTOM
in order to change your application's AutoScalingEnabled
,
* Parallelism
, or ParallelismPerKPU
properties.
* @see ConfigurationType
*/
public String getConfigurationTypeUpdate() {
return this.configurationTypeUpdate;
}
/**
*
* Describes updates to whether the application uses the default parallelism for the Managed Service for Apache
* Flink service, or if a custom parallelism is used. You must set this property to CUSTOM
in order to
* change your application's AutoScalingEnabled
, Parallelism
, or
* ParallelismPerKPU
properties.
*
*
* @param configurationTypeUpdate
* Describes updates to whether the application uses the default parallelism for the Managed Service for
* Apache Flink service, or if a custom parallelism is used. You must set this property to
* CUSTOM
in order to change your application's AutoScalingEnabled
,
* Parallelism
, or ParallelismPerKPU
properties.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConfigurationType
*/
public ParallelismConfigurationUpdate withConfigurationTypeUpdate(String configurationTypeUpdate) {
setConfigurationTypeUpdate(configurationTypeUpdate);
return this;
}
/**
*
* Describes updates to whether the application uses the default parallelism for the Managed Service for Apache
* Flink service, or if a custom parallelism is used. You must set this property to CUSTOM
in order to
* change your application's AutoScalingEnabled
, Parallelism
, or
* ParallelismPerKPU
properties.
*
*
* @param configurationTypeUpdate
* Describes updates to whether the application uses the default parallelism for the Managed Service for
* Apache Flink service, or if a custom parallelism is used. You must set this property to
* CUSTOM
in order to change your application's AutoScalingEnabled
,
* Parallelism
, or ParallelismPerKPU
properties.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConfigurationType
*/
public ParallelismConfigurationUpdate withConfigurationTypeUpdate(ConfigurationType configurationTypeUpdate) {
this.configurationTypeUpdate = configurationTypeUpdate.toString();
return this;
}
/**
*
* Describes updates to the initial number of parallel tasks an application can perform. If
* AutoScalingEnabled
is set to True, then Managed Service for Apache Flink can increase the
* CurrentParallelism
value in response to application load. The service can increase
* CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
times the
* maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by
* requesting a limit increase. If application load is reduced, the service will reduce
* CurrentParallelism
down to the Parallelism
setting.
*
*
* @param parallelismUpdate
* Describes updates to the initial number of parallel tasks an application can perform. If
* AutoScalingEnabled
is set to True, then Managed Service for Apache Flink can increase the
* CurrentParallelism
value in response to application load. The service can increase
* CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
* times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can
* be increased by requesting a limit increase. If application load is reduced, the service will reduce
* CurrentParallelism
down to the Parallelism
setting.
*/
public void setParallelismUpdate(Integer parallelismUpdate) {
this.parallelismUpdate = parallelismUpdate;
}
/**
*
* Describes updates to the initial number of parallel tasks an application can perform. If
* AutoScalingEnabled
is set to True, then Managed Service for Apache Flink can increase the
* CurrentParallelism
value in response to application load. The service can increase
* CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
times the
* maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by
* requesting a limit increase. If application load is reduced, the service will reduce
* CurrentParallelism
down to the Parallelism
setting.
*
*
* @return Describes updates to the initial number of parallel tasks an application can perform. If
* AutoScalingEnabled
is set to True, then Managed Service for Apache Flink can increase the
* CurrentParallelism
value in response to application load. The service can increase
* CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
* times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can
* be increased by requesting a limit increase. If application load is reduced, the service will reduce
* CurrentParallelism
down to the Parallelism
setting.
*/
public Integer getParallelismUpdate() {
return this.parallelismUpdate;
}
/**
*
* Describes updates to the initial number of parallel tasks an application can perform. If
* AutoScalingEnabled
is set to True, then Managed Service for Apache Flink can increase the
* CurrentParallelism
value in response to application load. The service can increase
* CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
times the
* maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can be increased by
* requesting a limit increase. If application load is reduced, the service will reduce
* CurrentParallelism
down to the Parallelism
setting.
*
*
* @param parallelismUpdate
* Describes updates to the initial number of parallel tasks an application can perform. If
* AutoScalingEnabled
is set to True, then Managed Service for Apache Flink can increase the
* CurrentParallelism
value in response to application load. The service can increase
* CurrentParallelism
up to the maximum parallelism, which is ParalellismPerKPU
* times the maximum KPUs for the application. The maximum KPUs for an application is 32 by default, and can
* be increased by requesting a limit increase. If application load is reduced, the service will reduce
* CurrentParallelism
down to the Parallelism
setting.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParallelismConfigurationUpdate withParallelismUpdate(Integer parallelismUpdate) {
setParallelismUpdate(parallelismUpdate);
return this;
}
/**
*
* Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit (KPU)
* used by the application.
*
*
* @param parallelismPerKPUUpdate
* Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit
* (KPU) used by the application.
*/
public void setParallelismPerKPUUpdate(Integer parallelismPerKPUUpdate) {
this.parallelismPerKPUUpdate = parallelismPerKPUUpdate;
}
/**
*
* Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit (KPU)
* used by the application.
*
*
* @return Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit
* (KPU) used by the application.
*/
public Integer getParallelismPerKPUUpdate() {
return this.parallelismPerKPUUpdate;
}
/**
*
* Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit (KPU)
* used by the application.
*
*
* @param parallelismPerKPUUpdate
* Describes updates to the number of parallel tasks an application can perform per Kinesis Processing Unit
* (KPU) used by the application.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParallelismConfigurationUpdate withParallelismPerKPUUpdate(Integer parallelismPerKPUUpdate) {
setParallelismPerKPUUpdate(parallelismPerKPUUpdate);
return this;
}
/**
*
* Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of a
* Managed Service for Apache Flink application in response to increased throughput.
*
*
* @param autoScalingEnabledUpdate
* Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of
* a Managed Service for Apache Flink application in response to increased throughput.
*/
public void setAutoScalingEnabledUpdate(Boolean autoScalingEnabledUpdate) {
this.autoScalingEnabledUpdate = autoScalingEnabledUpdate;
}
/**
*
* Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of a
* Managed Service for Apache Flink application in response to increased throughput.
*
*
* @return Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of
* a Managed Service for Apache Flink application in response to increased throughput.
*/
public Boolean getAutoScalingEnabledUpdate() {
return this.autoScalingEnabledUpdate;
}
/**
*
* Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of a
* Managed Service for Apache Flink application in response to increased throughput.
*
*
* @param autoScalingEnabledUpdate
* Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of
* a Managed Service for Apache Flink application in response to increased throughput.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ParallelismConfigurationUpdate withAutoScalingEnabledUpdate(Boolean autoScalingEnabledUpdate) {
setAutoScalingEnabledUpdate(autoScalingEnabledUpdate);
return this;
}
/**
*
* Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of a
* Managed Service for Apache Flink application in response to increased throughput.
*
*
* @return Describes updates to whether the Managed Service for Apache Flink service can increase the parallelism of
* a Managed Service for Apache Flink application in response to increased throughput.
*/
public Boolean isAutoScalingEnabledUpdate() {
return this.autoScalingEnabledUpdate;
}
/**
* 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 (getConfigurationTypeUpdate() != null)
sb.append("ConfigurationTypeUpdate: ").append(getConfigurationTypeUpdate()).append(",");
if (getParallelismUpdate() != null)
sb.append("ParallelismUpdate: ").append(getParallelismUpdate()).append(",");
if (getParallelismPerKPUUpdate() != null)
sb.append("ParallelismPerKPUUpdate: ").append(getParallelismPerKPUUpdate()).append(",");
if (getAutoScalingEnabledUpdate() != null)
sb.append("AutoScalingEnabledUpdate: ").append(getAutoScalingEnabledUpdate());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof ParallelismConfigurationUpdate == false)
return false;
ParallelismConfigurationUpdate other = (ParallelismConfigurationUpdate) obj;
if (other.getConfigurationTypeUpdate() == null ^ this.getConfigurationTypeUpdate() == null)
return false;
if (other.getConfigurationTypeUpdate() != null && other.getConfigurationTypeUpdate().equals(this.getConfigurationTypeUpdate()) == false)
return false;
if (other.getParallelismUpdate() == null ^ this.getParallelismUpdate() == null)
return false;
if (other.getParallelismUpdate() != null && other.getParallelismUpdate().equals(this.getParallelismUpdate()) == false)
return false;
if (other.getParallelismPerKPUUpdate() == null ^ this.getParallelismPerKPUUpdate() == null)
return false;
if (other.getParallelismPerKPUUpdate() != null && other.getParallelismPerKPUUpdate().equals(this.getParallelismPerKPUUpdate()) == false)
return false;
if (other.getAutoScalingEnabledUpdate() == null ^ this.getAutoScalingEnabledUpdate() == null)
return false;
if (other.getAutoScalingEnabledUpdate() != null && other.getAutoScalingEnabledUpdate().equals(this.getAutoScalingEnabledUpdate()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getConfigurationTypeUpdate() == null) ? 0 : getConfigurationTypeUpdate().hashCode());
hashCode = prime * hashCode + ((getParallelismUpdate() == null) ? 0 : getParallelismUpdate().hashCode());
hashCode = prime * hashCode + ((getParallelismPerKPUUpdate() == null) ? 0 : getParallelismPerKPUUpdate().hashCode());
hashCode = prime * hashCode + ((getAutoScalingEnabledUpdate() == null) ? 0 : getAutoScalingEnabledUpdate().hashCode());
return hashCode;
}
@Override
public ParallelismConfigurationUpdate clone() {
try {
return (ParallelismConfigurationUpdate) 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.ParallelismConfigurationUpdateMarshaller.getInstance().marshall(this, protocolMarshaller);
}
}