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>
23namespace LexRuntimeService
49 template<
typename TitleT = Aws::String>
50 void SetTitle(TitleT&& value) { m_titleHasBeenSet =
true; m_title = std::forward<TitleT>(value); }
51 template<
typename TitleT = Aws::String>
61 template<
typename SubTitleT = Aws::String>
62 void SetSubTitle(SubTitleT&& value) { m_subTitleHasBeenSet =
true; m_subTitle = std::forward<SubTitleT>(value); }
63 template<
typename SubTitleT = Aws::String>
73 template<
typename AttachmentLinkUrlT = Aws::String>
74 void SetAttachmentLinkUrl(AttachmentLinkUrlT&& value) { m_attachmentLinkUrlHasBeenSet =
true; m_attachmentLinkUrl = std::forward<AttachmentLinkUrlT>(value); }
75 template<
typename AttachmentLinkUrlT = Aws::String>
85 template<
typename ImageUrlT = Aws::String>
86 void SetImageUrl(ImageUrlT&& value) { m_imageUrlHasBeenSet =
true; m_imageUrl = std::forward<ImageUrlT>(value); }
87 template<
typename ImageUrlT = Aws::String>
97 template<
typename ButtonsT = Aws::Vector<Button>>
98 void SetButtons(ButtonsT&& value) { m_buttonsHasBeenSet =
true; m_buttons = std::forward<ButtonsT>(value); }
99 template<
typename ButtonsT = Aws::Vector<Button>>
101 template<
typename ButtonsT = Button>
102 GenericAttachment&
AddButtons(ButtonsT&& value) { m_buttonsHasBeenSet =
true; m_buttons.emplace_back(std::forward<ButtonsT>(value));
return *
this; }
107 bool m_titleHasBeenSet =
false;
110 bool m_subTitleHasBeenSet =
false;
113 bool m_attachmentLinkUrlHasBeenSet =
false;
116 bool m_imageUrlHasBeenSet =
false;
119 bool m_buttonsHasBeenSet =
false;
bool AttachmentLinkUrlHasBeenSet() const
void SetButtons(ButtonsT &&value)
GenericAttachment & WithButtons(ButtonsT &&value)
const Aws::Vector< Button > & GetButtons() const
void SetImageUrl(ImageUrlT &&value)
AWS_LEXRUNTIMESERVICE_API GenericAttachment(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API GenericAttachment()=default
GenericAttachment & WithAttachmentLinkUrl(AttachmentLinkUrlT &&value)
void SetAttachmentLinkUrl(AttachmentLinkUrlT &&value)
const Aws::String & GetSubTitle() const
const Aws::String & GetTitle() const
bool ImageUrlHasBeenSet() const
AWS_LEXRUNTIMESERVICE_API GenericAttachment & operator=(Aws::Utils::Json::JsonView jsonValue)
GenericAttachment & WithImageUrl(ImageUrlT &&value)
const Aws::String & GetAttachmentLinkUrl() const
void SetTitle(TitleT &&value)
const Aws::String & GetImageUrl() const
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool TitleHasBeenSet() const
GenericAttachment & AddButtons(ButtonsT &&value)
bool ButtonsHasBeenSet() const
void SetSubTitle(SubTitleT &&value)
GenericAttachment & WithTitle(TitleT &&value)
GenericAttachment & WithSubTitle(SubTitleT &&value)
bool SubTitleHasBeenSet() 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