AWS SDK for C++

AWS SDK for C++ Version 1.11.847

Loading...
Searching...
No Matches
NetworkSettings.h
1
6#pragma once
7#include <aws/wickr/Wickr_EXPORTS.h>
8#include <aws/wickr/model/ConsentPopupConfig.h>
9#include <aws/wickr/model/ReadReceiptConfig.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace Wickr {
21namespace Model {
22
30 public:
31 AWS_WICKR_API NetworkSettings() = default;
34 AWS_WICKR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
41 inline bool GetEnableClientMetrics() const { return m_enableClientMetrics; }
42 inline bool EnableClientMetricsHasBeenSet() const { return m_enableClientMetricsHasBeenSet; }
43 inline void SetEnableClientMetrics(bool value) {
44 m_enableClientMetricsHasBeenSet = true;
45 m_enableClientMetrics = value;
46 }
49 return *this;
50 }
52
54
58 inline const ReadReceiptConfig& GetReadReceiptConfig() const { return m_readReceiptConfig; }
59 inline bool ReadReceiptConfigHasBeenSet() const { return m_readReceiptConfigHasBeenSet; }
60 template <typename ReadReceiptConfigT = ReadReceiptConfig>
61 void SetReadReceiptConfig(ReadReceiptConfigT&& value) {
62 m_readReceiptConfigHasBeenSet = true;
63 m_readReceiptConfig = std::forward<ReadReceiptConfigT>(value);
64 }
65 template <typename ReadReceiptConfigT = ReadReceiptConfig>
66 NetworkSettings& WithReadReceiptConfig(ReadReceiptConfigT&& value) {
67 SetReadReceiptConfig(std::forward<ReadReceiptConfigT>(value));
68 return *this;
69 }
71
73
78 inline bool GetDataRetention() const { return m_dataRetention; }
79 inline bool DataRetentionHasBeenSet() const { return m_dataRetentionHasBeenSet; }
80 inline void SetDataRetention(bool value) {
81 m_dataRetentionHasBeenSet = true;
82 m_dataRetention = value;
83 }
84 inline NetworkSettings& WithDataRetention(bool value) {
85 SetDataRetention(value);
86 return *this;
87 }
89
91
95 inline bool GetEnableTrustedDataFormat() const { return m_enableTrustedDataFormat; }
96 inline bool EnableTrustedDataFormatHasBeenSet() const { return m_enableTrustedDataFormatHasBeenSet; }
97 inline void SetEnableTrustedDataFormat(bool value) {
98 m_enableTrustedDataFormatHasBeenSet = true;
99 m_enableTrustedDataFormat = value;
100 }
103 return *this;
104 }
106
108
111 inline const ConsentPopupConfig& GetConsentPopup() const { return m_consentPopup; }
112 inline bool ConsentPopupHasBeenSet() const { return m_consentPopupHasBeenSet; }
113 template <typename ConsentPopupT = ConsentPopupConfig>
114 void SetConsentPopup(ConsentPopupT&& value) {
115 m_consentPopupHasBeenSet = true;
116 m_consentPopup = std::forward<ConsentPopupT>(value);
117 }
118 template <typename ConsentPopupT = ConsentPopupConfig>
119 NetworkSettings& WithConsentPopup(ConsentPopupT&& value) {
120 SetConsentPopup(std::forward<ConsentPopupT>(value));
121 return *this;
122 }
124 private:
125 bool m_enableClientMetrics{false};
126
127 ReadReceiptConfig m_readReceiptConfig;
128
129 bool m_dataRetention{false};
130
131 bool m_enableTrustedDataFormat{false};
132
133 ConsentPopupConfig m_consentPopup;
134 bool m_enableClientMetricsHasBeenSet = false;
135 bool m_readReceiptConfigHasBeenSet = false;
136 bool m_dataRetentionHasBeenSet = false;
137 bool m_enableTrustedDataFormatHasBeenSet = false;
138 bool m_consentPopupHasBeenSet = false;
139};
140
141} // namespace Model
142} // namespace Wickr
143} // namespace Aws
AWS_WICKR_API NetworkSettings(Aws::Utils::Json::JsonView jsonValue)
AWS_WICKR_API NetworkSettings & operator=(Aws::Utils::Json::JsonView jsonValue)
NetworkSettings & WithEnableTrustedDataFormat(bool value)
NetworkSettings & WithConsentPopup(ConsentPopupT &&value)
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
const ConsentPopupConfig & GetConsentPopup() const
AWS_WICKR_API NetworkSettings()=default
void SetConsentPopup(ConsentPopupT &&value)
Aws::Utils::Json::JsonValue JsonValue