AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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#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 SecurityIR
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_SECURITYIR_API OptInFeature() = default;
35 AWS_SECURITYIR_API OptInFeature(Aws::Utils::Json::JsonView jsonValue);
36 AWS_SECURITYIR_API OptInFeature& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_SECURITYIR_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline OptInFeatureName GetFeatureName() const { return m_featureName; }
45 inline bool FeatureNameHasBeenSet() const { return m_featureNameHasBeenSet; }
46 inline void SetFeatureName(OptInFeatureName value) { m_featureNameHasBeenSet = true; m_featureName = value; }
47 inline OptInFeature& WithFeatureName(OptInFeatureName value) { SetFeatureName(value); return *this;}
49
51
54 inline bool GetIsEnabled() const { return m_isEnabled; }
55 inline bool IsEnabledHasBeenSet() const { return m_isEnabledHasBeenSet; }
56 inline void SetIsEnabled(bool value) { m_isEnabledHasBeenSet = true; m_isEnabled = value; }
57 inline OptInFeature& WithIsEnabled(bool value) { SetIsEnabled(value); return *this;}
59 private:
60
62 bool m_featureNameHasBeenSet = false;
63
64 bool m_isEnabled{false};
65 bool m_isEnabledHasBeenSet = false;
66 };
67
68} // namespace Model
69} // namespace SecurityIR
70} // 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