AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SummarizedAttackVector.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/shield/Shield_EXPORTS.h>
10#include <aws/shield/model/SummarizedCounter.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Shield {
22namespace Model {
23
30 public:
31 AWS_SHIELD_API SummarizedAttackVector() = default;
34 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetVectorType() const { return m_vectorType; }
41 inline bool VectorTypeHasBeenSet() const { return m_vectorTypeHasBeenSet; }
42 template <typename VectorTypeT = Aws::String>
43 void SetVectorType(VectorTypeT&& value) {
44 m_vectorTypeHasBeenSet = true;
45 m_vectorType = std::forward<VectorTypeT>(value);
46 }
47 template <typename VectorTypeT = Aws::String>
48 SummarizedAttackVector& WithVectorType(VectorTypeT&& value) {
49 SetVectorType(std::forward<VectorTypeT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::Vector<SummarizedCounter>& GetVectorCounters() const { return m_vectorCounters; }
59 inline bool VectorCountersHasBeenSet() const { return m_vectorCountersHasBeenSet; }
60 template <typename VectorCountersT = Aws::Vector<SummarizedCounter>>
61 void SetVectorCounters(VectorCountersT&& value) {
62 m_vectorCountersHasBeenSet = true;
63 m_vectorCounters = std::forward<VectorCountersT>(value);
64 }
65 template <typename VectorCountersT = Aws::Vector<SummarizedCounter>>
66 SummarizedAttackVector& WithVectorCounters(VectorCountersT&& value) {
67 SetVectorCounters(std::forward<VectorCountersT>(value));
68 return *this;
69 }
70 template <typename VectorCountersT = SummarizedCounter>
71 SummarizedAttackVector& AddVectorCounters(VectorCountersT&& value) {
72 m_vectorCountersHasBeenSet = true;
73 m_vectorCounters.emplace_back(std::forward<VectorCountersT>(value));
74 return *this;
75 }
77 private:
78 Aws::String m_vectorType;
79
80 Aws::Vector<SummarizedCounter> m_vectorCounters;
81 bool m_vectorTypeHasBeenSet = false;
82 bool m_vectorCountersHasBeenSet = false;
83};
84
85} // namespace Model
86} // namespace Shield
87} // namespace Aws
SummarizedAttackVector & WithVectorType(VectorTypeT &&value)
SummarizedAttackVector & AddVectorCounters(VectorCountersT &&value)
AWS_SHIELD_API SummarizedAttackVector()=default
SummarizedAttackVector & WithVectorCounters(VectorCountersT &&value)
const Aws::Vector< SummarizedCounter > & GetVectorCounters() const
AWS_SHIELD_API SummarizedAttackVector(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API SummarizedAttackVector & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() 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