/** * 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 CreateApiDestinationRequest : public CloudWatchEventsRequest { public: AWS_CLOUDWATCHEVENTS_API CreateApiDestinationRequest(); // 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 "CreateApiDestination"; } AWS_CLOUDWATCHEVENTS_API Aws::String SerializePayload() const override; AWS_CLOUDWATCHEVENTS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name for the API destination to create.

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

The name for the API destination to create.

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

The name for the API destination to create.

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

The name for the API destination to create.

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

The name for the API destination to create.

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

The name for the API destination to create.

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

The name for the API destination to create.

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

The name for the API destination to create.

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

A description for the API destination to create.

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

A description for the API destination to create.

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

A description for the API destination to create.

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

A description for the API destination to create.

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

A description for the API destination to create.

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

A description for the API destination to create.

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

A description for the API destination to create.

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

A description for the API destination to create.

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

The ARN of the connection to use for the API destination. The destination * endpoint must support the authorization type specified for the connection.

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

The ARN of the connection to use for the API destination. The destination * endpoint must support the authorization type specified for the connection.

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

The ARN of the connection to use for the API destination. The destination * endpoint must support the authorization type specified for the connection.

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

The ARN of the connection to use for the API destination. The destination * endpoint must support the authorization type specified for the connection.

*/ 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. The destination * endpoint must support the authorization type specified for the connection.

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

The ARN of the connection to use for the API destination. The destination * endpoint must support the authorization type specified for the connection.

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

The ARN of the connection to use for the API destination. The destination * endpoint must support the authorization type specified for the connection.

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

The ARN of the connection to use for the API destination. The destination * endpoint must support the authorization type specified for the connection.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The URL to the HTTP invocation endpoint for the API destination.

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

The method to use for the request to the HTTP invocation endpoint.

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

The method to use for the request to the HTTP invocation endpoint.

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

The method to use for the request to the HTTP invocation endpoint.

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

The method to use for the request to the HTTP invocation endpoint.

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

The method to use for the request to the HTTP invocation endpoint.

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

The method to use for the request to the HTTP invocation endpoint.

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

The maximum number of requests per second to send to the HTTP invocation * endpoint.

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

The maximum number of requests per second to send to the HTTP invocation * endpoint.

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

The maximum number of requests per second to send to the HTTP invocation * endpoint.

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

The maximum number of requests per second to send to the HTTP invocation * endpoint.

*/ inline CreateApiDestinationRequest& 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