/*
* 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 AddApplicationCloudWatchLoggingOption operation.
/// Adds an Amazon CloudWatch log stream to monitor application configuration errors.
///
public partial class AddApplicationCloudWatchLoggingOptionRequest : AmazonKinesisAnalyticsV2Request
{
private string _applicationName;
private CloudWatchLoggingOption _cloudWatchLoggingOption;
private string _conditionalToken;
private long? _currentApplicationVersionId;
///
/// Gets and sets the property ApplicationName.
///
/// The Kinesis Data Analytics application name.
///
///
[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 CloudWatchLoggingOption.
///
/// Provides the Amazon CloudWatch log stream Amazon Resource Name (ARN).
///
///
[AWSProperty(Required=true)]
public CloudWatchLoggingOption CloudWatchLoggingOption
{
get { return this._cloudWatchLoggingOption; }
set { this._cloudWatchLoggingOption = value; }
}
// Check to see if CloudWatchLoggingOption property is set
internal bool IsSetCloudWatchLoggingOption()
{
return this._cloudWatchLoggingOption != null;
}
///
/// 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 version ID of the Kinesis Data Analytics application. 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;
}
}
}