AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
OriginationRoute.h
1
6#pragma once
7#include <aws/chime/Chime_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/chime/model/OriginationRouteProtocol.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
37 {
38 public:
39 AWS_CHIME_API OriginationRoute();
42 AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const Aws::String& GetHost() const{ return m_host; }
50 inline bool HostHasBeenSet() const { return m_hostHasBeenSet; }
51 inline void SetHost(const Aws::String& value) { m_hostHasBeenSet = true; m_host = value; }
52 inline void SetHost(Aws::String&& value) { m_hostHasBeenSet = true; m_host = std::move(value); }
53 inline void SetHost(const char* value) { m_hostHasBeenSet = true; m_host.assign(value); }
54 inline OriginationRoute& WithHost(const Aws::String& value) { SetHost(value); return *this;}
55 inline OriginationRoute& WithHost(Aws::String&& value) { SetHost(std::move(value)); return *this;}
56 inline OriginationRoute& WithHost(const char* value) { SetHost(value); return *this;}
58
60
63 inline int GetPort() const{ return m_port; }
64 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
65 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
66 inline OriginationRoute& WithPort(int value) { SetPort(value); return *this;}
68
70
74 inline const OriginationRouteProtocol& GetProtocol() const{ return m_protocol; }
75 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
76 inline void SetProtocol(const OriginationRouteProtocol& value) { m_protocolHasBeenSet = true; m_protocol = value; }
77 inline void SetProtocol(OriginationRouteProtocol&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
78 inline OriginationRoute& WithProtocol(const OriginationRouteProtocol& value) { SetProtocol(value); return *this;}
79 inline OriginationRoute& WithProtocol(OriginationRouteProtocol&& value) { SetProtocol(std::move(value)); return *this;}
81
83
87 inline int GetPriority() const{ return m_priority; }
88 inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; }
89 inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; }
90 inline OriginationRoute& WithPriority(int value) { SetPriority(value); return *this;}
92
94
98 inline int GetWeight() const{ return m_weight; }
99 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
100 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
101 inline OriginationRoute& WithWeight(int value) { SetWeight(value); return *this;}
103 private:
104
105 Aws::String m_host;
106 bool m_hostHasBeenSet = false;
107
108 int m_port;
109 bool m_portHasBeenSet = false;
110
111 OriginationRouteProtocol m_protocol;
112 bool m_protocolHasBeenSet = false;
113
114 int m_priority;
115 bool m_priorityHasBeenSet = false;
116
117 int m_weight;
118 bool m_weightHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace Chime
123} // namespace Aws
void SetHost(Aws::String &&value)
OriginationRoute & WithHost(const char *value)
OriginationRoute & WithHost(const Aws::String &value)
OriginationRoute & WithPort(int value)
OriginationRoute & WithWeight(int value)
AWS_CHIME_API Aws::Utils::Json::JsonValue Jsonize() const
OriginationRoute & WithProtocol(const OriginationRouteProtocol &value)
void SetProtocol(OriginationRouteProtocol &&value)
AWS_CHIME_API OriginationRoute(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetHost() const
const OriginationRouteProtocol & GetProtocol() const
OriginationRoute & WithProtocol(OriginationRouteProtocol &&value)
OriginationRoute & WithHost(Aws::String &&value)
void SetProtocol(const OriginationRouteProtocol &value)
OriginationRoute & WithPriority(int value)
AWS_CHIME_API OriginationRoute & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetHost(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue