AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
54 inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
55 inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
56 inline ResponseCard& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
57 inline ResponseCard& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
58 inline ResponseCard& WithVersion(const char* value) { SetVersion(value); return *this;}
60
62
65 inline const ContentType& GetContentType() const{ return m_contentType; }
66 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
67 inline void SetContentType(const ContentType& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
68 inline void SetContentType(ContentType&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
69 inline ResponseCard& WithContentType(const ContentType& value) { SetContentType(value); return *this;}
70 inline ResponseCard& WithContentType(ContentType&& value) { SetContentType(std::move(value)); return *this;}
72
74
77 inline const Aws::Vector<GenericAttachment>& GetGenericAttachments() const{ return m_genericAttachments; }
78 inline bool GenericAttachmentsHasBeenSet() const { return m_genericAttachmentsHasBeenSet; }
79 inline void SetGenericAttachments(const Aws::Vector<GenericAttachment>& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments = value; }
80 inline void SetGenericAttachments(Aws::Vector<GenericAttachment>&& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments = std::move(value); }
83 inline ResponseCard& AddGenericAttachments(const GenericAttachment& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments.push_back(value); return *this; }
84 inline ResponseCard& AddGenericAttachments(GenericAttachment&& value) { m_genericAttachmentsHasBeenSet = true; m_genericAttachments.push_back(std::move(value)); return *this; }
86 private:
87
88 Aws::String m_version;
89 bool m_versionHasBeenSet = false;
90
91 ContentType m_contentType;
92 bool m_contentTypeHasBeenSet = false;
93
94 Aws::Vector<GenericAttachment> m_genericAttachments;
95 bool m_genericAttachmentsHasBeenSet = false;
96 };
97
98} // namespace Model
99} // namespace LexRuntimeService
100} // namespace Aws
ResponseCard & AddGenericAttachments(GenericAttachment &&value)
void SetGenericAttachments(const Aws::Vector< GenericAttachment > &value)
ResponseCard & WithGenericAttachments(Aws::Vector< GenericAttachment > &&value)
ResponseCard & WithVersion(Aws::String &&value)
const Aws::Vector< GenericAttachment > & GetGenericAttachments() const
ResponseCard & WithVersion(const char *value)
const ContentType & GetContentType() const
ResponseCard & WithContentType(ContentType &&value)
void SetVersion(const Aws::String &value)
void SetContentType(const ContentType &value)
ResponseCard & WithContentType(const ContentType &value)
ResponseCard & WithVersion(const Aws::String &value)
AWS_LEXRUNTIMESERVICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LEXRUNTIMESERVICE_API ResponseCard()
ResponseCard & AddGenericAttachments(const GenericAttachment &value)
AWS_LEXRUNTIMESERVICE_API ResponseCard(Aws::Utils::Json::JsonView jsonValue)
AWS_LEXRUNTIMESERVICE_API ResponseCard & operator=(Aws::Utils::Json::JsonView jsonValue)
ResponseCard & WithGenericAttachments(const Aws::Vector< GenericAttachment > &value)
const Aws::String & GetVersion() const
void SetContentType(ContentType &&value)
void SetGenericAttachments(Aws::Vector< GenericAttachment > &&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