AWS SDK for C++

AWS SDK for C++ Version 1.11.608

Loading...
Searching...
No Matches
ImpersonatedUser.h
1
6#pragma once
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>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GuardDuty
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_GUARDDUTY_API ImpersonatedUser() = default;
37 AWS_GUARDDUTY_API ImpersonatedUser(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetUsername() const { return m_username; }
47 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
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>
51 ImpersonatedUser& WithUsername(UsernameT&& value) { SetUsername(std::forward<UsernameT>(value)); return *this;}
53
55
58 inline const Aws::Vector<Aws::String>& GetGroups() const { return m_groups; }
59 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
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>>
63 ImpersonatedUser& WithGroups(GroupsT&& value) { SetGroups(std::forward<GroupsT>(value)); return *this;}
64 template<typename GroupsT = Aws::String>
65 ImpersonatedUser& AddGroups(GroupsT&& value) { m_groupsHasBeenSet = true; m_groups.emplace_back(std::forward<GroupsT>(value)); return *this; }
67 private:
68
69 Aws::String m_username;
70 bool m_usernameHasBeenSet = false;
71
73 bool m_groupsHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace GuardDuty
78} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ImpersonatedUser & WithGroups(GroupsT &&value)
AWS_GUARDDUTY_API ImpersonatedUser & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetUsername() const
ImpersonatedUser & WithUsername(UsernameT &&value)
AWS_GUARDDUTY_API ImpersonatedUser()=default
AWS_GUARDDUTY_API ImpersonatedUser(Aws::Utils::Json::JsonView jsonValue)
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