/*
* Copyright 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.
*/
/*
* Do not modify this file. This file is generated from the kinesisanalyticsv2-2018-05-23.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.KinesisAnalyticsV2.Model
{
///
/// Describes updates to parameters for how an application executes multiple tasks simultaneously.
///
public partial class ParallelismConfigurationUpdate
{
private bool? _autoScalingEnabledUpdate;
private ConfigurationType _configurationTypeUpdate;
private int? _parallelismPerKPUUpdate;
private int? _parallelismUpdate;
///
/// Gets and sets the property AutoScalingEnabledUpdate.
///
/// Describes updates to whether the Kinesis Data Analytics service can increase the parallelism
/// of a Flink-based Kinesis Data Analytics application in response to increased throughput.
///
///
public bool AutoScalingEnabledUpdate
{
get { return this._autoScalingEnabledUpdate.GetValueOrDefault(); }
set { this._autoScalingEnabledUpdate = value; }
}
// Check to see if AutoScalingEnabledUpdate property is set
internal bool IsSetAutoScalingEnabledUpdate()
{
return this._autoScalingEnabledUpdate.HasValue;
}
///
/// Gets and sets the property ConfigurationTypeUpdate.
///
/// Describes updates to whether the application uses the default parallelism for the
/// Kinesis Data Analytics 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.
///
///
public ConfigurationType ConfigurationTypeUpdate
{
get { return this._configurationTypeUpdate; }
set { this._configurationTypeUpdate = value; }
}
// Check to see if ConfigurationTypeUpdate property is set
internal bool IsSetConfigurationTypeUpdate()
{
return this._configurationTypeUpdate != null;
}
///
/// Gets and sets the property ParallelismPerKPUUpdate.
///
/// Describes updates to the number of parallel tasks an application can perform per Kinesis
/// Processing Unit (KPU) used by the application.
///
///
[AWSProperty(Min=1)]
public int ParallelismPerKPUUpdate
{
get { return this._parallelismPerKPUUpdate.GetValueOrDefault(); }
set { this._parallelismPerKPUUpdate = value; }
}
// Check to see if ParallelismPerKPUUpdate property is set
internal bool IsSetParallelismPerKPUUpdate()
{
return this._parallelismPerKPUUpdate.HasValue;
}
///
/// Gets and sets the property ParallelismUpdate.
///
/// Describes updates to the initial number of parallel tasks an application can perform.
/// If AutoScalingEnabled
is set to True, then Kinesis Data Analytics 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.
///
///
[AWSProperty(Min=1)]
public int ParallelismUpdate
{
get { return this._parallelismUpdate.GetValueOrDefault(); }
set { this._parallelismUpdate = value; }
}
// Check to see if ParallelismUpdate property is set
internal bool IsSetParallelismUpdate()
{
return this._parallelismUpdate.HasValue;
}
}
}