7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/kendra/Kendra_EXPORTS.h>
10#include <aws/kendra/model/DataSourceGroup.h>
60 template <
typename TokenT = Aws::String>
62 m_tokenHasBeenSet =
true;
63 m_token = std::forward<TokenT>(value);
65 template <
typename TokenT = Aws::String>
67 SetToken(std::forward<TokenT>(value));
79 template <
typename UserIdT = Aws::String>
81 m_userIdHasBeenSet =
true;
82 m_userId = std::forward<UserIdT>(value);
84 template <
typename UserIdT = Aws::String>
98 template <
typename GroupsT = Aws::Vector<Aws::String>>
100 m_groupsHasBeenSet =
true;
101 m_groups = std::forward<GroupsT>(value);
103 template <
typename GroupsT = Aws::Vector<Aws::String>>
108 template <
typename GroupsT = Aws::String>
110 m_groupsHasBeenSet =
true;
111 m_groups.emplace_back(std::forward<GroupsT>(value));
123 template <
typename DataSourceGroupsT = Aws::Vector<DataSourceGroup>>
125 m_dataSourceGroupsHasBeenSet =
true;
126 m_dataSourceGroups = std::forward<DataSourceGroupsT>(value);
128 template <
typename DataSourceGroupsT = Aws::Vector<DataSourceGroup>>
133 template <
typename DataSourceGroupsT = DataSourceGroup>
135 m_dataSourceGroupsHasBeenSet =
true;
136 m_dataSourceGroups.emplace_back(std::forward<DataSourceGroupsT>(value));
148 bool m_tokenHasBeenSet =
false;
149 bool m_userIdHasBeenSet =
false;
150 bool m_groupsHasBeenSet =
false;
151 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