AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
CallResult.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/nova-act/NovaAct_EXPORTS.h>
10#include <aws/nova-act/model/CallResultContent.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace NovaAct {
22namespace Model {
23
30 public:
31 AWS_NOVAACT_API CallResult() = default;
32 AWS_NOVAACT_API CallResult(Aws::Utils::Json::JsonView jsonValue);
33 AWS_NOVAACT_API CallResult& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetCallId() const { return m_callId; }
41 inline bool CallIdHasBeenSet() const { return m_callIdHasBeenSet; }
42 template <typename CallIdT = Aws::String>
43 void SetCallId(CallIdT&& value) {
44 m_callIdHasBeenSet = true;
45 m_callId = std::forward<CallIdT>(value);
46 }
47 template <typename CallIdT = Aws::String>
48 CallResult& WithCallId(CallIdT&& value) {
49 SetCallId(std::forward<CallIdT>(value));
50 return *this;
51 }
53
55
59 inline const Aws::Vector<CallResultContent>& GetContent() const { return m_content; }
60 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
61 template <typename ContentT = Aws::Vector<CallResultContent>>
62 void SetContent(ContentT&& value) {
63 m_contentHasBeenSet = true;
64 m_content = std::forward<ContentT>(value);
65 }
66 template <typename ContentT = Aws::Vector<CallResultContent>>
67 CallResult& WithContent(ContentT&& value) {
68 SetContent(std::forward<ContentT>(value));
69 return *this;
70 }
71 template <typename ContentT = CallResultContent>
72 CallResult& AddContent(ContentT&& value) {
73 m_contentHasBeenSet = true;
74 m_content.emplace_back(std::forward<ContentT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_callId;
80
82 bool m_callIdHasBeenSet = false;
83 bool m_contentHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace NovaAct
88} // namespace Aws
CallResult & WithContent(ContentT &&value)
Definition CallResult.h:67
AWS_NOVAACT_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_NOVAACT_API CallResult & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< CallResultContent > & GetContent() const
Definition CallResult.h:59
void SetCallId(CallIdT &&value)
Definition CallResult.h:43
AWS_NOVAACT_API CallResult()=default
AWS_NOVAACT_API CallResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCallId() const
Definition CallResult.h:40
CallResult & WithCallId(CallIdT &&value)
Definition CallResult.h:48
CallResult & AddContent(ContentT &&value)
Definition CallResult.h:72
void SetContent(ContentT &&value)
Definition CallResult.h:62
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue