AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
DetectionCoverage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/InvestigationDetectorFeature.h>
11#include <aws/guardduty/model/ProtectionPlan.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty {
23namespace Model {
24
32 public:
33 AWS_GUARDDUTY_API DetectionCoverage() = default;
34 AWS_GUARDDUTY_API DetectionCoverage(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::Vector<ProtectionPlan>& GetProtectionPlans() const { return m_protectionPlans; }
43 inline bool ProtectionPlansHasBeenSet() const { return m_protectionPlansHasBeenSet; }
44 template <typename ProtectionPlansT = Aws::Vector<ProtectionPlan>>
45 void SetProtectionPlans(ProtectionPlansT&& value) {
46 m_protectionPlansHasBeenSet = true;
47 m_protectionPlans = std::forward<ProtectionPlansT>(value);
48 }
49 template <typename ProtectionPlansT = Aws::Vector<ProtectionPlan>>
50 DetectionCoverage& WithProtectionPlans(ProtectionPlansT&& value) {
51 SetProtectionPlans(std::forward<ProtectionPlansT>(value));
52 return *this;
53 }
54 template <typename ProtectionPlansT = ProtectionPlan>
55 DetectionCoverage& AddProtectionPlans(ProtectionPlansT&& value) {
56 m_protectionPlansHasBeenSet = true;
57 m_protectionPlans.emplace_back(std::forward<ProtectionPlansT>(value));
58 return *this;
59 }
61
63
67 inline const Aws::Vector<InvestigationDetectorFeature>& GetFoundationalDataSources() const { return m_foundationalDataSources; }
68 inline bool FoundationalDataSourcesHasBeenSet() const { return m_foundationalDataSourcesHasBeenSet; }
69 template <typename FoundationalDataSourcesT = Aws::Vector<InvestigationDetectorFeature>>
70 void SetFoundationalDataSources(FoundationalDataSourcesT&& value) {
71 m_foundationalDataSourcesHasBeenSet = true;
72 m_foundationalDataSources = std::forward<FoundationalDataSourcesT>(value);
73 }
74 template <typename FoundationalDataSourcesT = Aws::Vector<InvestigationDetectorFeature>>
75 DetectionCoverage& WithFoundationalDataSources(FoundationalDataSourcesT&& value) {
76 SetFoundationalDataSources(std::forward<FoundationalDataSourcesT>(value));
77 return *this;
78 }
80 m_foundationalDataSourcesHasBeenSet = true;
81 m_foundationalDataSources.push_back(value);
82 return *this;
83 }
85
87
91 inline const Aws::String& GetCoverageGaps() const { return m_coverageGaps; }
92 inline bool CoverageGapsHasBeenSet() const { return m_coverageGapsHasBeenSet; }
93 template <typename CoverageGapsT = Aws::String>
94 void SetCoverageGaps(CoverageGapsT&& value) {
95 m_coverageGapsHasBeenSet = true;
96 m_coverageGaps = std::forward<CoverageGapsT>(value);
97 }
98 template <typename CoverageGapsT = Aws::String>
99 DetectionCoverage& WithCoverageGaps(CoverageGapsT&& value) {
100 SetCoverageGaps(std::forward<CoverageGapsT>(value));
101 return *this;
102 }
104
106
109 inline const Aws::String& GetKeyObservation() const { return m_keyObservation; }
110 inline bool KeyObservationHasBeenSet() const { return m_keyObservationHasBeenSet; }
111 template <typename KeyObservationT = Aws::String>
112 void SetKeyObservation(KeyObservationT&& value) {
113 m_keyObservationHasBeenSet = true;
114 m_keyObservation = std::forward<KeyObservationT>(value);
115 }
116 template <typename KeyObservationT = Aws::String>
117 DetectionCoverage& WithKeyObservation(KeyObservationT&& value) {
118 SetKeyObservation(std::forward<KeyObservationT>(value));
119 return *this;
120 }
122 private:
123 Aws::Vector<ProtectionPlan> m_protectionPlans;
124
125 Aws::Vector<InvestigationDetectorFeature> m_foundationalDataSources;
126
127 Aws::String m_coverageGaps;
128
129 Aws::String m_keyObservation;
130 bool m_protectionPlansHasBeenSet = false;
131 bool m_foundationalDataSourcesHasBeenSet = false;
132 bool m_coverageGapsHasBeenSet = false;
133 bool m_keyObservationHasBeenSet = false;
134};
135
136} // namespace Model
137} // namespace GuardDuty
138} // namespace Aws
void SetProtectionPlans(ProtectionPlansT &&value)
AWS_GUARDDUTY_API DetectionCoverage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API DetectionCoverage()=default
DetectionCoverage & WithProtectionPlans(ProtectionPlansT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
DetectionCoverage & AddProtectionPlans(ProtectionPlansT &&value)
DetectionCoverage & WithFoundationalDataSources(FoundationalDataSourcesT &&value)
const Aws::Vector< ProtectionPlan > & GetProtectionPlans() const
AWS_GUARDDUTY_API DetectionCoverage(Aws::Utils::Json::JsonView jsonValue)
DetectionCoverage & WithKeyObservation(KeyObservationT &&value)
void SetCoverageGaps(CoverageGapsT &&value)
DetectionCoverage & AddFoundationalDataSources(InvestigationDetectorFeature value)
void SetFoundationalDataSources(FoundationalDataSourcesT &&value)
const Aws::Vector< InvestigationDetectorFeature > & GetFoundationalDataSources() const
DetectionCoverage & WithCoverageGaps(CoverageGapsT &&value)
const Aws::String & GetCoverageGaps() const
const Aws::String & GetKeyObservation() const
void SetKeyObservation(KeyObservationT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue