AWS SDK for C++

AWS SDK for C++ Version 1.11.683

Loading...
Searching...
No Matches
ExperiencesSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/Kendra_EXPORTS.h>
11#include <aws/kendra/model/ExperienceEndpoint.h>
12#include <aws/kendra/model/ExperienceStatus.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace kendra {
24namespace Model {
25
36 public:
37 AWS_KENDRA_API ExperiencesSummary() = default;
40 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template <typename NameT = Aws::String>
49 void SetName(NameT&& value) {
50 m_nameHasBeenSet = true;
51 m_name = std::forward<NameT>(value);
52 }
53 template <typename NameT = Aws::String>
54 ExperiencesSummary& WithName(NameT&& value) {
55 SetName(std::forward<NameT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetId() const { return m_id; }
65 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
66 template <typename IdT = Aws::String>
67 void SetId(IdT&& value) {
68 m_idHasBeenSet = true;
69 m_id = std::forward<IdT>(value);
70 }
71 template <typename IdT = Aws::String>
72 ExperiencesSummary& WithId(IdT&& value) {
73 SetId(std::forward<IdT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
83 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
84 template <typename CreatedAtT = Aws::Utils::DateTime>
85 void SetCreatedAt(CreatedAtT&& value) {
86 m_createdAtHasBeenSet = true;
87 m_createdAt = std::forward<CreatedAtT>(value);
88 }
89 template <typename CreatedAtT = Aws::Utils::DateTime>
90 ExperiencesSummary& WithCreatedAt(CreatedAtT&& value) {
91 SetCreatedAt(std::forward<CreatedAtT>(value));
92 return *this;
93 }
95
97
100 inline ExperienceStatus GetStatus() const { return m_status; }
101 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
102 inline void SetStatus(ExperienceStatus value) {
103 m_statusHasBeenSet = true;
104 m_status = value;
105 }
107 SetStatus(value);
108 return *this;
109 }
111
113
117 inline const Aws::Vector<ExperienceEndpoint>& GetEndpoints() const { return m_endpoints; }
118 inline bool EndpointsHasBeenSet() const { return m_endpointsHasBeenSet; }
119 template <typename EndpointsT = Aws::Vector<ExperienceEndpoint>>
120 void SetEndpoints(EndpointsT&& value) {
121 m_endpointsHasBeenSet = true;
122 m_endpoints = std::forward<EndpointsT>(value);
123 }
124 template <typename EndpointsT = Aws::Vector<ExperienceEndpoint>>
125 ExperiencesSummary& WithEndpoints(EndpointsT&& value) {
126 SetEndpoints(std::forward<EndpointsT>(value));
127 return *this;
128 }
129 template <typename EndpointsT = ExperienceEndpoint>
130 ExperiencesSummary& AddEndpoints(EndpointsT&& value) {
131 m_endpointsHasBeenSet = true;
132 m_endpoints.emplace_back(std::forward<EndpointsT>(value));
133 return *this;
134 }
136 private:
137 Aws::String m_name;
138 bool m_nameHasBeenSet = false;
139
140 Aws::String m_id;
141 bool m_idHasBeenSet = false;
142
143 Aws::Utils::DateTime m_createdAt{};
144 bool m_createdAtHasBeenSet = false;
145
147 bool m_statusHasBeenSet = false;
148
150 bool m_endpointsHasBeenSet = false;
151};
152
153} // namespace Model
154} // namespace kendra
155} // namespace Aws
ExperiencesSummary & AddEndpoints(EndpointsT &&value)
ExperiencesSummary & WithStatus(ExperienceStatus value)
AWS_KENDRA_API ExperiencesSummary(Aws::Utils::Json::JsonView jsonValue)
ExperiencesSummary & WithName(NameT &&value)
ExperiencesSummary & WithCreatedAt(CreatedAtT &&value)
ExperiencesSummary & WithId(IdT &&value)
void SetStatus(ExperienceStatus value)
AWS_KENDRA_API ExperiencesSummary()=default
const Aws::Vector< ExperienceEndpoint > & GetEndpoints() const
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_KENDRA_API ExperiencesSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
ExperiencesSummary & WithEndpoints(EndpointsT &&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