AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SummarizedAttackVector.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/shield/model/SummarizedCounter.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Shield
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_SHIELD_API SummarizedAttackVector() = default;
39 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetVectorType() const { return m_vectorType; }
47 inline bool VectorTypeHasBeenSet() const { return m_vectorTypeHasBeenSet; }
48 template<typename VectorTypeT = Aws::String>
49 void SetVectorType(VectorTypeT&& value) { m_vectorTypeHasBeenSet = true; m_vectorType = std::forward<VectorTypeT>(value); }
50 template<typename VectorTypeT = Aws::String>
51 SummarizedAttackVector& WithVectorType(VectorTypeT&& value) { SetVectorType(std::forward<VectorTypeT>(value)); return *this;}
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) { m_vectorCountersHasBeenSet = true; m_vectorCounters = std::forward<VectorCountersT>(value); }
62 template<typename VectorCountersT = Aws::Vector<SummarizedCounter>>
63 SummarizedAttackVector& WithVectorCounters(VectorCountersT&& value) { SetVectorCounters(std::forward<VectorCountersT>(value)); return *this;}
64 template<typename VectorCountersT = SummarizedCounter>
65 SummarizedAttackVector& AddVectorCounters(VectorCountersT&& value) { m_vectorCountersHasBeenSet = true; m_vectorCounters.emplace_back(std::forward<VectorCountersT>(value)); return *this; }
67 private:
68
69 Aws::String m_vectorType;
70 bool m_vectorTypeHasBeenSet = false;
71
72 Aws::Vector<SummarizedCounter> m_vectorCounters;
73 bool m_vectorCountersHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace Shield
78} // 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