AWS SDK for C++

AWS SDK for C++ Version 1.11.759

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
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Connect {
20namespace Model {
21
28 public:
29 AWS_CONNECT_API Distribution() = default;
30 AWS_CONNECT_API Distribution(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetRegion() const { return m_region; }
39 inline bool RegionHasBeenSet() const { return m_regionHasBeenSet; }
40 template <typename RegionT = Aws::String>
41 void SetRegion(RegionT&& value) {
42 m_regionHasBeenSet = true;
43 m_region = std::forward<RegionT>(value);
44 }
45 template <typename RegionT = Aws::String>
46 Distribution& WithRegion(RegionT&& value) {
47 SetRegion(std::forward<RegionT>(value));
48 return *this;
49 }
51
53
56 inline int GetPercentage() const { return m_percentage; }
57 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
58 inline void SetPercentage(int value) {
59 m_percentageHasBeenSet = true;
60 m_percentage = value;
61 }
62 inline Distribution& WithPercentage(int value) {
63 SetPercentage(value);
64 return *this;
65 }
67 private:
68 Aws::String m_region;
69
70 int m_percentage{0};
71 bool m_regionHasBeenSet = false;
72 bool m_percentageHasBeenSet = false;
73};
74
75} // namespace Model
76} // namespace Connect
77} // 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