AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
Distribution.h
1
6#pragma once
7#include <aws/connect/Connect_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Connect
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_CONNECT_API Distribution() = default;
35 AWS_CONNECT_API Distribution(Aws::Utils::Json::JsonView jsonValue);
37 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetRegion() const { return m_region; }
45 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
46 template<typename RegionT = Aws::String>
47 void SetRegion(RegionT&& value) { m_regionHasBeenSet = true; m_region = std::forward<RegionT>(value); }
48 template<typename RegionT = Aws::String>
49 Distribution& WithRegion(RegionT&& value) { SetRegion(std::forward<RegionT>(value)); return *this;}
51
53
56 inline int GetPercentage() const { return m_percentage; }
57 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
58 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
59 inline Distribution& WithPercentage(int value) { SetPercentage(value); return *this;}
61 private:
62
63 Aws::String m_region;
64 bool m_regionHasBeenSet = false;
65
66 int m_percentage{0};
67 bool m_percentageHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace Connect
72} // namespace Aws
Distribution & WithRegion(RegionT &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRegion() const
AWS_CONNECT_API Distribution(Aws::Utils::Json::JsonView jsonValue)
AWS_CONNECT_API Distribution()=default
void SetRegion(RegionT &&value)
AWS_CONNECT_API Distribution & operator=(Aws::Utils::Json::JsonView jsonValue)
Distribution & WithPercentage(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue