AWS SDK for C++

AWS SDK for C++ Version 1.11.939

Loading...
Searching...
No Matches
ThreatAssessment.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/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/AttackPhase.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API ThreatAssessment() = default;
33 AWS_GUARDDUTY_API ThreatAssessment(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<AttackPhase>& GetAttackProgression() const { return m_attackProgression; }
42 inline bool AttackProgressionHasBeenSet() const { return m_attackProgressionHasBeenSet; }
43 template <typename AttackProgressionT = Aws::Vector<AttackPhase>>
44 void SetAttackProgression(AttackProgressionT&& value) {
45 m_attackProgressionHasBeenSet = true;
46 m_attackProgression = std::forward<AttackProgressionT>(value);
47 }
48 template <typename AttackProgressionT = Aws::Vector<AttackPhase>>
49 ThreatAssessment& WithAttackProgression(AttackProgressionT&& value) {
50 SetAttackProgression(std::forward<AttackProgressionT>(value));
51 return *this;
52 }
53 template <typename AttackProgressionT = AttackPhase>
54 ThreatAssessment& AddAttackProgression(AttackProgressionT&& value) {
55 m_attackProgressionHasBeenSet = true;
56 m_attackProgression.emplace_back(std::forward<AttackProgressionT>(value));
57 return *this;
58 }
60
62
65 inline const Aws::String& GetThreatActorProfile() const { return m_threatActorProfile; }
66 inline bool ThreatActorProfileHasBeenSet() const { return m_threatActorProfileHasBeenSet; }
67 template <typename ThreatActorProfileT = Aws::String>
68 void SetThreatActorProfile(ThreatActorProfileT&& value) {
69 m_threatActorProfileHasBeenSet = true;
70 m_threatActorProfile = std::forward<ThreatActorProfileT>(value);
71 }
72 template <typename ThreatActorProfileT = Aws::String>
73 ThreatAssessment& WithThreatActorProfile(ThreatActorProfileT&& value) {
74 SetThreatActorProfile(std::forward<ThreatActorProfileT>(value));
75 return *this;
76 }
78 private:
79 Aws::Vector<AttackPhase> m_attackProgression;
80
81 Aws::String m_threatActorProfile;
82 bool m_attackProgressionHasBeenSet = false;
83 bool m_threatActorProfileHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace GuardDuty
88} // namespace Aws
const Aws::Vector< AttackPhase > & GetAttackProgression() const
void SetAttackProgression(AttackProgressionT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_GUARDDUTY_API ThreatAssessment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetThreatActorProfile(ThreatActorProfileT &&value)
ThreatAssessment & WithAttackProgression(AttackProgressionT &&value)
ThreatAssessment & AddAttackProgression(AttackProgressionT &&value)
ThreatAssessment & WithThreatActorProfile(ThreatActorProfileT &&value)
AWS_GUARDDUTY_API ThreatAssessment()=default
const Aws::String & GetThreatActorProfile() const
AWS_GUARDDUTY_API ThreatAssessment(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