AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
NetworkSettings.h
1
6#pragma once
7#include <aws/wickr/Wickr_EXPORTS.h>
8#include <aws/wickr/model/ReadReceiptConfig.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Wickr {
20namespace Model {
21
29 public:
30 AWS_WICKR_API NetworkSettings() = default;
33 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
40 inline bool GetEnableClientMetrics() const { return m_enableClientMetrics; }
41 inline bool EnableClientMetricsHasBeenSet() const { return m_enableClientMetricsHasBeenSet; }
42 inline void SetEnableClientMetrics(bool value) {
43 m_enableClientMetricsHasBeenSet = true;
44 m_enableClientMetrics = value;
45 }
48 return *this;
49 }
51
53
57 inline const ReadReceiptConfig& GetReadReceiptConfig() const { return m_readReceiptConfig; }
58 inline bool ReadReceiptConfigHasBeenSet() const { return m_readReceiptConfigHasBeenSet; }
59 template <typename ReadReceiptConfigT = ReadReceiptConfig>
60 void SetReadReceiptConfig(ReadReceiptConfigT&& value) {
61 m_readReceiptConfigHasBeenSet = true;
62 m_readReceiptConfig = std::forward<ReadReceiptConfigT>(value);
63 }
64 template <typename ReadReceiptConfigT = ReadReceiptConfig>
65 NetworkSettings& WithReadReceiptConfig(ReadReceiptConfigT&& value) {
66 SetReadReceiptConfig(std::forward<ReadReceiptConfigT>(value));
67 return *this;
68 }
70
72
77 inline bool GetDataRetention() const { return m_dataRetention; }
78 inline bool DataRetentionHasBeenSet() const { return m_dataRetentionHasBeenSet; }
79 inline void SetDataRetention(bool value) {
80 m_dataRetentionHasBeenSet = true;
81 m_dataRetention = value;
82 }
83 inline NetworkSettings& WithDataRetention(bool value) {
84 SetDataRetention(value);
85 return *this;
86 }
88 private:
89 bool m_enableClientMetrics{false};
90
91 ReadReceiptConfig m_readReceiptConfig;
92
93 bool m_dataRetention{false};
94 bool m_enableClientMetricsHasBeenSet = false;
95 bool m_readReceiptConfigHasBeenSet = false;
96 bool m_dataRetentionHasBeenSet = false;
97};
98
99} // namespace Model
100} // namespace Wickr
101} // namespace Aws
AWS_WICKR_API NetworkSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_WICKR_API NetworkSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkSettings & WithEnableClientMetrics(bool value)
AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const
NetworkSettings & WithDataRetention(bool value)
NetworkSettings & WithReadReceiptConfig(ReadReceiptConfigT &&value)
void SetReadReceiptConfig(ReadReceiptConfigT &&value)
const ReadReceiptConfig & GetReadReceiptConfig() const
AWS_WICKR_API NetworkSettings()=default
Aws::Utils::Json::JsonValue JsonValue