/* * 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 { /// /// Container for the parameters to the UpdateApplication operation. /// Updates an existing Kinesis Data Analytics application. Using this operation, you /// can update application code, input configuration, and output configuration. /// /// /// /// Kinesis Data Analytics updates the ApplicationVersionId each time you /// update your application. /// /// /// /// You cannot update the RuntimeEnvironment of an existing application. /// If you need to update an application's RuntimeEnvironment, you must delete /// the application and create it again. /// /// /// public partial class UpdateApplicationRequest : AmazonKinesisAnalyticsV2Request { private ApplicationConfigurationUpdate _applicationConfigurationUpdate; private string _applicationName; private List _cloudWatchLoggingOptionUpdates = new List(); private string _conditionalToken; private long? _currentApplicationVersionId; private RunConfigurationUpdate _runConfigurationUpdate; private string _serviceExecutionRoleUpdate; /// /// Gets and sets the property ApplicationConfigurationUpdate. /// /// Describes application configuration updates. /// /// public ApplicationConfigurationUpdate ApplicationConfigurationUpdate { get { return this._applicationConfigurationUpdate; } set { this._applicationConfigurationUpdate = value; } } // Check to see if ApplicationConfigurationUpdate property is set internal bool IsSetApplicationConfigurationUpdate() { return this._applicationConfigurationUpdate != null; } /// /// Gets and sets the property ApplicationName. /// /// The name of the application to update. /// /// [AWSProperty(Required=true, Min=1, Max=128)] public string ApplicationName { get { return this._applicationName; } set { this._applicationName = value; } } // Check to see if ApplicationName property is set internal bool IsSetApplicationName() { return this._applicationName != null; } /// /// Gets and sets the property CloudWatchLoggingOptionUpdates. /// /// Describes application Amazon CloudWatch logging option updates. You can only update /// existing CloudWatch logging options with this action. To add a new CloudWatch logging /// option, use AddApplicationCloudWatchLoggingOption. /// /// public List CloudWatchLoggingOptionUpdates { get { return this._cloudWatchLoggingOptionUpdates; } set { this._cloudWatchLoggingOptionUpdates = value; } } // Check to see if CloudWatchLoggingOptionUpdates property is set internal bool IsSetCloudWatchLoggingOptionUpdates() { return this._cloudWatchLoggingOptionUpdates != null && this._cloudWatchLoggingOptionUpdates.Count > 0; } /// /// Gets and sets the property ConditionalToken. /// /// A value you use to implement strong concurrency for application updates. You must /// provide the CurrentApplicationVersionId or the ConditionalToken. /// You get the application's current ConditionalToken using DescribeApplication. /// For better concurrency support, use the ConditionalToken parameter instead /// of CurrentApplicationVersionId. /// /// [AWSProperty(Min=1, Max=512)] public string ConditionalToken { get { return this._conditionalToken; } set { this._conditionalToken = value; } } // Check to see if ConditionalToken property is set internal bool IsSetConditionalToken() { return this._conditionalToken != null; } /// /// Gets and sets the property CurrentApplicationVersionId. /// /// The current application version ID. You must provide the CurrentApplicationVersionId /// or the ConditionalToken.You can retrieve the application version ID using /// DescribeApplication. For better concurrency support, use the ConditionalToken /// parameter instead of CurrentApplicationVersionId. /// /// [AWSProperty(Min=1, Max=999999999)] public long CurrentApplicationVersionId { get { return this._currentApplicationVersionId.GetValueOrDefault(); } set { this._currentApplicationVersionId = value; } } // Check to see if CurrentApplicationVersionId property is set internal bool IsSetCurrentApplicationVersionId() { return this._currentApplicationVersionId.HasValue; } /// /// Gets and sets the property RunConfigurationUpdate. /// /// Describes updates to the application's starting parameters. /// /// public RunConfigurationUpdate RunConfigurationUpdate { get { return this._runConfigurationUpdate; } set { this._runConfigurationUpdate = value; } } // Check to see if RunConfigurationUpdate property is set internal bool IsSetRunConfigurationUpdate() { return this._runConfigurationUpdate != null; } /// /// Gets and sets the property ServiceExecutionRoleUpdate. /// /// Describes updates to the service execution role. /// /// [AWSProperty(Min=1, Max=2048)] public string ServiceExecutionRoleUpdate { get { return this._serviceExecutionRoleUpdate; } set { this._serviceExecutionRoleUpdate = value; } } // Check to see if ServiceExecutionRoleUpdate property is set internal bool IsSetServiceExecutionRoleUpdate() { return this._serviceExecutionRoleUpdate != null; } } }