AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetRegion(const Aws::String& value) { m_regionHasBeenSet = true; m_region = value; }
47 inline void SetRegion(Aws::String&& value) { m_regionHasBeenSet = true; m_region = std::move(value); }
48 inline void SetRegion(const char* value) { m_regionHasBeenSet = true; m_region.assign(value); }
49 inline Distribution& WithRegion(const Aws::String& value) { SetRegion(value); return *this;}
50 inline Distribution& WithRegion(Aws::String&& value) { SetRegion(std::move(value)); return *this;}
51 inline Distribution& WithRegion(const char* value) { SetRegion(value); return *this;}
53
55
58 inline int GetPercentage() const{ return m_percentage; }
59 inline bool PercentageHasBeenSet() const { return m_percentageHasBeenSet; }
60 inline void SetPercentage(int value) { m_percentageHasBeenSet = true; m_percentage = value; }
61 inline Distribution& WithPercentage(int value) { SetPercentage(value); return *this;}
63 private:
64
65 Aws::String m_region;
66 bool m_regionHasBeenSet = false;
67
68 int m_percentage;
69 bool m_percentageHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace Connect
74} // namespace Aws
Distribution & WithRegion(const char *value)
Distribution & WithRegion(Aws::String &&value)
AWS_CONNECT_API Aws::Utils::Json::JsonValue Jsonize() const
Distribution & WithRegion(const Aws::String &value)
const Aws::String & GetRegion() const
void SetRegion(const char *value)
AWS_CONNECT_API Distribution(Aws::Utils::Json::JsonView jsonValue)
void SetRegion(Aws::String &&value)
AWS_CONNECT_API Distribution & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetRegion(const Aws::String &value)
Distribution & WithPercentage(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue