AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
42 AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
49 inline const SubResourceType& GetType() const{ return m_type; }
50 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
51 inline void SetType(const SubResourceType& value) { m_typeHasBeenSet = true; m_type = value; }
52 inline void SetType(SubResourceType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
53 inline SubResourceSummary& WithType(const SubResourceType& value) { SetType(value); return *this;}
54 inline SubResourceSummary& WithType(SubResourceType&& value) { SetType(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetId() const{ return m_id; }
62 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
63 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
64 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
65 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
66 inline SubResourceSummary& WithId(const Aws::String& value) { SetId(value); return *this;}
67 inline SubResourceSummary& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
68 inline SubResourceSummary& WithId(const char* value) { SetId(value); return *this;}
70
72
75 inline const Aws::Vector<SummarizedAttackVector>& GetAttackVectors() const{ return m_attackVectors; }
76 inline bool AttackVectorsHasBeenSet() const { return m_attackVectorsHasBeenSet; }
77 inline void SetAttackVectors(const Aws::Vector<SummarizedAttackVector>& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = value; }
78 inline void SetAttackVectors(Aws::Vector<SummarizedAttackVector>&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors = std::move(value); }
81 inline SubResourceSummary& AddAttackVectors(const SummarizedAttackVector& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.push_back(value); return *this; }
82 inline SubResourceSummary& AddAttackVectors(SummarizedAttackVector&& value) { m_attackVectorsHasBeenSet = true; m_attackVectors.push_back(std::move(value)); return *this; }
84
86
89 inline const Aws::Vector<SummarizedCounter>& GetCounters() const{ return m_counters; }
90 inline bool CountersHasBeenSet() const { return m_countersHasBeenSet; }
91 inline void SetCounters(const Aws::Vector<SummarizedCounter>& value) { m_countersHasBeenSet = true; m_counters = value; }
92 inline void SetCounters(Aws::Vector<SummarizedCounter>&& value) { m_countersHasBeenSet = true; m_counters = std::move(value); }
93 inline SubResourceSummary& WithCounters(const Aws::Vector<SummarizedCounter>& value) { SetCounters(value); return *this;}
94 inline SubResourceSummary& WithCounters(Aws::Vector<SummarizedCounter>&& value) { SetCounters(std::move(value)); return *this;}
95 inline SubResourceSummary& AddCounters(const SummarizedCounter& value) { m_countersHasBeenSet = true; m_counters.push_back(value); return *this; }
96 inline SubResourceSummary& AddCounters(SummarizedCounter&& value) { m_countersHasBeenSet = true; m_counters.push_back(std::move(value)); return *this; }
98 private:
99
100 SubResourceType m_type;
101 bool m_typeHasBeenSet = false;
102
103 Aws::String m_id;
104 bool m_idHasBeenSet = false;
105
107 bool m_attackVectorsHasBeenSet = false;
108
110 bool m_countersHasBeenSet = false;
111 };
112
113} // namespace Model
114} // namespace Shield
115} // namespace Aws
SubResourceSummary & WithId(Aws::String &&value)
void SetType(const SubResourceType &value)
const Aws::Vector< SummarizedAttackVector > & GetAttackVectors() const
AWS_SHIELD_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCounters(const Aws::Vector< SummarizedCounter > &value)
SubResourceSummary & WithId(const char *value)
SubResourceSummary & WithAttackVectors(Aws::Vector< SummarizedAttackVector > &&value)
SubResourceSummary & WithCounters(Aws::Vector< SummarizedCounter > &&value)
const SubResourceType & GetType() const
SubResourceSummary & AddAttackVectors(const SummarizedAttackVector &value)
AWS_SHIELD_API SubResourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
SubResourceSummary & WithType(const SubResourceType &value)
SubResourceSummary & WithType(SubResourceType &&value)
void SetId(const Aws::String &value)
SubResourceSummary & WithAttackVectors(const Aws::Vector< SummarizedAttackVector > &value)
SubResourceSummary & AddCounters(SummarizedCounter &&value)
SubResourceSummary & AddAttackVectors(SummarizedAttackVector &&value)
const Aws::Vector< SummarizedCounter > & GetCounters() const
void SetAttackVectors(Aws::Vector< SummarizedAttackVector > &&value)
void SetCounters(Aws::Vector< SummarizedCounter > &&value)
SubResourceSummary & AddCounters(const SummarizedCounter &value)
void SetType(SubResourceType &&value)
SubResourceSummary & WithCounters(const Aws::Vector< SummarizedCounter > &value)
void SetAttackVectors(const Aws::Vector< SummarizedAttackVector > &value)
SubResourceSummary & WithId(const Aws::String &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