/** * 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 namespace Aws { namespace KinesisAnalyticsV2 { namespace Model { /** */ class UpdateApplicationRequest : public KinesisAnalyticsV2Request { public: AWS_KINESISANALYTICSV2_API UpdateApplicationRequest(); // 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 "UpdateApplication"; } AWS_KINESISANALYTICSV2_API Aws::String SerializePayload() const override; AWS_KINESISANALYTICSV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the application to update.

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

The name of the application to update.

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

The name of the application to update.

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

The name of the application to update.

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

The name of the application to update.

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

The name of the application to update.

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

The name of the application to update.

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

The name of the application to update.

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

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.

*/ inline long long GetCurrentApplicationVersionId() const{ return m_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.

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

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.

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

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.

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

Describes application configuration updates.

*/ inline const ApplicationConfigurationUpdate& GetApplicationConfigurationUpdate() const{ return m_applicationConfigurationUpdate; } /** *

Describes application configuration updates.

*/ inline bool ApplicationConfigurationUpdateHasBeenSet() const { return m_applicationConfigurationUpdateHasBeenSet; } /** *

Describes application configuration updates.

*/ inline void SetApplicationConfigurationUpdate(const ApplicationConfigurationUpdate& value) { m_applicationConfigurationUpdateHasBeenSet = true; m_applicationConfigurationUpdate = value; } /** *

Describes application configuration updates.

*/ inline void SetApplicationConfigurationUpdate(ApplicationConfigurationUpdate&& value) { m_applicationConfigurationUpdateHasBeenSet = true; m_applicationConfigurationUpdate = std::move(value); } /** *

Describes application configuration updates.

*/ inline UpdateApplicationRequest& WithApplicationConfigurationUpdate(const ApplicationConfigurationUpdate& value) { SetApplicationConfigurationUpdate(value); return *this;} /** *

Describes application configuration updates.

*/ inline UpdateApplicationRequest& WithApplicationConfigurationUpdate(ApplicationConfigurationUpdate&& value) { SetApplicationConfigurationUpdate(std::move(value)); return *this;} /** *

Describes updates to the service execution role.

*/ inline const Aws::String& GetServiceExecutionRoleUpdate() const{ return m_serviceExecutionRoleUpdate; } /** *

Describes updates to the service execution role.

*/ inline bool ServiceExecutionRoleUpdateHasBeenSet() const { return m_serviceExecutionRoleUpdateHasBeenSet; } /** *

Describes updates to the service execution role.

*/ inline void SetServiceExecutionRoleUpdate(const Aws::String& value) { m_serviceExecutionRoleUpdateHasBeenSet = true; m_serviceExecutionRoleUpdate = value; } /** *

Describes updates to the service execution role.

*/ inline void SetServiceExecutionRoleUpdate(Aws::String&& value) { m_serviceExecutionRoleUpdateHasBeenSet = true; m_serviceExecutionRoleUpdate = std::move(value); } /** *

Describes updates to the service execution role.

*/ inline void SetServiceExecutionRoleUpdate(const char* value) { m_serviceExecutionRoleUpdateHasBeenSet = true; m_serviceExecutionRoleUpdate.assign(value); } /** *

Describes updates to the service execution role.

*/ inline UpdateApplicationRequest& WithServiceExecutionRoleUpdate(const Aws::String& value) { SetServiceExecutionRoleUpdate(value); return *this;} /** *

Describes updates to the service execution role.

*/ inline UpdateApplicationRequest& WithServiceExecutionRoleUpdate(Aws::String&& value) { SetServiceExecutionRoleUpdate(std::move(value)); return *this;} /** *

Describes updates to the service execution role.

*/ inline UpdateApplicationRequest& WithServiceExecutionRoleUpdate(const char* value) { SetServiceExecutionRoleUpdate(value); return *this;} /** *

Describes updates to the application's starting parameters.

*/ inline const RunConfigurationUpdate& GetRunConfigurationUpdate() const{ return m_runConfigurationUpdate; } /** *

Describes updates to the application's starting parameters.

*/ inline bool RunConfigurationUpdateHasBeenSet() const { return m_runConfigurationUpdateHasBeenSet; } /** *

Describes updates to the application's starting parameters.

*/ inline void SetRunConfigurationUpdate(const RunConfigurationUpdate& value) { m_runConfigurationUpdateHasBeenSet = true; m_runConfigurationUpdate = value; } /** *

Describes updates to the application's starting parameters.

*/ inline void SetRunConfigurationUpdate(RunConfigurationUpdate&& value) { m_runConfigurationUpdateHasBeenSet = true; m_runConfigurationUpdate = std::move(value); } /** *

Describes updates to the application's starting parameters.

*/ inline UpdateApplicationRequest& WithRunConfigurationUpdate(const RunConfigurationUpdate& value) { SetRunConfigurationUpdate(value); return *this;} /** *

Describes updates to the application's starting parameters.

*/ inline UpdateApplicationRequest& WithRunConfigurationUpdate(RunConfigurationUpdate&& value) { SetRunConfigurationUpdate(std::move(value)); return *this;} /** *

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.

*/ inline const Aws::Vector& GetCloudWatchLoggingOptionUpdates() const{ return m_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.

*/ inline bool CloudWatchLoggingOptionUpdatesHasBeenSet() const { return m_cloudWatchLoggingOptionUpdatesHasBeenSet; } /** *

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.

*/ inline void SetCloudWatchLoggingOptionUpdates(const Aws::Vector& value) { m_cloudWatchLoggingOptionUpdatesHasBeenSet = true; m_cloudWatchLoggingOptionUpdates = value; } /** *

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.

*/ inline void SetCloudWatchLoggingOptionUpdates(Aws::Vector&& value) { m_cloudWatchLoggingOptionUpdatesHasBeenSet = true; m_cloudWatchLoggingOptionUpdates = std::move(value); } /** *

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.

*/ inline UpdateApplicationRequest& WithCloudWatchLoggingOptionUpdates(const Aws::Vector& value) { SetCloudWatchLoggingOptionUpdates(value); return *this;} /** *

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.

*/ inline UpdateApplicationRequest& WithCloudWatchLoggingOptionUpdates(Aws::Vector&& value) { SetCloudWatchLoggingOptionUpdates(std::move(value)); return *this;} /** *

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.

*/ inline UpdateApplicationRequest& AddCloudWatchLoggingOptionUpdates(const CloudWatchLoggingOptionUpdate& value) { m_cloudWatchLoggingOptionUpdatesHasBeenSet = true; m_cloudWatchLoggingOptionUpdates.push_back(value); return *this; } /** *

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.

*/ inline UpdateApplicationRequest& AddCloudWatchLoggingOptionUpdates(CloudWatchLoggingOptionUpdate&& value) { m_cloudWatchLoggingOptionUpdatesHasBeenSet = true; m_cloudWatchLoggingOptionUpdates.push_back(std::move(value)); return *this; } /** *

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.

*/ inline const Aws::String& GetConditionalToken() const{ return m_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.

*/ inline bool ConditionalTokenHasBeenSet() const { return m_conditionalTokenHasBeenSet; } /** *

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.

*/ inline void SetConditionalToken(const Aws::String& value) { m_conditionalTokenHasBeenSet = true; m_conditionalToken = value; } /** *

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.

*/ inline void SetConditionalToken(Aws::String&& value) { m_conditionalTokenHasBeenSet = true; m_conditionalToken = std::move(value); } /** *

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.

*/ inline void SetConditionalToken(const char* value) { m_conditionalTokenHasBeenSet = true; m_conditionalToken.assign(value); } /** *

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.

*/ inline UpdateApplicationRequest& WithConditionalToken(const Aws::String& value) { SetConditionalToken(value); return *this;} /** *

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.

*/ inline UpdateApplicationRequest& WithConditionalToken(Aws::String&& value) { SetConditionalToken(std::move(value)); return *this;} /** *

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.

*/ inline UpdateApplicationRequest& WithConditionalToken(const char* value) { SetConditionalToken(value); return *this;} private: Aws::String m_applicationName; bool m_applicationNameHasBeenSet = false; long long m_currentApplicationVersionId; bool m_currentApplicationVersionIdHasBeenSet = false; ApplicationConfigurationUpdate m_applicationConfigurationUpdate; bool m_applicationConfigurationUpdateHasBeenSet = false; Aws::String m_serviceExecutionRoleUpdate; bool m_serviceExecutionRoleUpdateHasBeenSet = false; RunConfigurationUpdate m_runConfigurationUpdate; bool m_runConfigurationUpdateHasBeenSet = false; Aws::Vector m_cloudWatchLoggingOptionUpdates; bool m_cloudWatchLoggingOptionUpdatesHasBeenSet = false; Aws::String m_conditionalToken; bool m_conditionalTokenHasBeenSet = false; }; } // namespace Model } // namespace KinesisAnalyticsV2 } // namespace Aws