AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Origination.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/chime/model/OriginationRoute.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Chime
23{
24namespace Model
25{
26
36 {
37 public:
38 AWS_CHIME_API Origination();
39 AWS_CHIME_API Origination(Aws::Utils::Json::JsonView jsonValue);
41 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
50 inline const Aws::Vector<OriginationRoute>& GetRoutes() const{ return m_routes; }
51 inline bool RoutesHasBeenSet() const { return m_routesHasBeenSet; }
52 inline void SetRoutes(const Aws::Vector<OriginationRoute>& value) { m_routesHasBeenSet = true; m_routes = value; }
53 inline void SetRoutes(Aws::Vector<OriginationRoute>&& value) { m_routesHasBeenSet = true; m_routes = std::move(value); }
54 inline Origination& WithRoutes(const Aws::Vector<OriginationRoute>& value) { SetRoutes(value); return *this;}
55 inline Origination& WithRoutes(Aws::Vector<OriginationRoute>&& value) { SetRoutes(std::move(value)); return *this;}
56 inline Origination& AddRoutes(const OriginationRoute& value) { m_routesHasBeenSet = true; m_routes.push_back(value); return *this; }
57 inline Origination& AddRoutes(OriginationRoute&& value) { m_routesHasBeenSet = true; m_routes.push_back(std::move(value)); return *this; }
59
61
66 inline bool GetDisabled() const{ return m_disabled; }
67 inline bool DisabledHasBeenSet() const { return m_disabledHasBeenSet; }
68 inline void SetDisabled(bool value) { m_disabledHasBeenSet = true; m_disabled = value; }
69 inline Origination& WithDisabled(bool value) { SetDisabled(value); return *this;}
71 private:
72
74 bool m_routesHasBeenSet = false;
75
76 bool m_disabled;
77 bool m_disabledHasBeenSet = false;
78 };
79
80} // namespace Model
81} // namespace Chime
82} // namespace Aws
Origination & AddRoutes(const OriginationRoute &value)
Definition Origination.h:56
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
Origination & WithRoutes(Aws::Vector< OriginationRoute > &&value)
Definition Origination.h:55
AWS_CHIME_API Origination(Aws::Utils::Json::JsonView jsonValue)
Origination & AddRoutes(OriginationRoute &&value)
Definition Origination.h:57
void SetRoutes(Aws::Vector< OriginationRoute > &&value)
Definition Origination.h:53
AWS_CHIME_API Origination & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< OriginationRoute > & GetRoutes() const
Definition Origination.h:50
Origination & WithRoutes(const Aws::Vector< OriginationRoute > &value)
Definition Origination.h:54
void SetRoutes(const Aws::Vector< OriginationRoute > &value)
Definition Origination.h:52
Origination & WithDisabled(bool value)
Definition Origination.h:69
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue