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

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline const Aws::String& GetConnectorProfileName() const{ return m_connectorProfileName; } /** *

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline bool ConnectorProfileNameHasBeenSet() const { return m_connectorProfileNameHasBeenSet; } /** *

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline void SetConnectorProfileName(const Aws::String& value) { m_connectorProfileNameHasBeenSet = true; m_connectorProfileName = value; } /** *

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline void SetConnectorProfileName(Aws::String&& value) { m_connectorProfileNameHasBeenSet = true; m_connectorProfileName = std::move(value); } /** *

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline void SetConnectorProfileName(const char* value) { m_connectorProfileNameHasBeenSet = true; m_connectorProfileName.assign(value); } /** *

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline UpdateConnectorProfileRequest& WithConnectorProfileName(const Aws::String& value) { SetConnectorProfileName(value); return *this;} /** *

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline UpdateConnectorProfileRequest& WithConnectorProfileName(Aws::String&& value) { SetConnectorProfileName(std::move(value)); return *this;} /** *

The name of the connector profile and is unique for each * ConnectorProfile in the Amazon Web Services account.

*/ inline UpdateConnectorProfileRequest& WithConnectorProfileName(const char* value) { SetConnectorProfileName(value); return *this;} /** *

Indicates the connection mode and if it is public or private.

*/ inline const ConnectionMode& GetConnectionMode() const{ return m_connectionMode; } /** *

Indicates the connection mode and if it is public or private.

*/ inline bool ConnectionModeHasBeenSet() const { return m_connectionModeHasBeenSet; } /** *

Indicates the connection mode and if it is public or private.

*/ inline void SetConnectionMode(const ConnectionMode& value) { m_connectionModeHasBeenSet = true; m_connectionMode = value; } /** *

Indicates the connection mode and if it is public or private.

*/ inline void SetConnectionMode(ConnectionMode&& value) { m_connectionModeHasBeenSet = true; m_connectionMode = std::move(value); } /** *

Indicates the connection mode and if it is public or private.

*/ inline UpdateConnectorProfileRequest& WithConnectionMode(const ConnectionMode& value) { SetConnectionMode(value); return *this;} /** *

Indicates the connection mode and if it is public or private.

*/ inline UpdateConnectorProfileRequest& WithConnectionMode(ConnectionMode&& value) { SetConnectionMode(std::move(value)); return *this;} /** *

Defines the connector-specific profile configuration and credentials.

*/ inline const ConnectorProfileConfig& GetConnectorProfileConfig() const{ return m_connectorProfileConfig; } /** *

Defines the connector-specific profile configuration and credentials.

*/ inline bool ConnectorProfileConfigHasBeenSet() const { return m_connectorProfileConfigHasBeenSet; } /** *

Defines the connector-specific profile configuration and credentials.

*/ inline void SetConnectorProfileConfig(const ConnectorProfileConfig& value) { m_connectorProfileConfigHasBeenSet = true; m_connectorProfileConfig = value; } /** *

Defines the connector-specific profile configuration and credentials.

*/ inline void SetConnectorProfileConfig(ConnectorProfileConfig&& value) { m_connectorProfileConfigHasBeenSet = true; m_connectorProfileConfig = std::move(value); } /** *

Defines the connector-specific profile configuration and credentials.

*/ inline UpdateConnectorProfileRequest& WithConnectorProfileConfig(const ConnectorProfileConfig& value) { SetConnectorProfileConfig(value); return *this;} /** *

Defines the connector-specific profile configuration and credentials.

*/ inline UpdateConnectorProfileRequest& WithConnectorProfileConfig(ConnectorProfileConfig&& value) { SetConnectorProfileConfig(std::move(value)); return *this;} /** *

The clientToken parameter is an idempotency token. It ensures * that your UpdateConnectorProfile 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 * UpdateConnectorProfile. 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 UpdateConnectorProfile 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 * UpdateConnectorProfile. 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 UpdateConnectorProfile 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 * UpdateConnectorProfile. 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 UpdateConnectorProfile 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 * UpdateConnectorProfile. 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 UpdateConnectorProfile 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 * UpdateConnectorProfile. 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 UpdateConnectorProfile 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 * UpdateConnectorProfile. The token is active for 8 hours.

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

The clientToken parameter is an idempotency token. It ensures * that your UpdateConnectorProfile 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 * UpdateConnectorProfile. The token is active for 8 hours.

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

The clientToken parameter is an idempotency token. It ensures * that your UpdateConnectorProfile 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 * UpdateConnectorProfile. The token is active for 8 hours.

*/ inline UpdateConnectorProfileRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} private: Aws::String m_connectorProfileName; bool m_connectorProfileNameHasBeenSet = false; ConnectionMode m_connectionMode; bool m_connectionModeHasBeenSet = false; ConnectorProfileConfig m_connectorProfileConfig; bool m_connectorProfileConfigHasBeenSet = false; Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; }; } // namespace Model } // namespace Appflow } // namespace Aws