/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include namespace Aws { namespace GlobalAccelerator { namespace Model { /** */ class AddCustomRoutingEndpointsRequest : public GlobalAcceleratorRequest { public: AWS_GLOBALACCELERATOR_API AddCustomRoutingEndpointsRequest(); // 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 "AddCustomRoutingEndpoints"; } AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override; AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline const Aws::Vector& GetEndpointConfigurations() const{ return m_endpointConfigurations; } /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline bool EndpointConfigurationsHasBeenSet() const { return m_endpointConfigurationsHasBeenSet; } /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline void SetEndpointConfigurations(const Aws::Vector& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations = value; } /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline void SetEndpointConfigurations(Aws::Vector&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations = std::move(value); } /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline AddCustomRoutingEndpointsRequest& WithEndpointConfigurations(const Aws::Vector& value) { SetEndpointConfigurations(value); return *this;} /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline AddCustomRoutingEndpointsRequest& WithEndpointConfigurations(Aws::Vector&& value) { SetEndpointConfigurations(std::move(value)); return *this;} /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline AddCustomRoutingEndpointsRequest& AddEndpointConfigurations(const CustomRoutingEndpointConfiguration& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations.push_back(value); return *this; } /** *

The list of endpoint objects to add to a custom routing accelerator.

*/ inline AddCustomRoutingEndpointsRequest& AddEndpointConfigurations(CustomRoutingEndpointConfiguration&& value) { m_endpointConfigurationsHasBeenSet = true; m_endpointConfigurations.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline const Aws::String& GetEndpointGroupArn() const{ return m_endpointGroupArn; } /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline bool EndpointGroupArnHasBeenSet() const { return m_endpointGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline void SetEndpointGroupArn(const Aws::String& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = value; } /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline void SetEndpointGroupArn(Aws::String&& value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline void SetEndpointGroupArn(const char* value) { m_endpointGroupArnHasBeenSet = true; m_endpointGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline AddCustomRoutingEndpointsRequest& WithEndpointGroupArn(const Aws::String& value) { SetEndpointGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline AddCustomRoutingEndpointsRequest& WithEndpointGroupArn(Aws::String&& value) { SetEndpointGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the endpoint group for the custom routing * endpoint.

*/ inline AddCustomRoutingEndpointsRequest& WithEndpointGroupArn(const char* value) { SetEndpointGroupArn(value); return *this;} private: Aws::Vector m_endpointConfigurations; bool m_endpointConfigurationsHasBeenSet = false; Aws::String m_endpointGroupArn; bool m_endpointGroupArnHasBeenSet = false; }; } // namespace Model } // namespace GlobalAccelerator } // namespace Aws