AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
SubResourceSummary.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/SubResourceType.h>
11#include <aws/shield/model/SummarizedAttackVector.h>
12#include <aws/shield/model/SummarizedCounter.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace Shield {
24namespace Model {
25
33 public:
34 AWS_SHIELD_API SubResourceSummary() = default;
37 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline SubResourceType GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 inline void SetType(SubResourceType value) {
46 m_typeHasBeenSet = true;
47 m_type = value;
48 }
50 SetType(value);
51 return *this;
52 }
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) {
63 m_idHasBeenSet = true;
64 m_id = std::forward<IdT>(value);
65 }
66 template <typename IdT = Aws::String>
67 SubResourceSummary& WithId(IdT&& value) {
68 SetId(std::forward<IdT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::Vector<SummarizedAttackVector>& GetAttackVectors() const { return m_attackVectors; }
78 inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; }
79 template <typename AttackVectorsT = Aws::Vector<SummarizedAttackVector>>
80 void SetAttackVectors(AttackVectorsT&& value) {
81 m_attackVectorsHasBeenSet = true;
82 m_attackVectors = std::forward<AttackVectorsT>(value);
83 }
84 template <typename AttackVectorsT = Aws::Vector<SummarizedAttackVector>>
85 SubResourceSummary& WithAttackVectors(AttackVectorsT&& value) {
86 SetAttackVectors(std::forward<AttackVectorsT>(value));
87 return *this;
88 }
89 template <typename AttackVectorsT = SummarizedAttackVector>
90 SubResourceSummary& AddAttackVectors(AttackVectorsT&& value) {
91 m_attackVectorsHasBeenSet = true;
92 m_attackVectors.emplace_back(std::forward<AttackVectorsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Vector<SummarizedCounter>& GetCounters() const { return m_counters; }
102 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
103 template <typename CountersT = Aws::Vector<SummarizedCounter>>
104 void SetCounters(CountersT&& value) {
105 m_countersHasBeenSet = true;
106 m_counters = std::forward<CountersT>(value);
107 }
108 template <typename CountersT = Aws::Vector<SummarizedCounter>>
109 SubResourceSummary& WithCounters(CountersT&& value) {
110 SetCounters(std::forward<CountersT>(value));
111 return *this;
112 }
113 template <typename CountersT = SummarizedCounter>
114 SubResourceSummary& AddCounters(CountersT&& value) {
115 m_countersHasBeenSet = true;
116 m_counters.emplace_back(std::forward<CountersT>(value));
117 return *this;
118 }
120 private:
122
123 Aws::String m_id;
124
126
128 bool m_typeHasBeenSet = false;
129 bool m_idHasBeenSet = false;
130 bool m_attackVectorsHasBeenSet = false;
131 bool m_countersHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace Shield
136} // 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