AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
GenericAttachment.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/lex/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 LexRuntimeService
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_LEXRUNTIMESERVICE_API GenericAttachment();
38 AWS_LEXRUNTIMESERVICE_API GenericAttachment(Aws::Utils::Json::JsonView jsonValue);
39 AWS_LEXRUNTIMESERVICE_API GenericAttachment& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetTitle() const{ return m_title; }
48 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
49 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
50 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
51 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
52 inline GenericAttachment& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
53 inline GenericAttachment& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
54 inline GenericAttachment& WithTitle(const char* value) { SetTitle(value); return *this;}
56
58
61 inline const Aws::String& GetSubTitle() const{ return m_subTitle; }
62 inline bool SubTitleHasBeenSet() const { return m_subTitleHasBeenSet; }
63 inline void SetSubTitle(const Aws::String& value) { m_subTitleHasBeenSet = true; m_subTitle = value; }
64 inline void SetSubTitle(Aws::String&& value) { m_subTitleHasBeenSet = true; m_subTitle = std::move(value); }
65 inline void SetSubTitle(const char* value) { m_subTitleHasBeenSet = true; m_subTitle.assign(value); }
66 inline GenericAttachment& WithSubTitle(const Aws::String& value) { SetSubTitle(value); return *this;}
67 inline GenericAttachment& WithSubTitle(Aws::String&& value) { SetSubTitle(std::move(value)); return *this;}
68 inline GenericAttachment& WithSubTitle(const char* value) { SetSubTitle(value); return *this;}
70
72
75 inline const Aws::String& GetAttachmentLinkUrl() const{ return m_attachmentLinkUrl; }
76 inline bool AttachmentLinkUrlHasBeenSet() const { return m_attachmentLinkUrlHasBeenSet; }
77 inline void SetAttachmentLinkUrl(const Aws::String& value) { m_attachmentLinkUrlHasBeenSet = true; m_attachmentLinkUrl = value; }
78 inline void SetAttachmentLinkUrl(Aws::String&& value) { m_attachmentLinkUrlHasBeenSet = true; m_attachmentLinkUrl = std::move(value); }
79 inline void SetAttachmentLinkUrl(const char* value) { m_attachmentLinkUrlHasBeenSet = true; m_attachmentLinkUrl.assign(value); }
80 inline GenericAttachment& WithAttachmentLinkUrl(const Aws::String& value) { SetAttachmentLinkUrl(value); return *this;}
81 inline GenericAttachment& WithAttachmentLinkUrl(Aws::String&& value) { SetAttachmentLinkUrl(std::move(value)); return *this;}
82 inline GenericAttachment& WithAttachmentLinkUrl(const char* value) { SetAttachmentLinkUrl(value); return *this;}
84
86
89 inline const Aws::String& GetImageUrl() const{ return m_imageUrl; }
90 inline bool ImageUrlHasBeenSet() const { return m_imageUrlHasBeenSet; }
91 inline void SetImageUrl(const Aws::String& value) { m_imageUrlHasBeenSet = true; m_imageUrl = value; }
92 inline void SetImageUrl(Aws::String&& value) { m_imageUrlHasBeenSet = true; m_imageUrl = std::move(value); }
93 inline void SetImageUrl(const char* value) { m_imageUrlHasBeenSet = true; m_imageUrl.assign(value); }
94 inline GenericAttachment& WithImageUrl(const Aws::String& value) { SetImageUrl(value); return *this;}
95 inline GenericAttachment& WithImageUrl(Aws::String&& value) { SetImageUrl(std::move(value)); return *this;}
96 inline GenericAttachment& WithImageUrl(const char* value) { SetImageUrl(value); return *this;}
98
100
103 inline const Aws::Vector<Button>& GetButtons() const{ return m_buttons; }
104 inline bool ButtonsHasBeenSet() const { return m_buttonsHasBeenSet; }
105 inline void SetButtons(const Aws::Vector<Button>& value) { m_buttonsHasBeenSet = true; m_buttons = value; }
106 inline void SetButtons(Aws::Vector<Button>&& value) { m_buttonsHasBeenSet = true; m_buttons = std::move(value); }
107 inline GenericAttachment& WithButtons(const Aws::Vector<Button>& value) { SetButtons(value); return *this;}
108 inline GenericAttachment& WithButtons(Aws::Vector<Button>&& value) { SetButtons(std::move(value)); return *this;}
109 inline GenericAttachment& AddButtons(const Button& value) { m_buttonsHasBeenSet = true; m_buttons.push_back(value); return *this; }
110 inline GenericAttachment& AddButtons(Button&& value) { m_buttonsHasBeenSet = true; m_buttons.push_back(std::move(value)); return *this; }
112 private:
113
114 Aws::String m_title;
115 bool m_titleHasBeenSet = false;
116
117 Aws::String m_subTitle;
118 bool m_subTitleHasBeenSet = false;
119
120 Aws::String m_attachmentLinkUrl;
121 bool m_attachmentLinkUrlHasBeenSet = false;
122
123 Aws::String m_imageUrl;
124 bool m_imageUrlHasBeenSet = false;
125
126 Aws::Vector<Button> m_buttons;
127 bool m_buttonsHasBeenSet = false;
128 };
129
130} // namespace Model
131} // namespace LexRuntimeService
132} // namespace Aws
void SetAttachmentLinkUrl(const Aws::String &value)
GenericAttachment & WithImageUrl(const char *value)
GenericAttachment & WithImageUrl(Aws::String &&value)
GenericAttachment & WithTitle(const char *value)
const Aws::Vector< Button > & GetButtons() const
AWS_LEXRUNTIMESERVICE_API GenericAttachment(Aws::Utils::Json::JsonView jsonValue)
GenericAttachment & WithAttachmentLinkUrl(const char *value)
GenericAttachment & WithSubTitle(Aws::String &&value)
AWS_LEXRUNTIMESERVICE_API GenericAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetButtons(const Aws::Vector< Button > &value)
GenericAttachment & WithSubTitle(const char *value)
GenericAttachment & WithSubTitle(const Aws::String &value)
GenericAttachment & WithAttachmentLinkUrl(Aws::String &&value)
GenericAttachment & WithAttachmentLinkUrl(const Aws::String &value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
GenericAttachment & WithTitle(const Aws::String &value)
GenericAttachment & WithButtons(Aws::Vector< Button > &&value)
GenericAttachment & WithTitle(Aws::String &&value)
GenericAttachment & WithButtons(const Aws::Vector< Button > &value)
GenericAttachment & AddButtons(Button &&value)
AWS_LEXRUNTIMESERVICE_API GenericAttachment()
void SetButtons(Aws::Vector< Button > &&value)
GenericAttachment & WithImageUrl(const Aws::String &value)
GenericAttachment & AddButtons(const Button &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