AWS SDK for C++

AWS SDK for C++ Version 1.11.874

Loading...
Searching...
No Matches
AgentOutputMessage.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/healthlake/HealthLake_EXPORTS.h>
10#include <aws/healthlake/model/AgentOutputMessageType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace HealthLake {
22namespace Model {
23
31 public:
32 AWS_HEALTHLAKE_API AgentOutputMessage() = default;
33 AWS_HEALTHLAKE_API AgentOutputMessage(Aws::Utils::Json::JsonView jsonValue);
35 AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetBody() const { return m_body; }
42 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
43 template <typename BodyT = Aws::String>
44 void SetBody(BodyT&& value) {
45 m_bodyHasBeenSet = true;
46 m_body = std::forward<BodyT>(value);
47 }
48 template <typename BodyT = Aws::String>
49 AgentOutputMessage& WithBody(BodyT&& value) {
50 SetBody(std::forward<BodyT>(value));
51 return *this;
52 }
54
56
60 inline AgentOutputMessageType GetType() const { return m_type; }
61 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
62 inline void SetType(AgentOutputMessageType value) {
63 m_typeHasBeenSet = true;
64 m_type = value;
65 }
67 SetType(value);
68 return *this;
69 }
71
73
77 inline const Aws::Vector<Aws::String>& GetOptionsList() const { return m_optionsList; }
78 inline bool OptionsListHasBeenSet() const { return m_optionsListHasBeenSet; }
79 template <typename OptionsListT = Aws::Vector<Aws::String>>
80 void SetOptionsList(OptionsListT&& value) {
81 m_optionsListHasBeenSet = true;
82 m_optionsList = std::forward<OptionsListT>(value);
83 }
84 template <typename OptionsListT = Aws::Vector<Aws::String>>
85 AgentOutputMessage& WithOptionsList(OptionsListT&& value) {
86 SetOptionsList(std::forward<OptionsListT>(value));
87 return *this;
88 }
89 template <typename OptionsListT = Aws::String>
90 AgentOutputMessage& AddOptionsList(OptionsListT&& value) {
91 m_optionsListHasBeenSet = true;
92 m_optionsList.emplace_back(std::forward<OptionsListT>(value));
93 return *this;
94 }
96 private:
97 Aws::String m_body;
98
100
101 Aws::Vector<Aws::String> m_optionsList;
102 bool m_bodyHasBeenSet = false;
103 bool m_typeHasBeenSet = false;
104 bool m_optionsListHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace HealthLake
109} // namespace Aws
AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_HEALTHLAKE_API AgentOutputMessage()=default
AgentOutputMessage & WithOptionsList(OptionsListT &&value)
AgentOutputMessage & AddOptionsList(OptionsListT &&value)
void SetType(AgentOutputMessageType value)
AWS_HEALTHLAKE_API AgentOutputMessage(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetOptionsList() const
AgentOutputMessage & WithBody(BodyT &&value)
AWS_HEALTHLAKE_API AgentOutputMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AgentOutputMessage & WithType(AgentOutputMessageType 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