AWS SDK for C++

AWS SDK for C++ Version 1.11.934

Loading...
Searching...
No Matches
AffectedSession.h
1
6#pragma once
7#include <aws/bedrock-agentcore/BedrockAgentCore_EXPORTS.h>
8#include <aws/bedrock-agentcore/model/FailureSpanDetail.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace BedrockAgentCore {
22namespace Model {
23
31 public:
32 AWS_BEDROCKAGENTCORE_API AffectedSession() = default;
33 AWS_BEDROCKAGENTCORE_API AffectedSession(Aws::Utils::Json::JsonView jsonValue);
34 AWS_BEDROCKAGENTCORE_API AffectedSession& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetSessionId() const { return m_sessionId; }
42 inline bool SessionIdHasBeenSet() const { return m_sessionIdHasBeenSet; }
43 template <typename SessionIdT = Aws::String>
44 void SetSessionId(SessionIdT&& value) {
45 m_sessionIdHasBeenSet = true;
46 m_sessionId = std::forward<SessionIdT>(value);
47 }
48 template <typename SessionIdT = Aws::String>
49 AffectedSession& WithSessionId(SessionIdT&& value) {
50 SetSessionId(std::forward<SessionIdT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetExplanation() const { return m_explanation; }
60 inline bool ExplanationHasBeenSet() const { return m_explanationHasBeenSet; }
61 template <typename ExplanationT = Aws::String>
62 void SetExplanation(ExplanationT&& value) {
63 m_explanationHasBeenSet = true;
64 m_explanation = std::forward<ExplanationT>(value);
65 }
66 template <typename ExplanationT = Aws::String>
67 AffectedSession& WithExplanation(ExplanationT&& value) {
68 SetExplanation(std::forward<ExplanationT>(value));
69 return *this;
70 }
72
74
77 inline const Aws::String& GetFixType() const { return m_fixType; }
78 inline bool FixTypeHasBeenSet() const { return m_fixTypeHasBeenSet; }
79 template <typename FixTypeT = Aws::String>
80 void SetFixType(FixTypeT&& value) {
81 m_fixTypeHasBeenSet = true;
82 m_fixType = std::forward<FixTypeT>(value);
83 }
84 template <typename FixTypeT = Aws::String>
85 AffectedSession& WithFixType(FixTypeT&& value) {
86 SetFixType(std::forward<FixTypeT>(value));
87 return *this;
88 }
90
92
95 inline const Aws::String& GetRecommendation() const { return m_recommendation; }
96 inline bool RecommendationHasBeenSet() const { return m_recommendationHasBeenSet; }
97 template <typename RecommendationT = Aws::String>
98 void SetRecommendation(RecommendationT&& value) {
99 m_recommendationHasBeenSet = true;
100 m_recommendation = std::forward<RecommendationT>(value);
101 }
102 template <typename RecommendationT = Aws::String>
103 AffectedSession& WithRecommendation(RecommendationT&& value) {
104 SetRecommendation(std::forward<RecommendationT>(value));
105 return *this;
106 }
108
110
113 inline const Aws::Vector<FailureSpanDetail>& GetFailureSpans() const { return m_failureSpans; }
114 inline bool FailureSpansHasBeenSet() const { return m_failureSpansHasBeenSet; }
115 template <typename FailureSpansT = Aws::Vector<FailureSpanDetail>>
116 void SetFailureSpans(FailureSpansT&& value) {
117 m_failureSpansHasBeenSet = true;
118 m_failureSpans = std::forward<FailureSpansT>(value);
119 }
120 template <typename FailureSpansT = Aws::Vector<FailureSpanDetail>>
121 AffectedSession& WithFailureSpans(FailureSpansT&& value) {
122 SetFailureSpans(std::forward<FailureSpansT>(value));
123 return *this;
124 }
125 template <typename FailureSpansT = FailureSpanDetail>
126 AffectedSession& AddFailureSpans(FailureSpansT&& value) {
127 m_failureSpansHasBeenSet = true;
128 m_failureSpans.emplace_back(std::forward<FailureSpansT>(value));
129 return *this;
130 }
132 private:
133 Aws::String m_sessionId;
134
135 Aws::String m_explanation;
136
137 Aws::String m_fixType;
138
139 Aws::String m_recommendation;
140
141 Aws::Vector<FailureSpanDetail> m_failureSpans;
142 bool m_sessionIdHasBeenSet = false;
143 bool m_explanationHasBeenSet = false;
144 bool m_fixTypeHasBeenSet = false;
145 bool m_recommendationHasBeenSet = false;
146 bool m_failureSpansHasBeenSet = false;
147};
148
149} // namespace Model
150} // namespace BedrockAgentCore
151} // namespace Aws
AffectedSession & AddFailureSpans(FailureSpansT &&value)
AffectedSession & WithExplanation(ExplanationT &&value)
void SetRecommendation(RecommendationT &&value)
AWS_BEDROCKAGENTCORE_API AffectedSession(Aws::Utils::Json::JsonView jsonValue)
AffectedSession & WithFailureSpans(FailureSpansT &&value)
AWS_BEDROCKAGENTCORE_API AffectedSession & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_BEDROCKAGENTCORE_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetRecommendation() const
AffectedSession & WithRecommendation(RecommendationT &&value)
const Aws::Vector< FailureSpanDetail > & GetFailureSpans() const
AffectedSession & WithFixType(FixTypeT &&value)
AWS_BEDROCKAGENTCORE_API AffectedSession()=default
AffectedSession & WithSessionId(SessionIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue