AWS SDK for C++

AWS SDK for C++ Version 1.11.875

Loading...
Searching...
No Matches
AgentInputMessage.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/healthlake/HealthLake_EXPORTS.h>
9#include <aws/healthlake/model/AgentInputMessageType.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace HealthLake {
21namespace Model {
22
30 public:
31 AWS_HEALTHLAKE_API AgentInputMessage() = default;
32 AWS_HEALTHLAKE_API AgentInputMessage(Aws::Utils::Json::JsonView jsonValue);
34 AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetBody() const { return m_body; }
41 inline bool BodyHasBeenSet() const { return m_bodyHasBeenSet; }
42 template <typename BodyT = Aws::String>
43 void SetBody(BodyT&& value) {
44 m_bodyHasBeenSet = true;
45 m_body = std::forward<BodyT>(value);
46 }
47 template <typename BodyT = Aws::String>
48 AgentInputMessage& WithBody(BodyT&& value) {
49 SetBody(std::forward<BodyT>(value));
50 return *this;
51 }
53
55
61 inline AgentInputMessageType GetType() const { return m_type; }
62 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
63 inline void SetType(AgentInputMessageType value) {
64 m_typeHasBeenSet = true;
65 m_type = value;
66 }
68 SetType(value);
69 return *this;
70 }
72 private:
73 Aws::String m_body;
74
76 bool m_bodyHasBeenSet = false;
77 bool m_typeHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace HealthLake
82} // namespace Aws
AgentInputMessageType GetType() const
AWS_HEALTHLAKE_API Aws::Utils::Json::JsonValue Jsonize() const
AgentInputMessage & WithType(AgentInputMessageType value)
AgentInputMessage & WithBody(BodyT &&value)
void SetType(AgentInputMessageType value)
AWS_HEALTHLAKE_API AgentInputMessage()=default
AWS_HEALTHLAKE_API AgentInputMessage & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_HEALTHLAKE_API AgentInputMessage(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue