AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
49 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
50 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
51 inline ImpersonatedUser& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
52 inline ImpersonatedUser& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
53 inline ImpersonatedUser& WithUsername(const char* value) { SetUsername(value); return *this;}
55
57
60 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
61 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
62 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
63 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
64 inline ImpersonatedUser& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
65 inline ImpersonatedUser& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
66 inline ImpersonatedUser& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
67 inline ImpersonatedUser& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
68 inline ImpersonatedUser& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
70 private:
71
72 Aws::String m_username;
73 bool m_usernameHasBeenSet = false;
74
76 bool m_groupsHasBeenSet = false;
77 };
78
79} // namespace Model
80} // namespace GuardDuty
81} // namespace Aws
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
ImpersonatedUser & WithUsername(const Aws::String &value)
ImpersonatedUser & AddGroups(const Aws::String &value)
ImpersonatedUser & WithGroups(const Aws::Vector< Aws::String > &value)
AWS_GUARDDUTY_API ImpersonatedUser & operator=(Aws::Utils::Json::JsonView jsonValue)
ImpersonatedUser & AddGroups(Aws::String &&value)
ImpersonatedUser & WithUsername(const char *value)
const Aws::String & GetUsername() const
AWS_GUARDDUTY_API ImpersonatedUser(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(const Aws::Vector< Aws::String > &value)
void SetGroups(Aws::Vector< Aws::String > &&value)
ImpersonatedUser & WithGroups(Aws::Vector< Aws::String > &&value)
ImpersonatedUser & WithUsername(Aws::String &&value)
ImpersonatedUser & AddGroups(const char *value)
void SetUsername(const Aws::String &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