/** * 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 CloudWatchEvents { namespace Model { /** */ class UpdateApiDestinationRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API UpdateApiDestinationRequest(); // 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 "UpdateApiDestination"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name of the API destination to update.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the API destination to update.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the API destination to update.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the API destination to update.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the API destination to update.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the API destination to update.

*/ inline UpdateApiDestinationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the API destination to update.

*/ inline UpdateApiDestinationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the API destination to update.

*/ inline UpdateApiDestinationRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The name of the API destination to update.

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

The name of the API destination to update.

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

The name of the API destination to update.

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

The name of the API destination to update.

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

The name of the API destination to update.

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

The name of the API destination to update.

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

The name of the API destination to update.

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

The name of the API destination to update.

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

The ARN of the connection to use for the API destination.

*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *

The ARN of the connection to use for the API destination.

*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *

The ARN of the connection to use for the API destination.

*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *

The ARN of the connection to use for the API destination.

*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *

The ARN of the connection to use for the API destination.

*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *

The ARN of the connection to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *

The ARN of the connection to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *

The ARN of the connection to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *

The URL to the endpoint to use for the API destination.

*/ inline const Aws::String& GetInvocationEndpoint() const{ return m_invocationEndpoint; } /** *

The URL to the endpoint to use for the API destination.

*/ inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; } /** *

The URL to the endpoint to use for the API destination.

*/ inline void SetInvocationEndpoint(const Aws::String& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = value; } /** *

The URL to the endpoint to use for the API destination.

*/ inline void SetInvocationEndpoint(Aws::String&& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = std::move(value); } /** *

The URL to the endpoint to use for the API destination.

*/ inline void SetInvocationEndpoint(const char* value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint.assign(value); } /** *

The URL to the endpoint to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithInvocationEndpoint(const Aws::String& value) { SetInvocationEndpoint(value); return *this;} /** *

The URL to the endpoint to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithInvocationEndpoint(Aws::String&& value) { SetInvocationEndpoint(std::move(value)); return *this;} /** *

The URL to the endpoint to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithInvocationEndpoint(const char* value) { SetInvocationEndpoint(value); return *this;} /** *

The method to use for the API destination.

*/ inline const ApiDestinationHttpMethod& GetHttpMethod() const{ return m_httpMethod; } /** *

The method to use for the API destination.

*/ inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; } /** *

The method to use for the API destination.

*/ inline void SetHttpMethod(const ApiDestinationHttpMethod& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; } /** *

The method to use for the API destination.

*/ inline void SetHttpMethod(ApiDestinationHttpMethod&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); } /** *

The method to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithHttpMethod(const ApiDestinationHttpMethod& value) { SetHttpMethod(value); return *this;} /** *

The method to use for the API destination.

*/ inline UpdateApiDestinationRequest& WithHttpMethod(ApiDestinationHttpMethod&& value) { SetHttpMethod(std::move(value)); return *this;} /** *

The maximum number of invocations per second to send to the API * destination.

*/ inline int GetInvocationRateLimitPerSecond() const{ return m_invocationRateLimitPerSecond; } /** *

The maximum number of invocations per second to send to the API * destination.

*/ inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; } /** *

The maximum number of invocations per second to send to the API * destination.

*/ inline void SetInvocationRateLimitPerSecond(int value) { m_invocationRateLimitPerSecondHasBeenSet = true; m_invocationRateLimitPerSecond = value; } /** *

The maximum number of invocations per second to send to the API * destination.

*/ inline UpdateApiDestinationRequest& WithInvocationRateLimitPerSecond(int value) { SetInvocationRateLimitPerSecond(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_connectionArn; bool m_connectionArnHasBeenSet = false; Aws::String m_invocationEndpoint; bool m_invocationEndpointHasBeenSet = false; ApiDestinationHttpMethod m_httpMethod; bool m_httpMethodHasBeenSet = false; int m_invocationRateLimitPerSecond; bool m_invocationRateLimitPerSecondHasBeenSet = false; }; } // namespace Model } // namespace CloudWatchEvents } // namespace Aws