AWS SDK for C++

AWS SDK for C++ Version 1.11.795

Loading...
Searching...
No Matches
RouteTrafficOptions.h
1
6#pragma once
7#include <aws/geo-routes/GeoRoutes_EXPORTS.h>
8#include <aws/geo-routes/model/TrafficUsage.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace GeoRoutes {
20namespace Model {
21
28 public:
29 AWS_GEOROUTES_API RouteTrafficOptions() = default;
30 AWS_GEOROUTES_API RouteTrafficOptions(Aws::Utils::Json::JsonView jsonValue);
32 AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
42 inline long long GetFlowEventThresholdOverride() const { return m_flowEventThresholdOverride; }
43 inline bool FlowEventThresholdOverrideHasBeenSet() const { return m_flowEventThresholdOverrideHasBeenSet; }
44 inline void SetFlowEventThresholdOverride(long long value) {
45 m_flowEventThresholdOverrideHasBeenSet = true;
46 m_flowEventThresholdOverride = value;
47 }
50 return *this;
51 }
53
55
69 inline TrafficUsage GetUsage() const { return m_usage; }
70 inline bool UsageHasBeenSet() const { return m_usageHasBeenSet; }
71 inline void SetUsage(TrafficUsage value) {
72 m_usageHasBeenSet = true;
73 m_usage = value;
74 }
76 SetUsage(value);
77 return *this;
78 }
80 private:
81 long long m_flowEventThresholdOverride{0};
82
84 bool m_flowEventThresholdOverrideHasBeenSet = false;
85 bool m_usageHasBeenSet = false;
86};
87
88} // namespace Model
89} // namespace GeoRoutes
90} // namespace Aws
AWS_GEOROUTES_API RouteTrafficOptions & operator=(Aws::Utils::Json::JsonView jsonValue)
RouteTrafficOptions & WithUsage(TrafficUsage value)
AWS_GEOROUTES_API Aws::Utils::Json::JsonValue Jsonize() const
RouteTrafficOptions & WithFlowEventThresholdOverride(long long value)
AWS_GEOROUTES_API RouteTrafficOptions(Aws::Utils::Json::JsonView jsonValue)
AWS_GEOROUTES_API RouteTrafficOptions()=default
Aws::Utils::Json::JsonValue JsonValue