/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains details about an API destination.See Also:
AWS
* API Reference
The ARN of the API destination.
*/ inline const Aws::String& GetApiDestinationArn() const{ return m_apiDestinationArn; } /** *The ARN of the API destination.
*/ inline bool ApiDestinationArnHasBeenSet() const { return m_apiDestinationArnHasBeenSet; } /** *The ARN of the API destination.
*/ inline void SetApiDestinationArn(const Aws::String& value) { m_apiDestinationArnHasBeenSet = true; m_apiDestinationArn = value; } /** *The ARN of the API destination.
*/ inline void SetApiDestinationArn(Aws::String&& value) { m_apiDestinationArnHasBeenSet = true; m_apiDestinationArn = std::move(value); } /** *The ARN of the API destination.
*/ inline void SetApiDestinationArn(const char* value) { m_apiDestinationArnHasBeenSet = true; m_apiDestinationArn.assign(value); } /** *The ARN of the API destination.
*/ inline ApiDestination& WithApiDestinationArn(const Aws::String& value) { SetApiDestinationArn(value); return *this;} /** *The ARN of the API destination.
*/ inline ApiDestination& WithApiDestinationArn(Aws::String&& value) { SetApiDestinationArn(std::move(value)); return *this;} /** *The ARN of the API destination.
*/ inline ApiDestination& WithApiDestinationArn(const char* value) { SetApiDestinationArn(value); return *this;} /** *The name of the API destination.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the API destination.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the API destination.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the API destination.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the API destination.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the API destination.
*/ inline ApiDestination& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the API destination.
*/ inline ApiDestination& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the API destination.
*/ inline ApiDestination& WithName(const char* value) { SetName(value); return *this;} /** *The state of the API destination.
*/ inline const ApiDestinationState& GetApiDestinationState() const{ return m_apiDestinationState; } /** *The state of the API destination.
*/ inline bool ApiDestinationStateHasBeenSet() const { return m_apiDestinationStateHasBeenSet; } /** *The state of the API destination.
*/ inline void SetApiDestinationState(const ApiDestinationState& value) { m_apiDestinationStateHasBeenSet = true; m_apiDestinationState = value; } /** *The state of the API destination.
*/ inline void SetApiDestinationState(ApiDestinationState&& value) { m_apiDestinationStateHasBeenSet = true; m_apiDestinationState = std::move(value); } /** *The state of the API destination.
*/ inline ApiDestination& WithApiDestinationState(const ApiDestinationState& value) { SetApiDestinationState(value); return *this;} /** *The state of the API destination.
*/ inline ApiDestination& WithApiDestinationState(ApiDestinationState&& value) { SetApiDestinationState(std::move(value)); return *this;} /** *The ARN of the connection specified for the API destination.
*/ inline const Aws::String& GetConnectionArn() const{ return m_connectionArn; } /** *The ARN of the connection specified for the API destination.
*/ inline bool ConnectionArnHasBeenSet() const { return m_connectionArnHasBeenSet; } /** *The ARN of the connection specified for the API destination.
*/ inline void SetConnectionArn(const Aws::String& value) { m_connectionArnHasBeenSet = true; m_connectionArn = value; } /** *The ARN of the connection specified for the API destination.
*/ inline void SetConnectionArn(Aws::String&& value) { m_connectionArnHasBeenSet = true; m_connectionArn = std::move(value); } /** *The ARN of the connection specified for the API destination.
*/ inline void SetConnectionArn(const char* value) { m_connectionArnHasBeenSet = true; m_connectionArn.assign(value); } /** *The ARN of the connection specified for the API destination.
*/ inline ApiDestination& WithConnectionArn(const Aws::String& value) { SetConnectionArn(value); return *this;} /** *The ARN of the connection specified for the API destination.
*/ inline ApiDestination& WithConnectionArn(Aws::String&& value) { SetConnectionArn(std::move(value)); return *this;} /** *The ARN of the connection specified for the API destination.
*/ inline ApiDestination& WithConnectionArn(const char* value) { SetConnectionArn(value); return *this;} /** *The URL to the endpoint for the API destination.
*/ inline const Aws::String& GetInvocationEndpoint() const{ return m_invocationEndpoint; } /** *The URL to the endpoint for the API destination.
*/ inline bool InvocationEndpointHasBeenSet() const { return m_invocationEndpointHasBeenSet; } /** *The URL to the endpoint for the API destination.
*/ inline void SetInvocationEndpoint(const Aws::String& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = value; } /** *The URL to the endpoint for the API destination.
*/ inline void SetInvocationEndpoint(Aws::String&& value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint = std::move(value); } /** *The URL to the endpoint for the API destination.
*/ inline void SetInvocationEndpoint(const char* value) { m_invocationEndpointHasBeenSet = true; m_invocationEndpoint.assign(value); } /** *The URL to the endpoint for the API destination.
*/ inline ApiDestination& WithInvocationEndpoint(const Aws::String& value) { SetInvocationEndpoint(value); return *this;} /** *The URL to the endpoint for the API destination.
*/ inline ApiDestination& WithInvocationEndpoint(Aws::String&& value) { SetInvocationEndpoint(std::move(value)); return *this;} /** *The URL to the endpoint for the API destination.
*/ inline ApiDestination& WithInvocationEndpoint(const char* value) { SetInvocationEndpoint(value); return *this;} /** *The method to use to connect to the HTTP endpoint.
*/ inline const ApiDestinationHttpMethod& GetHttpMethod() const{ return m_httpMethod; } /** *The method to use to connect to the HTTP endpoint.
*/ inline bool HttpMethodHasBeenSet() const { return m_httpMethodHasBeenSet; } /** *The method to use to connect to the HTTP endpoint.
*/ inline void SetHttpMethod(const ApiDestinationHttpMethod& value) { m_httpMethodHasBeenSet = true; m_httpMethod = value; } /** *The method to use to connect to the HTTP endpoint.
*/ inline void SetHttpMethod(ApiDestinationHttpMethod&& value) { m_httpMethodHasBeenSet = true; m_httpMethod = std::move(value); } /** *The method to use to connect to the HTTP endpoint.
*/ inline ApiDestination& WithHttpMethod(const ApiDestinationHttpMethod& value) { SetHttpMethod(value); return *this;} /** *The method to use to connect to the HTTP endpoint.
*/ inline ApiDestination& WithHttpMethod(ApiDestinationHttpMethod&& value) { SetHttpMethod(std::move(value)); return *this;} /** *The maximum number of invocations per second to send to the HTTP * endpoint.
*/ inline int GetInvocationRateLimitPerSecond() const{ return m_invocationRateLimitPerSecond; } /** *The maximum number of invocations per second to send to the HTTP * endpoint.
*/ inline bool InvocationRateLimitPerSecondHasBeenSet() const { return m_invocationRateLimitPerSecondHasBeenSet; } /** *The maximum number of invocations per second to send to the HTTP * endpoint.
*/ inline void SetInvocationRateLimitPerSecond(int value) { m_invocationRateLimitPerSecondHasBeenSet = true; m_invocationRateLimitPerSecond = value; } /** *The maximum number of invocations per second to send to the HTTP * endpoint.
*/ inline ApiDestination& WithInvocationRateLimitPerSecond(int value) { SetInvocationRateLimitPerSecond(value); return *this;} /** *A time stamp for the time that the API destination was created.
*/ inline const Aws::Utils::DateTime& GetCreationTime() const{ return m_creationTime; } /** *A time stamp for the time that the API destination was created.
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *A time stamp for the time that the API destination was created.
*/ inline void SetCreationTime(const Aws::Utils::DateTime& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *A time stamp for the time that the API destination was created.
*/ inline void SetCreationTime(Aws::Utils::DateTime&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *A time stamp for the time that the API destination was created.
*/ inline ApiDestination& WithCreationTime(const Aws::Utils::DateTime& value) { SetCreationTime(value); return *this;} /** *A time stamp for the time that the API destination was created.
*/ inline ApiDestination& WithCreationTime(Aws::Utils::DateTime&& value) { SetCreationTime(std::move(value)); return *this;} /** *A time stamp for the time that the API destination was last modified.
*/ inline const Aws::Utils::DateTime& GetLastModifiedTime() const{ return m_lastModifiedTime; } /** *A time stamp for the time that the API destination was last modified.
*/ inline bool LastModifiedTimeHasBeenSet() const { return m_lastModifiedTimeHasBeenSet; } /** *A time stamp for the time that the API destination was last modified.
*/ inline void SetLastModifiedTime(const Aws::Utils::DateTime& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = value; } /** *A time stamp for the time that the API destination was last modified.
*/ inline void SetLastModifiedTime(Aws::Utils::DateTime&& value) { m_lastModifiedTimeHasBeenSet = true; m_lastModifiedTime = std::move(value); } /** *A time stamp for the time that the API destination was last modified.
*/ inline ApiDestination& WithLastModifiedTime(const Aws::Utils::DateTime& value) { SetLastModifiedTime(value); return *this;} /** *A time stamp for the time that the API destination was last modified.
*/ inline ApiDestination& WithLastModifiedTime(Aws::Utils::DateTime&& value) { SetLastModifiedTime(std::move(value)); return *this;} private: Aws::String m_apiDestinationArn; bool m_apiDestinationArnHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; ApiDestinationState m_apiDestinationState; bool m_apiDestinationStateHasBeenSet = 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; Aws::Utils::DateTime m_creationTime; bool m_creationTimeHasBeenSet = false; Aws::Utils::DateTime m_lastModifiedTime; bool m_lastModifiedTimeHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws