AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
PersonasSummary.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/Persona.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace kendra {
22namespace Model {
23
36 public:
37 AWS_KENDRA_API PersonasSummary() = default;
40 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
47 inline const Aws::String& GetEntityId() const { return m_entityId; }
48 inline bool EntityIdHasBeenSet() const { return m_entityIdHasBeenSet; }
49 template <typename EntityIdT = Aws::String>
50 void SetEntityId(EntityIdT&& value) {
51 m_entityIdHasBeenSet = true;
52 m_entityId = std::forward<EntityIdT>(value);
53 }
54 template <typename EntityIdT = Aws::String>
55 PersonasSummary& WithEntityId(EntityIdT&& value) {
56 SetEntityId(std::forward<EntityIdT>(value));
57 return *this;
58 }
60
62
70 inline Persona GetPersona() const { return m_persona; }
71 inline bool PersonaHasBeenSet() const { return m_personaHasBeenSet; }
72 inline void SetPersona(Persona value) {
73 m_personaHasBeenSet = true;
74 m_persona = value;
75 }
77 SetPersona(value);
78 return *this;
79 }
81
83
86 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
87 inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; }
88 template <typename CreatedAtT = Aws::Utils::DateTime>
89 void SetCreatedAt(CreatedAtT&& value) {
90 m_createdAtHasBeenSet = true;
91 m_createdAt = std::forward<CreatedAtT>(value);
92 }
93 template <typename CreatedAtT = Aws::Utils::DateTime>
94 PersonasSummary& WithCreatedAt(CreatedAtT&& value) {
95 SetCreatedAt(std::forward<CreatedAtT>(value));
96 return *this;
97 }
99
101
104 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
105 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
106 template <typename UpdatedAtT = Aws::Utils::DateTime>
107 void SetUpdatedAt(UpdatedAtT&& value) {
108 m_updatedAtHasBeenSet = true;
109 m_updatedAt = std::forward<UpdatedAtT>(value);
110 }
111 template <typename UpdatedAtT = Aws::Utils::DateTime>
112 PersonasSummary& WithUpdatedAt(UpdatedAtT&& value) {
113 SetUpdatedAt(std::forward<UpdatedAtT>(value));
114 return *this;
115 }
117 private:
118 Aws::String m_entityId;
119 bool m_entityIdHasBeenSet = false;
120
121 Persona m_persona{Persona::NOT_SET};
122 bool m_personaHasBeenSet = false;
123
124 Aws::Utils::DateTime m_createdAt{};
125 bool m_createdAtHasBeenSet = false;
126
127 Aws::Utils::DateTime m_updatedAt{};
128 bool m_updatedAtHasBeenSet = false;
129};
130
131} // namespace Model
132} // namespace kendra
133} // namespace Aws
PersonasSummary & WithEntityId(EntityIdT &&value)
const Aws::String & GetEntityId() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetUpdatedAt() const
void SetCreatedAt(CreatedAtT &&value)
PersonasSummary & WithCreatedAt(CreatedAtT &&value)
AWS_KENDRA_API PersonasSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_KENDRA_API PersonasSummary()=default
void SetUpdatedAt(UpdatedAtT &&value)
PersonasSummary & WithUpdatedAt(UpdatedAtT &&value)
void SetEntityId(EntityIdT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
PersonasSummary & WithPersona(Persona value)
AWS_KENDRA_API PersonasSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue