AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
KubernetesUserDetails.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 <aws/guardduty/model/ImpersonatedUser.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API KubernetesUserDetails();
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetUsername() const{ return m_username; }
48 inline bool UsernameHasBeenSet() const { return m_usernameHasBeenSet; }
49 inline void SetUsername(const Aws::String& value) { m_usernameHasBeenSet = true; m_username = value; }
50 inline void SetUsername(Aws::String&& value) { m_usernameHasBeenSet = true; m_username = std::move(value); }
51 inline void SetUsername(const char* value) { m_usernameHasBeenSet = true; m_username.assign(value); }
52 inline KubernetesUserDetails& WithUsername(const Aws::String& value) { SetUsername(value); return *this;}
53 inline KubernetesUserDetails& WithUsername(Aws::String&& value) { SetUsername(std::move(value)); return *this;}
54 inline KubernetesUserDetails& WithUsername(const char* value) { SetUsername(value); return *this;}
56
58
61 inline const Aws::String& GetUid() const{ return m_uid; }
62 inline bool UidHasBeenSet() const { return m_uidHasBeenSet; }
63 inline void SetUid(const Aws::String& value) { m_uidHasBeenSet = true; m_uid = value; }
64 inline void SetUid(Aws::String&& value) { m_uidHasBeenSet = true; m_uid = std::move(value); }
65 inline void SetUid(const char* value) { m_uidHasBeenSet = true; m_uid.assign(value); }
66 inline KubernetesUserDetails& WithUid(const Aws::String& value) { SetUid(value); return *this;}
67 inline KubernetesUserDetails& WithUid(Aws::String&& value) { SetUid(std::move(value)); return *this;}
68 inline KubernetesUserDetails& WithUid(const char* value) { SetUid(value); return *this;}
70
72
75 inline const Aws::Vector<Aws::String>& GetGroups() const{ return m_groups; }
76 inline bool GroupsHasBeenSet() const { return m_groupsHasBeenSet; }
77 inline void SetGroups(const Aws::Vector<Aws::String>& value) { m_groupsHasBeenSet = true; m_groups = value; }
78 inline void SetGroups(Aws::Vector<Aws::String>&& value) { m_groupsHasBeenSet = true; m_groups = std::move(value); }
79 inline KubernetesUserDetails& WithGroups(const Aws::Vector<Aws::String>& value) { SetGroups(value); return *this;}
80 inline KubernetesUserDetails& WithGroups(Aws::Vector<Aws::String>&& value) { SetGroups(std::move(value)); return *this;}
81 inline KubernetesUserDetails& AddGroups(const Aws::String& value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
82 inline KubernetesUserDetails& AddGroups(Aws::String&& value) { m_groupsHasBeenSet = true; m_groups.push_back(std::move(value)); return *this; }
83 inline KubernetesUserDetails& AddGroups(const char* value) { m_groupsHasBeenSet = true; m_groups.push_back(value); return *this; }
85
87
91 inline const Aws::Vector<Aws::String>& GetSessionName() const{ return m_sessionName; }
92 inline bool SessionNameHasBeenSet() const { return m_sessionNameHasBeenSet; }
93 inline void SetSessionName(const Aws::Vector<Aws::String>& value) { m_sessionNameHasBeenSet = true; m_sessionName = value; }
94 inline void SetSessionName(Aws::Vector<Aws::String>&& value) { m_sessionNameHasBeenSet = true; m_sessionName = std::move(value); }
96 inline KubernetesUserDetails& WithSessionName(Aws::Vector<Aws::String>&& value) { SetSessionName(std::move(value)); return *this;}
97 inline KubernetesUserDetails& AddSessionName(const Aws::String& value) { m_sessionNameHasBeenSet = true; m_sessionName.push_back(value); return *this; }
98 inline KubernetesUserDetails& AddSessionName(Aws::String&& value) { m_sessionNameHasBeenSet = true; m_sessionName.push_back(std::move(value)); return *this; }
99 inline KubernetesUserDetails& AddSessionName(const char* value) { m_sessionNameHasBeenSet = true; m_sessionName.push_back(value); return *this; }
101
103
106 inline const ImpersonatedUser& GetImpersonatedUser() const{ return m_impersonatedUser; }
107 inline bool ImpersonatedUserHasBeenSet() const { return m_impersonatedUserHasBeenSet; }
108 inline void SetImpersonatedUser(const ImpersonatedUser& value) { m_impersonatedUserHasBeenSet = true; m_impersonatedUser = value; }
109 inline void SetImpersonatedUser(ImpersonatedUser&& value) { m_impersonatedUserHasBeenSet = true; m_impersonatedUser = std::move(value); }
111 inline KubernetesUserDetails& WithImpersonatedUser(ImpersonatedUser&& value) { SetImpersonatedUser(std::move(value)); return *this;}
113 private:
114
115 Aws::String m_username;
116 bool m_usernameHasBeenSet = false;
117
118 Aws::String m_uid;
119 bool m_uidHasBeenSet = false;
120
122 bool m_groupsHasBeenSet = false;
123
124 Aws::Vector<Aws::String> m_sessionName;
125 bool m_sessionNameHasBeenSet = false;
126
127 ImpersonatedUser m_impersonatedUser;
128 bool m_impersonatedUserHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace GuardDuty
133} // namespace Aws
KubernetesUserDetails & WithGroups(const Aws::Vector< Aws::String > &value)
KubernetesUserDetails & WithImpersonatedUser(const ImpersonatedUser &value)
void SetGroups(const Aws::Vector< Aws::String > &value)
KubernetesUserDetails & WithImpersonatedUser(ImpersonatedUser &&value)
KubernetesUserDetails & AddGroups(const Aws::String &value)
KubernetesUserDetails & AddGroups(const char *value)
KubernetesUserDetails & AddGroups(Aws::String &&value)
KubernetesUserDetails & AddSessionName(Aws::String &&value)
KubernetesUserDetails & WithUsername(const Aws::String &value)
void SetImpersonatedUser(const ImpersonatedUser &value)
void SetSessionName(Aws::Vector< Aws::String > &&value)
KubernetesUserDetails & WithUid(const Aws::String &value)
const ImpersonatedUser & GetImpersonatedUser() const
KubernetesUserDetails & WithUid(Aws::String &&value)
KubernetesUserDetails & WithSessionName(const Aws::Vector< Aws::String > &value)
void SetSessionName(const Aws::Vector< Aws::String > &value)
KubernetesUserDetails & WithUsername(const char *value)
AWS_GUARDDUTY_API KubernetesUserDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetGroups(Aws::Vector< Aws::String > &&value)
KubernetesUserDetails & WithGroups(Aws::Vector< Aws::String > &&value)
KubernetesUserDetails & WithUid(const char *value)
KubernetesUserDetails & AddSessionName(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSessionName() const
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
KubernetesUserDetails & WithSessionName(Aws::Vector< Aws::String > &&value)
KubernetesUserDetails & AddSessionName(const char *value)
AWS_GUARDDUTY_API KubernetesUserDetails(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetGroups() const
KubernetesUserDetails & WithUsername(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue