AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ResponseCard.h
1
6#pragma once
7#include <aws/lex/LexRuntimeService_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/lex/model/ContentType.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/lex/model/GenericAttachment.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace LexRuntimeService
25{
26namespace Model
27{
28
39 {
40 public:
41 AWS_LEXRUNTIMESERVICE_API ResponseCard() = default;
42 AWS_LEXRUNTIMESERVICE_API ResponseCard(Aws::Utils::Json::JsonView jsonValue);
43 AWS_LEXRUNTIMESERVICE_API ResponseCard& operator=(Aws::Utils::Json::JsonView jsonValue);
44 AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetVersion() const { return m_version; }
52 inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
53 template<typename VersionT = Aws::String>
54 void SetVersion(VersionT&& value) { m_versionHasBeenSet = true; m_version = std::forward<VersionT>(value); }
55 template<typename VersionT = Aws::String>
56 ResponseCard& WithVersion(VersionT&& value) { SetVersion(std::forward<VersionT>(value)); return *this;}
58
60
63 inline ContentType GetContentType() const { return m_contentType; }
64 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
65 inline void SetContentType(ContentType value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
66 inline ResponseCard& WithContentType(ContentType value) { SetContentType(value); return *this;}
68
70
73 inline const Aws::Vector<GenericAttachment>& GetGenericAttachments() const { return m_genericAttachments; }
74 inline bool GenericAttachmentsHasBeenSet() const { return m_genericAttachmentsHasBeenSet; }
75 template<typename GenericAttachmentsT = Aws::Vector<GenericAttachment>>
76 void SetGenericAttachments(GenericAttachmentsT&& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments = std::forward<GenericAttachmentsT>(value); }
77 template<typename GenericAttachmentsT = Aws::Vector<GenericAttachment>>
78 ResponseCard& WithGenericAttachments(GenericAttachmentsT&& value) { SetGenericAttachments(std::forward<GenericAttachmentsT>(value)); return *this;}
79 template<typename GenericAttachmentsT = GenericAttachment>
80 ResponseCard& AddGenericAttachments(GenericAttachmentsT&& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments.emplace_back(std::forward<GenericAttachmentsT>(value)); return *this; }
82 private:
83
84 Aws::String m_version;
85 bool m_versionHasBeenSet = false;
86
87 ContentType m_contentType{ContentType::NOT_SET};
88 bool m_contentTypeHasBeenSet = false;
89
90 Aws::Vector<GenericAttachment> m_genericAttachments;
91 bool m_genericAttachmentsHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace LexRuntimeService
96} // namespace Aws
ResponseCard & AddGenericAttachments(GenericAttachmentsT &&value)
ResponseCard & WithContentType(ContentType value)
const Aws::Vector< GenericAttachment > & GetGenericAttachments() const
AWS_LEXRUNTIMESERVICE_API ResponseCard()=default
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
ResponseCard & WithGenericAttachments(GenericAttachmentsT &&value)
ResponseCard & WithVersion(VersionT &&value)
AWS_LEXRUNTIMESERVICE_API ResponseCard(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API ResponseCard & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersion() const
void SetGenericAttachments(GenericAttachmentsT &&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