AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
OptInFeature.h
1
6#pragma once
7#include <aws/security-ir/SecurityIR_EXPORTS.h>
8#include <aws/security-ir/model/OptInFeatureName.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace SecurityIR {
20namespace Model {
21
28 public:
29 AWS_SECURITYIR_API OptInFeature() = default;
30 AWS_SECURITYIR_API OptInFeature(Aws::Utils::Json::JsonView jsonValue);
31 AWS_SECURITYIR_API OptInFeature& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline OptInFeatureName GetFeatureName() const { return m_featureName; }
39 inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
40 inline void SetFeatureName(OptInFeatureName value) {
41 m_featureNameHasBeenSet = true;
42 m_featureName = value;
43 }
45 SetFeatureName(value);
46 return *this;
47 }
49
51
54 inline bool GetIsEnabled() const { return m_isEnabled; }
55 inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
56 inline void SetIsEnabled(bool value) {
57 m_isEnabledHasBeenSet = true;
58 m_isEnabled = value;
59 }
60 inline OptInFeature& WithIsEnabled(bool value) {
61 SetIsEnabled(value);
62 return *this;
63 }
65 private:
67
68 bool m_isEnabled{false};
69 bool m_featureNameHasBeenSet = false;
70 bool m_isEnabledHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace SecurityIR
75} // namespace Aws
AWS_SECURITYIR_API OptInFeature(Aws::Utils::Json::JsonView jsonValue)
OptInFeature & WithFeatureName(OptInFeatureName value)
AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const
void SetFeatureName(OptInFeatureName value)
AWS_SECURITYIR_API OptInFeature & operator=(Aws::Utils::Json::JsonView jsonValue)
OptInFeature & WithIsEnabled(bool value)
AWS_SECURITYIR_API OptInFeature()=default
OptInFeatureName GetFeatureName() const
Aws::Utils::Json::JsonValue JsonValue