/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include #include namespace Aws { namespace KinesisAnalyticsV2 { namespace Model { /** */ class AWS_KINESISANALYTICSV2_API CreateApplicationRequest : public KinesisAnalyticsV2Request { public: CreateApplicationRequest(); // 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 "CreateApplication"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of your application (for example, sample-app).

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

The name of your application (for example, sample-app).

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

The name of your application (for example, sample-app).

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

The name of your application (for example, sample-app).

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

The name of your application (for example, sample-app).

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

The name of your application (for example, sample-app).

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

The name of your application (for example, sample-app).

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

The name of your application (for example, sample-app).

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

A summary description of the application.

*/ inline const Aws::String& GetApplicationDescription() const{ return m_applicationDescription; } /** *

A summary description of the application.

*/ inline bool ApplicationDescriptionHasBeenSet() const { return m_applicationDescriptionHasBeenSet; } /** *

A summary description of the application.

*/ inline void SetApplicationDescription(const Aws::String& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = value; } /** *

A summary description of the application.

*/ inline void SetApplicationDescription(Aws::String&& value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription = std::move(value); } /** *

A summary description of the application.

*/ inline void SetApplicationDescription(const char* value) { m_applicationDescriptionHasBeenSet = true; m_applicationDescription.assign(value); } /** *

A summary description of the application.

*/ inline CreateApplicationRequest& WithApplicationDescription(const Aws::String& value) { SetApplicationDescription(value); return *this;} /** *

A summary description of the application.

*/ inline CreateApplicationRequest& WithApplicationDescription(Aws::String&& value) { SetApplicationDescription(std::move(value)); return *this;} /** *

A summary description of the application.

*/ inline CreateApplicationRequest& WithApplicationDescription(const char* value) { SetApplicationDescription(value); return *this;} /** *

The runtime environment for the application (SQL-1.0 or * FLINK-1_6).

*/ inline const RuntimeEnvironment& GetRuntimeEnvironment() const{ return m_runtimeEnvironment; } /** *

The runtime environment for the application (SQL-1.0 or * FLINK-1_6).

*/ inline bool RuntimeEnvironmentHasBeenSet() const { return m_runtimeEnvironmentHasBeenSet; } /** *

The runtime environment for the application (SQL-1.0 or * FLINK-1_6).

*/ inline void SetRuntimeEnvironment(const RuntimeEnvironment& value) { m_runtimeEnvironmentHasBeenSet = true; m_runtimeEnvironment = value; } /** *

The runtime environment for the application (SQL-1.0 or * FLINK-1_6).

*/ inline void SetRuntimeEnvironment(RuntimeEnvironment&& value) { m_runtimeEnvironmentHasBeenSet = true; m_runtimeEnvironment = std::move(value); } /** *

The runtime environment for the application (SQL-1.0 or * FLINK-1_6).

*/ inline CreateApplicationRequest& WithRuntimeEnvironment(const RuntimeEnvironment& value) { SetRuntimeEnvironment(value); return *this;} /** *

The runtime environment for the application (SQL-1.0 or * FLINK-1_6).

*/ inline CreateApplicationRequest& WithRuntimeEnvironment(RuntimeEnvironment&& value) { SetRuntimeEnvironment(std::move(value)); return *this;} /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline const Aws::String& GetServiceExecutionRole() const{ return m_serviceExecutionRole; } /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline bool ServiceExecutionRoleHasBeenSet() const { return m_serviceExecutionRoleHasBeenSet; } /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline void SetServiceExecutionRole(const Aws::String& value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole = value; } /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline void SetServiceExecutionRole(Aws::String&& value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole = std::move(value); } /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline void SetServiceExecutionRole(const char* value) { m_serviceExecutionRoleHasBeenSet = true; m_serviceExecutionRole.assign(value); } /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline CreateApplicationRequest& WithServiceExecutionRole(const Aws::String& value) { SetServiceExecutionRole(value); return *this;} /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline CreateApplicationRequest& WithServiceExecutionRole(Aws::String&& value) { SetServiceExecutionRole(std::move(value)); return *this;} /** *

The IAM role used by the application to access Kinesis data streams, Kinesis * Data Firehose delivery streams, Amazon S3 objects, and other external * resources.

*/ inline CreateApplicationRequest& WithServiceExecutionRole(const char* value) { SetServiceExecutionRole(value); return *this;} /** *

Use this parameter to configure the application.

*/ inline const ApplicationConfiguration& GetApplicationConfiguration() const{ return m_applicationConfiguration; } /** *

Use this parameter to configure the application.

*/ inline bool ApplicationConfigurationHasBeenSet() const { return m_applicationConfigurationHasBeenSet; } /** *

Use this parameter to configure the application.

*/ inline void SetApplicationConfiguration(const ApplicationConfiguration& value) { m_applicationConfigurationHasBeenSet = true; m_applicationConfiguration = value; } /** *

Use this parameter to configure the application.

*/ inline void SetApplicationConfiguration(ApplicationConfiguration&& value) { m_applicationConfigurationHasBeenSet = true; m_applicationConfiguration = std::move(value); } /** *

Use this parameter to configure the application.

*/ inline CreateApplicationRequest& WithApplicationConfiguration(const ApplicationConfiguration& value) { SetApplicationConfiguration(value); return *this;} /** *

Use this parameter to configure the application.

*/ inline CreateApplicationRequest& WithApplicationConfiguration(ApplicationConfiguration&& value) { SetApplicationConfiguration(std::move(value)); return *this;} /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline const Aws::Vector& GetCloudWatchLoggingOptions() const{ return m_cloudWatchLoggingOptions; } /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline bool CloudWatchLoggingOptionsHasBeenSet() const { return m_cloudWatchLoggingOptionsHasBeenSet; } /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline void SetCloudWatchLoggingOptions(const Aws::Vector& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = value; } /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline void SetCloudWatchLoggingOptions(Aws::Vector&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions = std::move(value); } /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline CreateApplicationRequest& WithCloudWatchLoggingOptions(const Aws::Vector& value) { SetCloudWatchLoggingOptions(value); return *this;} /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline CreateApplicationRequest& WithCloudWatchLoggingOptions(Aws::Vector&& value) { SetCloudWatchLoggingOptions(std::move(value)); return *this;} /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline CreateApplicationRequest& AddCloudWatchLoggingOptions(const CloudWatchLoggingOption& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions.push_back(value); return *this; } /** *

Use this parameter to configure an Amazon CloudWatch log stream to monitor * application configuration errors.

*/ inline CreateApplicationRequest& AddCloudWatchLoggingOptions(CloudWatchLoggingOption&& value) { m_cloudWatchLoggingOptionsHasBeenSet = true; m_cloudWatchLoggingOptions.push_back(std::move(value)); return *this; } /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline CreateApplicationRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline CreateApplicationRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline CreateApplicationRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of one or more tags to assign to the application. A tag is a key-value * pair that identifies an application. Note that the maximum number of application * tags includes system tags. The maximum number of user-defined application tags * is 50. For more information, see Using * Tagging.

*/ inline CreateApplicationRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet; Aws::String m_applicationDescription; bool m_applicationDescriptionHasBeenSet; RuntimeEnvironment m_runtimeEnvironment; bool m_runtimeEnvironmentHasBeenSet; Aws::String m_serviceExecutionRole; bool m_serviceExecutionRoleHasBeenSet; ApplicationConfiguration m_applicationConfiguration; bool m_applicationConfigurationHasBeenSet; Aws::Vector m_cloudWatchLoggingOptions; bool m_cloudWatchLoggingOptionsHasBeenSet; Aws::Vector m_tags; bool m_tagsHasBeenSet; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws