AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
Observations.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 Observations() = default;
32 AWS_GUARDDUTY_API Observations(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GUARDDUTY_API Observations& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetText() const { return m_text; }
41 inline bool TextHasBeenSet() const { return m_textHasBeenSet; }
42 template <typename TextT = Aws::Vector<Aws::String>>
43 void SetText(TextT&& value) {
44 m_textHasBeenSet = true;
45 m_text = std::forward<TextT>(value);
46 }
47 template <typename TextT = Aws::Vector<Aws::String>>
48 Observations& WithText(TextT&& value) {
49 SetText(std::forward<TextT>(value));
50 return *this;
51 }
52 template <typename TextT = Aws::String>
53 Observations& AddText(TextT&& value) {
54 m_textHasBeenSet = true;
55 m_text.emplace_back(std::forward<TextT>(value));
56 return *this;
57 }
59 private:
61 bool m_textHasBeenSet = false;
62};
63
64} // namespace Model
65} // namespace GuardDuty
66} // namespace Aws
const Aws::Vector< Aws::String > & GetText() const
AWS_GUARDDUTY_API Observations & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
Observations & WithText(TextT &&value)
Observations & AddText(TextT &&value)
AWS_GUARDDUTY_API Observations(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API Observations()=default
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue