AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
UtteranceBotResponse.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
9#include <aws/lexv2-models/model/ImageResponseCard.h>
10#include <aws/lexv2-models/model/UtteranceContentType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace LexModelsV2 {
22namespace Model {
23
31 public:
32 AWS_LEXMODELSV2_API UtteranceBotResponse() = default;
33 AWS_LEXMODELSV2_API UtteranceBotResponse(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetContent() const { return m_content; }
42 inline bool ContentHasBeenSet() const { return m_contentHasBeenSet; }
43 template <typename ContentT = Aws::String>
44 void SetContent(ContentT&& value) {
45 m_contentHasBeenSet = true;
46 m_content = std::forward<ContentT>(value);
47 }
48 template <typename ContentT = Aws::String>
49 UtteranceBotResponse& WithContent(ContentT&& value) {
50 SetContent(std::forward<ContentT>(value));
51 return *this;
52 }
54
56
67 inline UtteranceContentType GetContentType() const { return m_contentType; }
68 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
70 m_contentTypeHasBeenSet = true;
71 m_contentType = value;
72 }
74 SetContentType(value);
75 return *this;
76 }
78
80
81 inline const ImageResponseCard& GetImageResponseCard() const { return m_imageResponseCard; }
82 inline bool ImageResponseCardHasBeenSet() const { return m_imageResponseCardHasBeenSet; }
83 template <typename ImageResponseCardT = ImageResponseCard>
84 void SetImageResponseCard(ImageResponseCardT&& value) {
85 m_imageResponseCardHasBeenSet = true;
86 m_imageResponseCard = std::forward<ImageResponseCardT>(value);
87 }
88 template <typename ImageResponseCardT = ImageResponseCard>
89 UtteranceBotResponse& WithImageResponseCard(ImageResponseCardT&& value) {
90 SetImageResponseCard(std::forward<ImageResponseCardT>(value));
91 return *this;
92 }
94 private:
95 Aws::String m_content;
96
98
99 ImageResponseCard m_imageResponseCard;
100 bool m_contentHasBeenSet = false;
101 bool m_contentTypeHasBeenSet = false;
102 bool m_imageResponseCardHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace LexModelsV2
107} // namespace Aws
UtteranceBotResponse & WithContent(ContentT &&value)
void SetContentType(UtteranceContentType value)
void SetImageResponseCard(ImageResponseCardT &&value)
AWS_LEXMODELSV2_API UtteranceBotResponse()=default
AWS_LEXMODELSV2_API UtteranceBotResponse & operator=(Aws::Utils::Json::JsonView jsonValue)
UtteranceBotResponse & WithContentType(UtteranceContentType value)
AWS_LEXMODELSV2_API UtteranceBotResponse(Aws::Utils::Json::JsonView jsonValue)
const ImageResponseCard & GetImageResponseCard() const
UtteranceBotResponse & WithImageResponseCard(ImageResponseCardT &&value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue