AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
Beaconing.h
1
6#pragma once
7#include <aws/iotwireless/IoTWireless_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.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 IoTWireless
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_IOTWIRELESS_API Beaconing() = default;
36 AWS_IOTWIRELESS_API Beaconing(Aws::Utils::Json::JsonView jsonValue);
37 AWS_IOTWIRELESS_API Beaconing& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline int GetDataRate() const { return m_dataRate; }
46 inline bool DataRateHasBeenSet() const { return m_dataRateHasBeenSet; }
47 inline void SetDataRate(int value) { m_dataRateHasBeenSet = true; m_dataRate = value; }
48 inline Beaconing& WithDataRate(int value) { SetDataRate(value); return *this;}
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) { m_frequenciesHasBeenSet = true; m_frequencies = std::forward<FrequenciesT>(value); }
59 template<typename FrequenciesT = Aws::Vector<int>>
60 Beaconing& WithFrequencies(FrequenciesT&& value) { SetFrequencies(std::forward<FrequenciesT>(value)); return *this;}
61 inline Beaconing& AddFrequencies(int value) { m_frequenciesHasBeenSet = true; m_frequencies.push_back(value); return *this; }
63 private:
64
65 int m_dataRate{0};
66 bool m_dataRateHasBeenSet = false;
67
68 Aws::Vector<int> m_frequencies;
69 bool m_frequenciesHasBeenSet = false;
70 };
71
72} // namespace Model
73} // namespace IoTWireless
74} // namespace Aws
Beaconing & WithDataRate(int value)
Definition Beaconing.h:48
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:60
AWS_IOTWIRELESS_API Beaconing & operator=(Aws::Utils::Json::JsonView jsonValue)
Beaconing & AddFrequencies(int value)
Definition Beaconing.h:61
AWS_IOTWIRELESS_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue