AWS SDK for C++

AWS SDK for C++ Version 1.11.744

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