7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
48 template<
typename UsernameT = Aws::String>
49 void SetUsername(UsernameT&& value) { m_usernameHasBeenSet =
true; m_username = std::forward<UsernameT>(value); }
50 template<
typename UsernameT = Aws::String>
60 template<
typename GroupsT = Aws::Vector<Aws::String>>
61 void SetGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups = std::forward<GroupsT>(value); }
62 template<
typename GroupsT = Aws::Vector<Aws::String>>
64 template<
typename GroupsT = Aws::String>
65 ImpersonatedUser&
AddGroups(GroupsT&& value) { m_groupsHasBeenSet =
true; m_groups.emplace_back(std::forward<GroupsT>(value));
return *
this; }
70 bool m_usernameHasBeenSet =
false;
73 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