/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Information about a traffic distribution.See Also:
AWS
* API Reference
The Amazon Web Services Region where the traffic is distributed.
*/ inline const Aws::String& GetRegion() const{ return m_region; } /** *The Amazon Web Services Region where the traffic is distributed.
*/ inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; } /** *The Amazon Web Services Region where the traffic is distributed.
*/ inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; } /** *The Amazon Web Services Region where the traffic is distributed.
*/ inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); } /** *The Amazon Web Services Region where the traffic is distributed.
*/ inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); } /** *The Amazon Web Services Region where the traffic is distributed.
*/ inline Distribution& WithRegion(const Aws::String& value) { SetRegion(value); return *this;} /** *The Amazon Web Services Region where the traffic is distributed.
*/ inline Distribution& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;} /** *The Amazon Web Services Region where the traffic is distributed.
*/ inline Distribution& WithRegion(const char* value) { SetRegion(value); return *this;} /** *The percentage of the traffic that is distributed, in increments of 10.
*/ inline int GetPercentage() const{ return m_percentage; } /** *The percentage of the traffic that is distributed, in increments of 10.
*/ inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; } /** *The percentage of the traffic that is distributed, in increments of 10.
*/ inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; } /** *The percentage of the traffic that is distributed, in increments of 10.
*/ inline Distribution& WithPercentage(int value) { SetPercentage(value); return *this;} private: Aws::String m_region; bool m_regionHasBeenSet = false; int m_percentage; bool m_percentageHasBeenSet = false; }; } // namespace Model } // namespace Connect } // namespace Aws