7#include <aws/kendra/Kendra_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/kendra/model/DataSourceGroup.h>
66 template<
typename TokenT = Aws::String>
67 void SetToken(TokenT&& value) { m_tokenHasBeenSet =
true; m_token = std::forward<TokenT>(value); }
68 template<
typename TokenT = Aws::String>
79 template<
typename UserIdT = Aws::String>
80 void SetUserId(UserIdT&& value) { m_userIdHasBeenSet =
true; m_userId = std::forward<UserIdT>(value); }
81 template<
typename UserIdT = Aws::String>
92 template<
typename GroupsT = Aws::Vector<Aws::String>>
93 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
94 template<
typename GroupsT = Aws::Vector<Aws::String>>
96 template<
typename GroupsT = Aws::String>
97 UserContext&
AddGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups.emplace_back(std::forward<GroupsT>(value));
return *
this; }
107 template<
typename DataSourceGroupsT = Aws::Vector<DataSourceGroup>>
108 void SetDataSourceGroups(DataSourceGroupsT&& value) { m_dataSourceGroupsHasBeenSet =
true; m_dataSourceGroups = std::forward<DataSourceGroupsT>(value); }
109 template<
typename DataSourceGroupsT = Aws::Vector<DataSourceGroup>>
111 template<
typename DataSourceGroupsT = DataSourceGroup>
112 UserContext&
AddDataSourceGroups(DataSourceGroupsT&& value) { m_dataSourceGroupsHasBeenSet =
true; m_dataSourceGroups.emplace_back(std::forward<DataSourceGroupsT>(value));
return *
this; }
117 bool m_tokenHasBeenSet =
false;
120 bool m_userIdHasBeenSet =
false;
123 bool m_groupsHasBeenSet =
false;
126 bool m_dataSourceGroupsHasBeenSet =
false;
UserContext & WithGroups(GroupsT &&value)
AWS_KENDRA_API UserContext & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GroupsHasBeenSet() const
UserContext & WithToken(TokenT &&value)
bool DataSourceGroupsHasBeenSet() const
bool TokenHasBeenSet() const
const Aws::String & GetUserId() const
const Aws::Vector< DataSourceGroup > & GetDataSourceGroups() const
UserContext & AddDataSourceGroups(DataSourceGroupsT &&value)
void SetUserId(UserIdT &&value)
AWS_KENDRA_API UserContext()=default
UserContext & AddGroups(GroupsT &&value)
UserContext & WithUserId(UserIdT &&value)
bool UserIdHasBeenSet() const
const Aws::String & GetToken() const
AWS_KENDRA_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_KENDRA_API UserContext(Aws::Utils::Json::JsonView jsonValue)
void SetDataSourceGroups(DataSourceGroupsT &&value)
void SetToken(TokenT &&value)
const Aws::Vector< Aws::String > & GetGroups() const
UserContext & WithDataSourceGroups(DataSourceGroupsT &&value)
void SetGroups(GroupsT &&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