AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
SubResourceSummary.h
1
6#pragma once
7#include <aws/shield/Shield_EXPORTS.h>
8#include <aws/shield/model/SubResourceType.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/shield/model/SummarizedAttackVector.h>
12#include <aws/shield/model/SummarizedCounter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Utils
18{
19namespace Json
20{
21 class JsonValue;
22 class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace Shield
26{
27namespace Model
28{
29
37 {
38 public:
39 AWS_SHIELD_API SubResourceSummary() = default;
42 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline SubResourceType GetType() const { return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(SubResourceType value) { m_typeHasBeenSet = true; m_type = value; }
52 inline SubResourceSummary& WithType(SubResourceType value) { SetType(value); return *this;}
54
56
59 inline const Aws::String& GetId() const { return m_id; }
60 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
61 template<typename IdT = Aws::String>
62 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
63 template<typename IdT = Aws::String>
64 SubResourceSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
66
68
71 inline const Aws::Vector<SummarizedAttackVector>& GetAttackVectors() const { return m_attackVectors; }
72 inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; }
73 template<typename AttackVectorsT = Aws::Vector<SummarizedAttackVector>>
74 void SetAttackVectors(AttackVectorsT&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = std::forward<AttackVectorsT>(value); }
75 template<typename AttackVectorsT = Aws::Vector<SummarizedAttackVector>>
76 SubResourceSummary& WithAttackVectors(AttackVectorsT&& value) { SetAttackVectors(std::forward<AttackVectorsT>(value)); return *this;}
77 template<typename AttackVectorsT = SummarizedAttackVector>
78 SubResourceSummary& AddAttackVectors(AttackVectorsT&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.emplace_back(std::forward<AttackVectorsT>(value)); return *this; }
80
82
85 inline const Aws::Vector<SummarizedCounter>& GetCounters() const { return m_counters; }
86 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
87 template<typename CountersT = Aws::Vector<SummarizedCounter>>
88 void SetCounters(CountersT&& value) { m_countersHasBeenSet = true; m_counters = std::forward<CountersT>(value); }
89 template<typename CountersT = Aws::Vector<SummarizedCounter>>
90 SubResourceSummary& WithCounters(CountersT&& value) { SetCounters(std::forward<CountersT>(value)); return *this;}
91 template<typename CountersT = SummarizedCounter>
92 SubResourceSummary& AddCounters(CountersT&& value) { m_countersHasBeenSet = true; m_counters.emplace_back(std::forward<CountersT>(value)); return *this; }
94 private:
95
97 bool m_typeHasBeenSet = false;
98
99 Aws::String m_id;
100 bool m_idHasBeenSet = false;
101
103 bool m_attackVectorsHasBeenSet = false;
104
106 bool m_countersHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace Shield
111} // namespace Aws
const Aws::Vector< SummarizedAttackVector > & GetAttackVectors() const
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetAttackVectors(AttackVectorsT &&value)
SubResourceSummary & AddAttackVectors(AttackVectorsT &&value)
SubResourceSummary & WithType(SubResourceType value)
AWS_SHIELD_API SubResourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubResourceSummary & WithCounters(CountersT &&value)
SubResourceSummary & AddCounters(CountersT &&value)
const Aws::Vector< SummarizedCounter > & GetCounters() const
AWS_SHIELD_API SubResourceSummary()=default
SubResourceSummary & WithAttackVectors(AttackVectorsT &&value)
SubResourceSummary & WithId(IdT &&value)
AWS_SHIELD_API SubResourceSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue