/** * 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 #include #include namespace Aws { namespace Appflow { namespace Model { /** */ class UpdateFlowRequest : public AppflowRequest { public: AWS_APPFLOW_API UpdateFlowRequest(); // 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 "UpdateFlow"; } AWS_APPFLOW_API Aws::String SerializePayload() const override; /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline const Aws::String& GetFlowName() const{ return m_flowName; } /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline bool FlowNameHasBeenSet() const { return m_flowNameHasBeenSet; } /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline void SetFlowName(const Aws::String& value) { m_flowNameHasBeenSet = true; m_flowName = value; } /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline void SetFlowName(Aws::String&& value) { m_flowNameHasBeenSet = true; m_flowName = std::move(value); } /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline void SetFlowName(const char* value) { m_flowNameHasBeenSet = true; m_flowName.assign(value); } /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline UpdateFlowRequest& WithFlowName(const Aws::String& value) { SetFlowName(value); return *this;} /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline UpdateFlowRequest& WithFlowName(Aws::String&& value) { SetFlowName(std::move(value)); return *this;} /** *

The specified name of the flow. Spaces are not allowed. Use underscores (_) * or hyphens (-) only.

*/ inline UpdateFlowRequest& WithFlowName(const char* value) { SetFlowName(value); return *this;} /** *

A description of the flow.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

A description of the flow.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

A description of the flow.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

A description of the flow.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

A description of the flow.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

A description of the flow.

*/ inline UpdateFlowRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

A description of the flow.

*/ inline UpdateFlowRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

A description of the flow.

*/ inline UpdateFlowRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

The trigger settings that determine how and when the flow runs.

*/ inline const TriggerConfig& GetTriggerConfig() const{ return m_triggerConfig; } /** *

The trigger settings that determine how and when the flow runs.

*/ inline bool TriggerConfigHasBeenSet() const { return m_triggerConfigHasBeenSet; } /** *

The trigger settings that determine how and when the flow runs.

*/ inline void SetTriggerConfig(const TriggerConfig& value) { m_triggerConfigHasBeenSet = true; m_triggerConfig = value; } /** *

The trigger settings that determine how and when the flow runs.

*/ inline void SetTriggerConfig(TriggerConfig&& value) { m_triggerConfigHasBeenSet = true; m_triggerConfig = std::move(value); } /** *

The trigger settings that determine how and when the flow runs.

*/ inline UpdateFlowRequest& WithTriggerConfig(const TriggerConfig& value) { SetTriggerConfig(value); return *this;} /** *

The trigger settings that determine how and when the flow runs.

*/ inline UpdateFlowRequest& WithTriggerConfig(TriggerConfig&& value) { SetTriggerConfig(std::move(value)); return *this;} inline const SourceFlowConfig& GetSourceFlowConfig() const{ return m_sourceFlowConfig; } inline bool SourceFlowConfigHasBeenSet() const { return m_sourceFlowConfigHasBeenSet; } inline void SetSourceFlowConfig(const SourceFlowConfig& value) { m_sourceFlowConfigHasBeenSet = true; m_sourceFlowConfig = value; } inline void SetSourceFlowConfig(SourceFlowConfig&& value) { m_sourceFlowConfigHasBeenSet = true; m_sourceFlowConfig = std::move(value); } inline UpdateFlowRequest& WithSourceFlowConfig(const SourceFlowConfig& value) { SetSourceFlowConfig(value); return *this;} inline UpdateFlowRequest& WithSourceFlowConfig(SourceFlowConfig&& value) { SetSourceFlowConfig(std::move(value)); return *this;} /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline const Aws::Vector& GetDestinationFlowConfigList() const{ return m_destinationFlowConfigList; } /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline bool DestinationFlowConfigListHasBeenSet() const { return m_destinationFlowConfigListHasBeenSet; } /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline void SetDestinationFlowConfigList(const Aws::Vector& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList = value; } /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline void SetDestinationFlowConfigList(Aws::Vector&& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList = std::move(value); } /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline UpdateFlowRequest& WithDestinationFlowConfigList(const Aws::Vector& value) { SetDestinationFlowConfigList(value); return *this;} /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline UpdateFlowRequest& WithDestinationFlowConfigList(Aws::Vector&& value) { SetDestinationFlowConfigList(std::move(value)); return *this;} /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline UpdateFlowRequest& AddDestinationFlowConfigList(const DestinationFlowConfig& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList.push_back(value); return *this; } /** *

The configuration that controls how Amazon AppFlow transfers data to the * destination connector.

*/ inline UpdateFlowRequest& AddDestinationFlowConfigList(DestinationFlowConfig&& value) { m_destinationFlowConfigListHasBeenSet = true; m_destinationFlowConfigList.push_back(std::move(value)); return *this; } /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline const Aws::Vector& GetTasks() const{ return m_tasks; } /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline bool TasksHasBeenSet() const { return m_tasksHasBeenSet; } /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline void SetTasks(const Aws::Vector& value) { m_tasksHasBeenSet = true; m_tasks = value; } /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline void SetTasks(Aws::Vector&& value) { m_tasksHasBeenSet = true; m_tasks = std::move(value); } /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline UpdateFlowRequest& WithTasks(const Aws::Vector& value) { SetTasks(value); return *this;} /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline UpdateFlowRequest& WithTasks(Aws::Vector&& value) { SetTasks(std::move(value)); return *this;} /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline UpdateFlowRequest& AddTasks(const Task& value) { m_tasksHasBeenSet = true; m_tasks.push_back(value); return *this; } /** *

A list of tasks that Amazon AppFlow performs while transferring the data in * the flow run.

*/ inline UpdateFlowRequest& AddTasks(Task&& value) { m_tasksHasBeenSet = true; m_tasks.push_back(std::move(value)); return *this; } /** *

Specifies the configuration that Amazon AppFlow uses when it catalogs the * data that's transferred by the associated flow. When Amazon AppFlow catalogs the * data from a flow, it stores metadata in a data catalog.

*/ inline const MetadataCatalogConfig& GetMetadataCatalogConfig() const{ return m_metadataCatalogConfig; } /** *

Specifies the configuration that Amazon AppFlow uses when it catalogs the * data that's transferred by the associated flow. When Amazon AppFlow catalogs the * data from a flow, it stores metadata in a data catalog.

*/ inline bool MetadataCatalogConfigHasBeenSet() const { return m_metadataCatalogConfigHasBeenSet; } /** *

Specifies the configuration that Amazon AppFlow uses when it catalogs the * data that's transferred by the associated flow. When Amazon AppFlow catalogs the * data from a flow, it stores metadata in a data catalog.

*/ inline void SetMetadataCatalogConfig(const MetadataCatalogConfig& value) { m_metadataCatalogConfigHasBeenSet = true; m_metadataCatalogConfig = value; } /** *

Specifies the configuration that Amazon AppFlow uses when it catalogs the * data that's transferred by the associated flow. When Amazon AppFlow catalogs the * data from a flow, it stores metadata in a data catalog.

*/ inline void SetMetadataCatalogConfig(MetadataCatalogConfig&& value) { m_metadataCatalogConfigHasBeenSet = true; m_metadataCatalogConfig = std::move(value); } /** *

Specifies the configuration that Amazon AppFlow uses when it catalogs the * data that's transferred by the associated flow. When Amazon AppFlow catalogs the * data from a flow, it stores metadata in a data catalog.

*/ inline UpdateFlowRequest& WithMetadataCatalogConfig(const MetadataCatalogConfig& value) { SetMetadataCatalogConfig(value); return *this;} /** *

Specifies the configuration that Amazon AppFlow uses when it catalogs the * data that's transferred by the associated flow. When Amazon AppFlow catalogs the * data from a flow, it stores metadata in a data catalog.

*/ inline UpdateFlowRequest& WithMetadataCatalogConfig(MetadataCatalogConfig&& value) { SetMetadataCatalogConfig(std::move(value)); return *this;} /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline UpdateFlowRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline UpdateFlowRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateFlow request completes only once. You choose the * value to pass. For example, if you don't receive a response from your request, * you can safely retry the request with the same clientToken * parameter value.

If you omit a clientToken value, the Amazon * Web Services SDK that you are using inserts a value for you. This way, the SDK * can safely retry requests multiple times after a network error. You must provide * your own value for other use cases.

If you specify input parameters that * differ from your first request, an error occurs. If you use a different value * for clientToken, Amazon AppFlow considers it a new call to * UpdateFlow. The token is active for 8 hours.

*/ inline UpdateFlowRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_flowName; bool m_flowNameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; TriggerConfig m_triggerConfig; bool m_triggerConfigHasBeenSet = false; SourceFlowConfig m_sourceFlowConfig; bool m_sourceFlowConfigHasBeenSet = false; Aws::Vector m_destinationFlowConfigList; bool m_destinationFlowConfigListHasBeenSet = false; Aws::Vector m_tasks; bool m_tasksHasBeenSet = false; MetadataCatalogConfig m_metadataCatalogConfig; bool m_metadataCatalogConfigHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws