AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
TTPsObservedDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/detective/Detective_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Detective {
20namespace Model {
21
31 public:
32 AWS_DETECTIVE_API TTPsObservedDetail() = default;
33 AWS_DETECTIVE_API TTPsObservedDetail(Aws::Utils::Json::JsonView jsonValue);
35 AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetTactic() const { return m_tactic; }
42 inline bool TacticHasBeenSet() const { return m_tacticHasBeenSet; }
43 template <typename TacticT = Aws::String>
44 void SetTactic(TacticT&& value) {
45 m_tacticHasBeenSet = true;
46 m_tactic = std::forward<TacticT>(value);
47 }
48 template <typename TacticT = Aws::String>
49 TTPsObservedDetail& WithTactic(TacticT&& value) {
50 SetTactic(std::forward<TacticT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetTechnique() const { return m_technique; }
60 inline bool TechniqueHasBeenSet() const { return m_techniqueHasBeenSet; }
61 template <typename TechniqueT = Aws::String>
62 void SetTechnique(TechniqueT&& value) {
63 m_techniqueHasBeenSet = true;
64 m_technique = std::forward<TechniqueT>(value);
65 }
66 template <typename TechniqueT = Aws::String>
67 TTPsObservedDetail& WithTechnique(TechniqueT&& value) {
68 SetTechnique(std::forward<TechniqueT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetProcedure() const { return m_procedure; }
78 inline bool ProcedureHasBeenSet() const { return m_procedureHasBeenSet; }
79 template <typename ProcedureT = Aws::String>
80 void SetProcedure(ProcedureT&& value) {
81 m_procedureHasBeenSet = true;
82 m_procedure = std::forward<ProcedureT>(value);
83 }
84 template <typename ProcedureT = Aws::String>
85 TTPsObservedDetail& WithProcedure(ProcedureT&& value) {
86 SetProcedure(std::forward<ProcedureT>(value));
87 return *this;
88 }
90
92
96 inline const Aws::String& GetIpAddress() const { return m_ipAddress; }
97 inline bool IpAddressHasBeenSet() const { return m_ipAddressHasBeenSet; }
98 template <typename IpAddressT = Aws::String>
99 void SetIpAddress(IpAddressT&& value) {
100 m_ipAddressHasBeenSet = true;
101 m_ipAddress = std::forward<IpAddressT>(value);
102 }
103 template <typename IpAddressT = Aws::String>
104 TTPsObservedDetail& WithIpAddress(IpAddressT&& value) {
105 SetIpAddress(std::forward<IpAddressT>(value));
106 return *this;
107 }
109
111
115 inline const Aws::String& GetAPIName() const { return m_aPIName; }
116 inline bool APINameHasBeenSet() const { return m_aPINameHasBeenSet; }
117 template <typename APINameT = Aws::String>
118 void SetAPIName(APINameT&& value) {
119 m_aPINameHasBeenSet = true;
120 m_aPIName = std::forward<APINameT>(value);
121 }
122 template <typename APINameT = Aws::String>
123 TTPsObservedDetail& WithAPIName(APINameT&& value) {
124 SetAPIName(std::forward<APINameT>(value));
125 return *this;
126 }
128
130
133 inline long long GetAPISuccessCount() const { return m_aPISuccessCount; }
134 inline bool APISuccessCountHasBeenSet() const { return m_aPISuccessCountHasBeenSet; }
135 inline void SetAPISuccessCount(long long value) {
136 m_aPISuccessCountHasBeenSet = true;
137 m_aPISuccessCount = value;
138 }
139 inline TTPsObservedDetail& WithAPISuccessCount(long long value) {
140 SetAPISuccessCount(value);
141 return *this;
142 }
144
146
149 inline long long GetAPIFailureCount() const { return m_aPIFailureCount; }
150 inline bool APIFailureCountHasBeenSet() const { return m_aPIFailureCountHasBeenSet; }
151 inline void SetAPIFailureCount(long long value) {
152 m_aPIFailureCountHasBeenSet = true;
153 m_aPIFailureCount = value;
154 }
155 inline TTPsObservedDetail& WithAPIFailureCount(long long value) {
156 SetAPIFailureCount(value);
157 return *this;
158 }
160 private:
161 Aws::String m_tactic;
162 bool m_tacticHasBeenSet = false;
163
164 Aws::String m_technique;
165 bool m_techniqueHasBeenSet = false;
166
167 Aws::String m_procedure;
168 bool m_procedureHasBeenSet = false;
169
170 Aws::String m_ipAddress;
171 bool m_ipAddressHasBeenSet = false;
172
173 Aws::String m_aPIName;
174 bool m_aPINameHasBeenSet = false;
175
176 long long m_aPISuccessCount{0};
177 bool m_aPISuccessCountHasBeenSet = false;
178
179 long long m_aPIFailureCount{0};
180 bool m_aPIFailureCountHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace Detective
185} // namespace Aws
TTPsObservedDetail & WithAPIFailureCount(long long value)
AWS_DETECTIVE_API Aws::Utils::Json::JsonValue Jsonize() const
TTPsObservedDetail & WithTechnique(TechniqueT &&value)
TTPsObservedDetail & WithAPISuccessCount(long long value)
TTPsObservedDetail & WithTactic(TacticT &&value)
TTPsObservedDetail & WithAPIName(APINameT &&value)
AWS_DETECTIVE_API TTPsObservedDetail()=default
TTPsObservedDetail & WithIpAddress(IpAddressT &&value)
AWS_DETECTIVE_API TTPsObservedDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_DETECTIVE_API TTPsObservedDetail(Aws::Utils::Json::JsonView jsonValue)
TTPsObservedDetail & WithProcedure(ProcedureT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue