/** * 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 Http { class URI; } //namespace Http namespace KafkaConnect { namespace Model { /** */ class UpdateConnectorRequest : public KafkaConnectRequest { public: AWS_KAFKACONNECT_API UpdateConnectorRequest(); // 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 "UpdateConnector"; } AWS_KAFKACONNECT_API Aws::String SerializePayload() const override; AWS_KAFKACONNECT_API void AddQueryStringParameters(Aws::Http::URI& uri) const override; /** *

The target capacity.

*/ inline const CapacityUpdate& GetCapacity() const{ return m_capacity; } /** *

The target capacity.

*/ inline bool CapacityHasBeenSet() const { return m_capacityHasBeenSet; } /** *

The target capacity.

*/ inline void SetCapacity(const CapacityUpdate& value) { m_capacityHasBeenSet = true; m_capacity = value; } /** *

The target capacity.

*/ inline void SetCapacity(CapacityUpdate&& value) { m_capacityHasBeenSet = true; m_capacity = std::move(value); } /** *

The target capacity.

*/ inline UpdateConnectorRequest& WithCapacity(const CapacityUpdate& value) { SetCapacity(value); return *this;} /** *

The target capacity.

*/ inline UpdateConnectorRequest& WithCapacity(CapacityUpdate&& value) { SetCapacity(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline const Aws::String& GetConnectorArn() const{ return m_connectorArn; } /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline bool ConnectorArnHasBeenSet() const { return m_connectorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline void SetConnectorArn(const Aws::String& value) { m_connectorArnHasBeenSet = true; m_connectorArn = value; } /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline void SetConnectorArn(Aws::String&& value) { m_connectorArnHasBeenSet = true; m_connectorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline void SetConnectorArn(const char* value) { m_connectorArnHasBeenSet = true; m_connectorArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline UpdateConnectorRequest& WithConnectorArn(const Aws::String& value) { SetConnectorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline UpdateConnectorRequest& WithConnectorArn(Aws::String&& value) { SetConnectorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the connector that you want to update.

*/ inline UpdateConnectorRequest& WithConnectorArn(const char* value) { SetConnectorArn(value); return *this;} /** *

The current version of the connector that you want to update.

*/ inline const Aws::String& GetCurrentVersion() const{ return m_currentVersion; } /** *

The current version of the connector that you want to update.

*/ inline bool CurrentVersionHasBeenSet() const { return m_currentVersionHasBeenSet; } /** *

The current version of the connector that you want to update.

*/ inline void SetCurrentVersion(const Aws::String& value) { m_currentVersionHasBeenSet = true; m_currentVersion = value; } /** *

The current version of the connector that you want to update.

*/ inline void SetCurrentVersion(Aws::String&& value) { m_currentVersionHasBeenSet = true; m_currentVersion = std::move(value); } /** *

The current version of the connector that you want to update.

*/ inline void SetCurrentVersion(const char* value) { m_currentVersionHasBeenSet = true; m_currentVersion.assign(value); } /** *

The current version of the connector that you want to update.

*/ inline UpdateConnectorRequest& WithCurrentVersion(const Aws::String& value) { SetCurrentVersion(value); return *this;} /** *

The current version of the connector that you want to update.

*/ inline UpdateConnectorRequest& WithCurrentVersion(Aws::String&& value) { SetCurrentVersion(std::move(value)); return *this;} /** *

The current version of the connector that you want to update.

*/ inline UpdateConnectorRequest& WithCurrentVersion(const char* value) { SetCurrentVersion(value); return *this;} private: CapacityUpdate m_capacity; bool m_capacityHasBeenSet = false; Aws::String m_connectorArn; bool m_connectorArnHasBeenSet = false; Aws::String m_currentVersion; bool m_currentVersionHasBeenSet = false; }; } // namespace Model } // namespace KafkaConnect } // namespace Aws