AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ImageResponseCard.h
1
6#pragma once
7#include <aws/lexv2-models/LexModelsV2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lexv2-models/model/Button.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace LexModelsV2
24{
25namespace Model
26{
27
37 {
38 public:
39 AWS_LEXMODELSV2_API ImageResponseCard();
40 AWS_LEXMODELSV2_API ImageResponseCard(Aws::Utils::Json::JsonView jsonValue);
42 AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const;
43
44
46
50 inline const Aws::String& GetTitle() const{ return m_title; }
51 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
52 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
53 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
54 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
55 inline ImageResponseCard& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
56 inline ImageResponseCard& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
57 inline ImageResponseCard& WithTitle(const char* value) { SetTitle(value); return *this;}
59
61
65 inline const Aws::String& GetSubtitle() const{ return m_subtitle; }
66 inline bool SubtitleHasBeenSet() const { return m_subtitleHasBeenSet; }
67 inline void SetSubtitle(const Aws::String& value) { m_subtitleHasBeenSet = true; m_subtitle = value; }
68 inline void SetSubtitle(Aws::String&& value) { m_subtitleHasBeenSet = true; m_subtitle = std::move(value); }
69 inline void SetSubtitle(const char* value) { m_subtitleHasBeenSet = true; m_subtitle.assign(value); }
70 inline ImageResponseCard& WithSubtitle(const Aws::String& value) { SetSubtitle(value); return *this;}
71 inline ImageResponseCard& WithSubtitle(Aws::String&& value) { SetSubtitle(std::move(value)); return *this;}
72 inline ImageResponseCard& WithSubtitle(const char* value) { SetSubtitle(value); return *this;}
74
76
81 inline const Aws::String& GetImageUrl() const{ return m_imageUrl; }
82 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
83 inline void SetImageUrl(const Aws::String& value) { m_imageUrlHasBeenSet = true; m_imageUrl = value; }
84 inline void SetImageUrl(Aws::String&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::move(value); }
85 inline void SetImageUrl(const char* value) { m_imageUrlHasBeenSet = true; m_imageUrl.assign(value); }
86 inline ImageResponseCard& WithImageUrl(const Aws::String& value) { SetImageUrl(value); return *this;}
87 inline ImageResponseCard& WithImageUrl(Aws::String&& value) { SetImageUrl(std::move(value)); return *this;}
88 inline ImageResponseCard& WithImageUrl(const char* value) { SetImageUrl(value); return *this;}
90
92
97 inline const Aws::Vector<Button>& GetButtons() const{ return m_buttons; }
98 inline bool ButtonsHasBeenSet() const { return m_buttonsHasBeenSet; }
99 inline void SetButtons(const Aws::Vector<Button>& value) { m_buttonsHasBeenSet = true; m_buttons = value; }
100 inline void SetButtons(Aws::Vector<Button>&& value) { m_buttonsHasBeenSet = true; m_buttons = std::move(value); }
101 inline ImageResponseCard& WithButtons(const Aws::Vector<Button>& value) { SetButtons(value); return *this;}
102 inline ImageResponseCard& WithButtons(Aws::Vector<Button>&& value) { SetButtons(std::move(value)); return *this;}
103 inline ImageResponseCard& AddButtons(const Button& value) { m_buttonsHasBeenSet = true; m_buttons.push_back(value); return *this; }
104 inline ImageResponseCard& AddButtons(Button&& value) { m_buttonsHasBeenSet = true; m_buttons.push_back(std::move(value)); return *this; }
106 private:
107
108 Aws::String m_title;
109 bool m_titleHasBeenSet = false;
110
111 Aws::String m_subtitle;
112 bool m_subtitleHasBeenSet = false;
113
114 Aws::String m_imageUrl;
115 bool m_imageUrlHasBeenSet = false;
116
117 Aws::Vector<Button> m_buttons;
118 bool m_buttonsHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace LexModelsV2
123} // namespace Aws
ImageResponseCard & WithTitle(Aws::String &&value)
void SetButtons(const Aws::Vector< Button > &value)
ImageResponseCard & WithImageUrl(Aws::String &&value)
ImageResponseCard & AddButtons(const Button &value)
ImageResponseCard & WithSubtitle(Aws::String &&value)
ImageResponseCard & WithTitle(const Aws::String &value)
ImageResponseCard & WithImageUrl(const Aws::String &value)
ImageResponseCard & AddButtons(Button &&value)
void SetSubtitle(const Aws::String &value)
AWS_LEXMODELSV2_API ImageResponseCard(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXMODELSV2_API ImageResponseCard & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Button > & GetButtons() const
ImageResponseCard & WithSubtitle(const Aws::String &value)
void SetButtons(Aws::Vector< Button > &&value)
ImageResponseCard & WithButtons(Aws::Vector< Button > &&value)
ImageResponseCard & WithSubtitle(const char *value)
ImageResponseCard & WithTitle(const char *value)
void SetTitle(const Aws::String &value)
ImageResponseCard & WithButtons(const Aws::Vector< Button > &value)
void SetImageUrl(const Aws::String &value)
ImageResponseCard & WithImageUrl(const char *value)
AWS_LEXMODELSV2_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue