AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
KeyObservations.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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace GuardDuty {
21namespace Model {
22
30 public:
31 AWS_GUARDDUTY_API KeyObservations() = default;
32 AWS_GUARDDUTY_API KeyObservations(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetTitle() const { return m_title; }
41 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
42 template <typename TitleT = Aws::String>
43 void SetTitle(TitleT&& value) {
44 m_titleHasBeenSet = true;
45 m_title = std::forward<TitleT>(value);
46 }
47 template <typename TitleT = Aws::String>
48 KeyObservations& WithTitle(TitleT&& value) {
49 SetTitle(std::forward<TitleT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetNarrative() const { return m_narrative; }
59 inline bool NarrativeHasBeenSet() const { return m_narrativeHasBeenSet; }
60 template <typename NarrativeT = Aws::String>
61 void SetNarrative(NarrativeT&& value) {
62 m_narrativeHasBeenSet = true;
63 m_narrative = std::forward<NarrativeT>(value);
64 }
65 template <typename NarrativeT = Aws::String>
66 KeyObservations& WithNarrative(NarrativeT&& value) {
67 SetNarrative(std::forward<NarrativeT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Vector<Aws::String>& GetObservations() const { return m_observations; }
77 inline bool ObservationsHasBeenSet() const { return m_observationsHasBeenSet; }
78 template <typename ObservationsT = Aws::Vector<Aws::String>>
79 void SetObservations(ObservationsT&& value) {
80 m_observationsHasBeenSet = true;
81 m_observations = std::forward<ObservationsT>(value);
82 }
83 template <typename ObservationsT = Aws::Vector<Aws::String>>
84 KeyObservations& WithObservations(ObservationsT&& value) {
85 SetObservations(std::forward<ObservationsT>(value));
86 return *this;
87 }
88 template <typename ObservationsT = Aws::String>
89 KeyObservations& AddObservations(ObservationsT&& value) {
90 m_observationsHasBeenSet = true;
91 m_observations.emplace_back(std::forward<ObservationsT>(value));
92 return *this;
93 }
95 private:
96 Aws::String m_title;
97
98 Aws::String m_narrative;
99
100 Aws::Vector<Aws::String> m_observations;
101 bool m_titleHasBeenSet = false;
102 bool m_narrativeHasBeenSet = false;
103 bool m_observationsHasBeenSet = false;
104};
105
106} // namespace Model
107} // namespace GuardDuty
108} // namespace Aws
AWS_GUARDDUTY_API KeyObservations()=default
const Aws::String & GetTitle() const
AWS_GUARDDUTY_API KeyObservations & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetObservations(ObservationsT &&value)
const Aws::Vector< Aws::String > & GetObservations() const
KeyObservations & WithNarrative(NarrativeT &&value)
KeyObservations & WithTitle(TitleT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API KeyObservations(Aws::Utils::Json::JsonView jsonValue)
KeyObservations & WithObservations(ObservationsT &&value)
KeyObservations & AddObservations(ObservationsT &&value)
void SetNarrative(NarrativeT &&value)
const Aws::String & GetNarrative() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue