/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace KinesisAnalytics { namespace Model { /** */ class AddApplicationCloudWatchLoggingOptionRequest : public KinesisAnalyticsRequest { public: AWS_KINESISANALYTICS_API AddApplicationCloudWatchLoggingOptionRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "AddApplicationCloudWatchLoggingOption"; } AWS_KINESISANALYTICS_API Aws::String SerializePayload() const override; AWS_KINESISANALYTICS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Kinesis Analytics application name.

*/ inline const Aws::String& GetApplicationName() const{ return m_applicationName; } /** *

The Kinesis Analytics application name.

*/ inline bool ApplicationNameHasBeenSet() const { return m_applicationNameHasBeenSet; } /** *

The Kinesis Analytics application name.

*/ inline void SetApplicationName(const Aws::String& value) { m_applicationNameHasBeenSet = true; m_applicationName = value; } /** *

The Kinesis Analytics application name.

*/ inline void SetApplicationName(Aws::String&& value) { m_applicationNameHasBeenSet = true; m_applicationName = std::move(value); } /** *

The Kinesis Analytics application name.

*/ inline void SetApplicationName(const char* value) { m_applicationNameHasBeenSet = true; m_applicationName.assign(value); } /** *

The Kinesis Analytics application name.

*/ inline AddApplicationCloudWatchLoggingOptionRequest& WithApplicationName(const Aws::String& value) { SetApplicationName(value); return *this;} /** *

The Kinesis Analytics application name.

*/ inline AddApplicationCloudWatchLoggingOptionRequest& WithApplicationName(Aws::String&& value) { SetApplicationName(std::move(value)); return *this;} /** *

The Kinesis Analytics application name.

*/ inline AddApplicationCloudWatchLoggingOptionRequest& WithApplicationName(const char* value) { SetApplicationName(value); return *this;} /** *

The version ID of the Kinesis Analytics application.

*/ inline long long GetCurrentApplicationVersionId() const{ return m_currentApplicationVersionId; } /** *

The version ID of the Kinesis Analytics application.

*/ inline bool CurrentApplicationVersionIdHasBeenSet() const { return m_currentApplicationVersionIdHasBeenSet; } /** *

The version ID of the Kinesis Analytics application.

*/ inline void SetCurrentApplicationVersionId(long long value) { m_currentApplicationVersionIdHasBeenSet = true; m_currentApplicationVersionId = value; } /** *

The version ID of the Kinesis Analytics application.

*/ inline AddApplicationCloudWatchLoggingOptionRequest& WithCurrentApplicationVersionId(long long value) { SetCurrentApplicationVersionId(value); return *this;} /** *

Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM * role ARN. Note: To write application messages to CloudWatch, the IAM role that * is used must have the PutLogEvents policy action enabled.

*/ inline const CloudWatchLoggingOption& GetCloudWatchLoggingOption() const{ return m_cloudWatchLoggingOption; } /** *

Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM * role ARN. Note: To write application messages to CloudWatch, the IAM role that * is used must have the PutLogEvents policy action enabled.

*/ inline bool CloudWatchLoggingOptionHasBeenSet() const { return m_cloudWatchLoggingOptionHasBeenSet; } /** *

Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM * role ARN. Note: To write application messages to CloudWatch, the IAM role that * is used must have the PutLogEvents policy action enabled.

*/ inline void SetCloudWatchLoggingOption(const CloudWatchLoggingOption& value) { m_cloudWatchLoggingOptionHasBeenSet = true; m_cloudWatchLoggingOption = value; } /** *

Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM * role ARN. Note: To write application messages to CloudWatch, the IAM role that * is used must have the PutLogEvents policy action enabled.

*/ inline void SetCloudWatchLoggingOption(CloudWatchLoggingOption&& value) { m_cloudWatchLoggingOptionHasBeenSet = true; m_cloudWatchLoggingOption = std::move(value); } /** *

Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM * role ARN. Note: To write application messages to CloudWatch, the IAM role that * is used must have the PutLogEvents policy action enabled.

*/ inline AddApplicationCloudWatchLoggingOptionRequest& WithCloudWatchLoggingOption(const CloudWatchLoggingOption& value) { SetCloudWatchLoggingOption(value); return *this;} /** *

Provides the CloudWatch log stream Amazon Resource Name (ARN) and the IAM * role ARN. Note: To write application messages to CloudWatch, the IAM role that * is used must have the PutLogEvents policy action enabled.

*/ inline AddApplicationCloudWatchLoggingOptionRequest& WithCloudWatchLoggingOption(CloudWatchLoggingOption&& value) { SetCloudWatchLoggingOption(std::move(value)); return *this;} private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; long long m_currentApplicationVersionId; bool m_currentApplicationVersionIdHasBeenSet = false; CloudWatchLoggingOption m_cloudWatchLoggingOption; bool m_cloudWatchLoggingOptionHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalytics } // namespace Aws