/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Lambda { namespace Model { /** *

The traffic-shifting * configuration of a Lambda function alias.

See Also:

AWS * API Reference

*/ class AliasRoutingConfiguration { public: AWS_LAMBDA_API AliasRoutingConfiguration(); AWS_LAMBDA_API AliasRoutingConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API AliasRoutingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline const Aws::Map& GetAdditionalVersionWeights() const{ return m_additionalVersionWeights; } /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline bool AdditionalVersionWeightsHasBeenSet() const { return m_additionalVersionWeightsHasBeenSet; } /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline void SetAdditionalVersionWeights(const Aws::Map& value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights = value; } /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline void SetAdditionalVersionWeights(Aws::Map&& value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights = std::move(value); } /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline AliasRoutingConfiguration& WithAdditionalVersionWeights(const Aws::Map& value) { SetAdditionalVersionWeights(value); return *this;} /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline AliasRoutingConfiguration& WithAdditionalVersionWeights(Aws::Map&& value) { SetAdditionalVersionWeights(std::move(value)); return *this;} /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline AliasRoutingConfiguration& AddAdditionalVersionWeights(const Aws::String& key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(key, value); return *this; } /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline AliasRoutingConfiguration& AddAdditionalVersionWeights(Aws::String&& key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(std::move(key), value); return *this; } /** *

The second version, and the percentage of traffic that's routed to it.

*/ inline AliasRoutingConfiguration& AddAdditionalVersionWeights(const char* key, double value) { m_additionalVersionWeightsHasBeenSet = true; m_additionalVersionWeights.emplace(key, value); return *this; } private: Aws::Map m_additionalVersionWeights; bool m_additionalVersionWeightsHasBeenSet = false; }; } // namespace Model } // namespace Lambda } // namespace Aws