7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
42 template <
typename UsernameT = Aws::String>
44 m_usernameHasBeenSet =
true;
45 m_username = std::forward<UsernameT>(value);
47 template <
typename UsernameT = Aws::String>
60 template <
typename GroupsT = Aws::Vector<Aws::String>>
62 m_groupsHasBeenSet =
true;
63 m_groups = std::forward<GroupsT>(value);
65 template <
typename GroupsT = Aws::Vector<Aws::String>>
70 template <
typename GroupsT = Aws::String>
72 m_groupsHasBeenSet =
true;
73 m_groups.emplace_back(std::forward<GroupsT>(value));
81 bool m_usernameHasBeenSet =
false;
82 bool m_groupsHasBeenSet =
false;
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ImpersonatedUser & WithGroups(GroupsT &&value)
AWS_GUARDDUTY_API ImpersonatedUser & operator=(Aws::Utils::Json::JsonView jsonValue)
bool GroupsHasBeenSet() const
const Aws::String & GetUsername() const
void SetGroups(GroupsT &&value)
ImpersonatedUser & WithUsername(UsernameT &&value)
AWS_GUARDDUTY_API ImpersonatedUser()=default
void SetUsername(UsernameT &&value)
AWS_GUARDDUTY_API ImpersonatedUser(Aws::Utils::Json::JsonView jsonValue)
bool UsernameHasBeenSet() const
ImpersonatedUser & AddGroups(GroupsT &&value)
const Aws::Vector< Aws::String > & GetGroups() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue