AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
Beaconing.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/iotwireless/IoTWireless_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace IoTWireless {
20namespace Model {
21
28class Beaconing {
29 public:
30 AWS_IOTWIRELESS_API Beaconing() = default;
31 AWS_IOTWIRELESS_API Beaconing(Aws::Utils::Json::JsonView jsonValue);
32 AWS_IOTWIRELESS_API Beaconing& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline int GetDataRate() const { return m_dataRate; }
40 inline bool DataRateHasBeenSet() const { return m_dataRateHasBeenSet; }
41 inline void SetDataRate(int value) {
42 m_dataRateHasBeenSet = true;
43 m_dataRate = value;
44 }
45 inline Beaconing& WithDataRate(int value) {
46 SetDataRate(value);
47 return *this;
48 }
50
52
55 inline const Aws::Vector<int>& GetFrequencies() const { return m_frequencies; }
56 inline bool FrequenciesHasBeenSet() const { return m_frequenciesHasBeenSet; }
57 template <typename FrequenciesT = Aws::Vector<int>>
58 void SetFrequencies(FrequenciesT&& value) {
59 m_frequenciesHasBeenSet = true;
60 m_frequencies = std::forward<FrequenciesT>(value);
61 }
62 template <typename FrequenciesT = Aws::Vector<int>>
63 Beaconing& WithFrequencies(FrequenciesT&& value) {
64 SetFrequencies(std::forward<FrequenciesT>(value));
65 return *this;
66 }
67 inline Beaconing& AddFrequencies(int value) {
68 m_frequenciesHasBeenSet = true;
69 m_frequencies.push_back(value);
70 return *this;
71 }
73 private:
74 int m_dataRate{0};
75
76 Aws::Vector<int> m_frequencies;
77 bool m_dataRateHasBeenSet = false;
78 bool m_frequenciesHasBeenSet = false;
79};
80
81} // namespace Model
82} // namespace IoTWireless
83} // namespace Aws
Beaconing & WithDataRate(int value)
Definition Beaconing.h:45
AWS_IOTWIRELESS_API Beaconing(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< int > & GetFrequencies() const
Definition Beaconing.h:55
AWS_IOTWIRELESS_API Beaconing()=default
void SetFrequencies(FrequenciesT &&value)
Definition Beaconing.h:58
Beaconing & WithFrequencies(FrequenciesT &&value)
Definition Beaconing.h:63
AWS_IOTWIRELESS_API Beaconing & operator=(Aws::Utils::Json::JsonView jsonValue)
Beaconing & AddFrequencies(int value)
Definition Beaconing.h:67
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue