7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/kendra/Kendra_EXPORTS.h>
9#include <aws/kendra/model/PrincipalType.h>
10#include <aws/kendra/model/ReadAccessType.h>
44 template <
typename NameT = Aws::String>
46 m_nameHasBeenSet =
true;
47 m_name = std::forward<NameT>(value);
49 template <
typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
63 m_typeHasBeenSet =
true;
79 m_accessHasBeenSet =
true;
95 template <
typename DataSourceIdT = Aws::String>
97 m_dataSourceIdHasBeenSet =
true;
98 m_dataSourceId = std::forward<DataSourceIdT>(value);
100 template <
typename DataSourceIdT = Aws::String>
108 bool m_nameHasBeenSet =
false;
111 bool m_typeHasBeenSet =
false;
114 bool m_accessHasBeenSet =
false;
117 bool m_dataSourceIdHasBeenSet =
false;
void SetAccess(ReadAccessType value)
bool TypeHasBeenSet() const
const Aws::String & GetDataSourceId() const
ReadAccessType GetAccess() const
AWS_KENDRA_API Principal(Aws::Utils::Json::JsonView jsonValue)
Principal & WithName(NameT &&value)
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
bool DataSourceIdHasBeenSet() const
const Aws::String & GetName() const
Principal & WithAccess(ReadAccessType value)
bool AccessHasBeenSet() const
AWS_KENDRA_API Principal()=default
void SetDataSourceId(DataSourceIdT &&value)
void SetType(PrincipalType value)
Principal & WithType(PrincipalType value)
Principal & WithDataSourceId(DataSourceIdT &&value)
AWS_KENDRA_API Principal & operator=(Aws::Utils::Json::JsonView jsonValue)
PrincipalType GetType() const
void SetName(NameT &&value)
bool NameHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue