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>
10#include <aws/guardduty/model/ImpersonatedUser.h>
43 template <
typename UsernameT = Aws::String>
45 m_usernameHasBeenSet =
true;
46 m_username = std::forward<UsernameT>(value);
48 template <
typename UsernameT = Aws::String>
61 template <
typename U
idT = Aws::String>
63 m_uidHasBeenSet =
true;
64 m_uid = std::forward<UidT>(value);
66 template <
typename U
idT = Aws::String>
68 SetUid(std::forward<UidT>(value));
79 template <
typename GroupsT = Aws::Vector<Aws::String>>
81 m_groupsHasBeenSet =
true;
82 m_groups = std::forward<GroupsT>(value);
84 template <
typename GroupsT = Aws::Vector<Aws::String>>
89 template <
typename GroupsT = Aws::String>
91 m_groupsHasBeenSet =
true;
92 m_groups.emplace_back(std::forward<GroupsT>(value));
104 template <
typename SessionNameT = Aws::Vector<Aws::String>>
106 m_sessionNameHasBeenSet =
true;
107 m_sessionName = std::forward<SessionNameT>(value);
109 template <
typename SessionNameT = Aws::Vector<Aws::String>>
114 template <
typename SessionNameT = Aws::String>
116 m_sessionNameHasBeenSet =
true;
117 m_sessionName.emplace_back(std::forward<SessionNameT>(value));
128 template <
typename ImpersonatedUserT = ImpersonatedUser>
130 m_impersonatedUserHasBeenSet =
true;
131 m_impersonatedUser = std::forward<ImpersonatedUserT>(value);
133 template <
typename ImpersonatedUserT = ImpersonatedUser>
149 bool m_usernameHasBeenSet =
false;
150 bool m_uidHasBeenSet =
false;
151 bool m_groupsHasBeenSet =
false;
152 bool m_sessionNameHasBeenSet =
false;
153 bool m_impersonatedUserHasBeenSet =
false;
KubernetesUserDetails & AddSessionName(SessionNameT &&value)
KubernetesUserDetails & WithUsername(UsernameT &&value)
bool GroupsHasBeenSet() const
void SetGroups(GroupsT &&value)
const Aws::String & GetUid() const
bool UsernameHasBeenSet() const
void SetUid(UidT &&value)
const ImpersonatedUser & GetImpersonatedUser() const
const Aws::String & GetUsername() const
AWS_GUARDDUTY_API KubernetesUserDetails()=default
AWS_GUARDDUTY_API KubernetesUserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
bool SessionNameHasBeenSet() const
KubernetesUserDetails & WithImpersonatedUser(ImpersonatedUserT &&value)
KubernetesUserDetails & WithGroups(GroupsT &&value)
const Aws::Vector< Aws::String > & GetSessionName() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesUserDetails & WithSessionName(SessionNameT &&value)
KubernetesUserDetails & AddGroups(GroupsT &&value)
bool UidHasBeenSet() const
KubernetesUserDetails & WithUid(UidT &&value)
void SetSessionName(SessionNameT &&value)
void SetImpersonatedUser(ImpersonatedUserT &&value)
bool ImpersonatedUserHasBeenSet() const
AWS_GUARDDUTY_API KubernetesUserDetails(Aws::Utils::Json::JsonView jsonValue)
void SetUsername(UsernameT &&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