AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
DataSourceSummary.h
1
6#pragma once
7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/kendra/model/DataSourceType.h>
10#include <aws/core/utils/DateTime.h>
11#include <aws/kendra/model/DataSourceStatus.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 kendra
25{
26namespace Model
27{
28
36 {
37 public:
38 AWS_KENDRA_API DataSourceSummary() = default;
41 AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline const Aws::String& GetName() const { return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 DataSourceSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
60 inline const Aws::String& GetId() const { return m_id; }
61 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
62 template<typename IdT = Aws::String>
63 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
64 template<typename IdT = Aws::String>
65 DataSourceSummary& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
67
69
72 inline DataSourceType GetType() const { return m_type; }
73 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
74 inline void SetType(DataSourceType value) { m_typeHasBeenSet = true; m_type = value; }
75 inline DataSourceSummary& WithType(DataSourceType value) { SetType(value); return *this;}
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) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
86 template<typename CreatedAtT = Aws::Utils::DateTime>
87 DataSourceSummary& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
89
91
94 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
95 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
96 template<typename UpdatedAtT = Aws::Utils::DateTime>
97 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
98 template<typename UpdatedAtT = Aws::Utils::DateTime>
99 DataSourceSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
101
103
107 inline DataSourceStatus GetStatus() const { return m_status; }
108 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
109 inline void SetStatus(DataSourceStatus value) { m_statusHasBeenSet = true; m_status = value; }
110 inline DataSourceSummary& WithStatus(DataSourceStatus value) { SetStatus(value); return *this;}
112
114
121 inline const Aws::String& GetLanguageCode() const { return m_languageCode; }
122 inline bool LanguageCodeHasBeenSet() const { return m_languageCodeHasBeenSet; }
123 template<typename LanguageCodeT = Aws::String>
124 void SetLanguageCode(LanguageCodeT&& value) { m_languageCodeHasBeenSet = true; m_languageCode = std::forward<LanguageCodeT>(value); }
125 template<typename LanguageCodeT = Aws::String>
126 DataSourceSummary& WithLanguageCode(LanguageCodeT&& value) { SetLanguageCode(std::forward<LanguageCodeT>(value)); return *this;}
128 private:
129
130 Aws::String m_name;
131 bool m_nameHasBeenSet = false;
132
133 Aws::String m_id;
134 bool m_idHasBeenSet = false;
135
137 bool m_typeHasBeenSet = false;
138
139 Aws::Utils::DateTime m_createdAt{};
140 bool m_createdAtHasBeenSet = false;
141
142 Aws::Utils::DateTime m_updatedAt{};
143 bool m_updatedAtHasBeenSet = false;
144
146 bool m_statusHasBeenSet = false;
147
148 Aws::String m_languageCode;
149 bool m_languageCodeHasBeenSet = false;
150 };
151
152} // namespace Model
153} // namespace kendra
154} // namespace Aws
DataSourceSummary & WithType(DataSourceType value)
void SetStatus(DataSourceStatus value)
const Aws::String & GetLanguageCode() const
void SetLanguageCode(LanguageCodeT &&value)
DataSourceSummary & WithCreatedAt(CreatedAtT &&value)
AWS_KENDRA_API DataSourceSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Utils::DateTime & GetUpdatedAt() const
DataSourceSummary & WithLanguageCode(LanguageCodeT &&value)
DataSourceSummary & WithName(NameT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
AWS_KENDRA_API DataSourceSummary()=default
DataSourceSummary & WithStatus(DataSourceStatus value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
DataSourceSummary & WithUpdatedAt(UpdatedAtT &&value)
AWS_KENDRA_API DataSourceSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
DataSourceSummary & WithId(IdT &&value)
const Aws::String & GetId() const
const Aws::String & GetName() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue