AWS SDK for C++  1.9.109
AWS SDK for C++
AccessKeyDetails.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace GuardDuty
22 {
23 namespace Model
24 {
25 
32  {
33  public:
38 
39 
43  inline const Aws::String& GetAccessKeyId() const{ return m_accessKeyId; }
44 
48  inline bool AccessKeyIdHasBeenSet() const { return m_accessKeyIdHasBeenSet; }
49 
53  inline void SetAccessKeyId(const Aws::String& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = value; }
54 
58  inline void SetAccessKeyId(Aws::String&& value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId = std::move(value); }
59 
63  inline void SetAccessKeyId(const char* value) { m_accessKeyIdHasBeenSet = true; m_accessKeyId.assign(value); }
64 
68  inline AccessKeyDetails& WithAccessKeyId(const Aws::String& value) { SetAccessKeyId(value); return *this;}
69 
73  inline AccessKeyDetails& WithAccessKeyId(Aws::String&& value) { SetAccessKeyId(std::move(value)); return *this;}
74 
78  inline AccessKeyDetails& WithAccessKeyId(const char* value) { SetAccessKeyId(value); return *this;}
79 
80 
84  inline const Aws::String& GetPrincipalId() const{ return m_principalId; }
85 
89  inline bool PrincipalIdHasBeenSet() const { return m_principalIdHasBeenSet; }
90 
94  inline void SetPrincipalId(const Aws::String& value) { m_principalIdHasBeenSet = true; m_principalId = value; }
95 
99  inline void SetPrincipalId(Aws::String&& value) { m_principalIdHasBeenSet = true; m_principalId = std::move(value); }
100 
104  inline void SetPrincipalId(const char* value) { m_principalIdHasBeenSet = true; m_principalId.assign(value); }
105 
109  inline AccessKeyDetails& WithPrincipalId(const Aws::String& value) { SetPrincipalId(value); return *this;}
110 
114  inline AccessKeyDetails& WithPrincipalId(Aws::String&& value) { SetPrincipalId(std::move(value)); return *this;}
115 
119  inline AccessKeyDetails& WithPrincipalId(const char* value) { SetPrincipalId(value); return *this;}
120 
121 
125  inline const Aws::String& GetUserName() const{ return m_userName; }
126 
130  inline bool UserNameHasBeenSet() const { return m_userNameHasBeenSet; }
131 
135  inline void SetUserName(const Aws::String& value) { m_userNameHasBeenSet = true; m_userName = value; }
136 
140  inline void SetUserName(Aws::String&& value) { m_userNameHasBeenSet = true; m_userName = std::move(value); }
141 
145  inline void SetUserName(const char* value) { m_userNameHasBeenSet = true; m_userName.assign(value); }
146 
150  inline AccessKeyDetails& WithUserName(const Aws::String& value) { SetUserName(value); return *this;}
151 
155  inline AccessKeyDetails& WithUserName(Aws::String&& value) { SetUserName(std::move(value)); return *this;}
156 
160  inline AccessKeyDetails& WithUserName(const char* value) { SetUserName(value); return *this;}
161 
162 
166  inline const Aws::String& GetUserType() const{ return m_userType; }
167 
171  inline bool UserTypeHasBeenSet() const { return m_userTypeHasBeenSet; }
172 
176  inline void SetUserType(const Aws::String& value) { m_userTypeHasBeenSet = true; m_userType = value; }
177 
181  inline void SetUserType(Aws::String&& value) { m_userTypeHasBeenSet = true; m_userType = std::move(value); }
182 
186  inline void SetUserType(const char* value) { m_userTypeHasBeenSet = true; m_userType.assign(value); }
187 
191  inline AccessKeyDetails& WithUserType(const Aws::String& value) { SetUserType(value); return *this;}
192 
196  inline AccessKeyDetails& WithUserType(Aws::String&& value) { SetUserType(std::move(value)); return *this;}
197 
201  inline AccessKeyDetails& WithUserType(const char* value) { SetUserType(value); return *this;}
202 
203  private:
204 
205  Aws::String m_accessKeyId;
206  bool m_accessKeyIdHasBeenSet;
207 
208  Aws::String m_principalId;
209  bool m_principalIdHasBeenSet;
210 
211  Aws::String m_userName;
212  bool m_userNameHasBeenSet;
213 
214  Aws::String m_userType;
215  bool m_userTypeHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace GuardDuty
220 } // namespace Aws
Aws::GuardDuty::Model::AccessKeyDetails::WithAccessKeyId
AccessKeyDetails & WithAccessKeyId(Aws::String &&value)
Definition: AccessKeyDetails.h:73
Aws::GuardDuty::Model::AccessKeyDetails::SetUserType
void SetUserType(Aws::String &&value)
Definition: AccessKeyDetails.h:181
Aws::GuardDuty::Model::AccessKeyDetails::AccessKeyDetails
AccessKeyDetails()
Aws::GuardDuty::Model::AccessKeyDetails
Definition: AccessKeyDetails.h:32
Aws::GuardDuty::Model::AccessKeyDetails::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::AccessKeyDetails::SetUserType
void SetUserType(const char *value)
Definition: AccessKeyDetails.h:186
Aws::GuardDuty::Model::AccessKeyDetails::WithUserType
AccessKeyDetails & WithUserType(const Aws::String &value)
Definition: AccessKeyDetails.h:191
Aws::GuardDuty::Model::AccessKeyDetails::WithPrincipalId
AccessKeyDetails & WithPrincipalId(const char *value)
Definition: AccessKeyDetails.h:119
Aws::GuardDuty::Model::AccessKeyDetails::SetPrincipalId
void SetPrincipalId(const char *value)
Definition: AccessKeyDetails.h:104
Aws::GuardDuty::Model::AccessKeyDetails::SetPrincipalId
void SetPrincipalId(const Aws::String &value)
Definition: AccessKeyDetails.h:94
Aws::GuardDuty::Model::AccessKeyDetails::WithUserName
AccessKeyDetails & WithUserName(const char *value)
Definition: AccessKeyDetails.h:160
Aws::GuardDuty::Model::AccessKeyDetails::WithUserName
AccessKeyDetails & WithUserName(Aws::String &&value)
Definition: AccessKeyDetails.h:155
Aws::GuardDuty::Model::AccessKeyDetails::GetPrincipalId
const Aws::String & GetPrincipalId() const
Definition: AccessKeyDetails.h:84
Aws::GuardDuty::Model::AccessKeyDetails::SetAccessKeyId
void SetAccessKeyId(const char *value)
Definition: AccessKeyDetails.h:63
Aws::GuardDuty::Model::AccessKeyDetails::WithUserType
AccessKeyDetails & WithUserType(Aws::String &&value)
Definition: AccessKeyDetails.h:196
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::AccessKeyDetails::SetUserName
void SetUserName(const Aws::String &value)
Definition: AccessKeyDetails.h:135
Aws::GuardDuty::Model::AccessKeyDetails::WithPrincipalId
AccessKeyDetails & WithPrincipalId(const Aws::String &value)
Definition: AccessKeyDetails.h:109
Aws::GuardDuty::Model::AccessKeyDetails::WithUserType
AccessKeyDetails & WithUserType(const char *value)
Definition: AccessKeyDetails.h:201
Aws::GuardDuty::Model::AccessKeyDetails::GetUserName
const Aws::String & GetUserName() const
Definition: AccessKeyDetails.h:125
Aws::GuardDuty::Model::AccessKeyDetails::SetAccessKeyId
void SetAccessKeyId(const Aws::String &value)
Definition: AccessKeyDetails.h:53
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::AccessKeyDetails::WithAccessKeyId
AccessKeyDetails & WithAccessKeyId(const char *value)
Definition: AccessKeyDetails.h:78
Aws::GuardDuty::Model::AccessKeyDetails::SetUserName
void SetUserName(const char *value)
Definition: AccessKeyDetails.h:145
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::AccessKeyDetails::AccessKeyDetails
AccessKeyDetails(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AccessKeyDetails::SetUserType
void SetUserType(const Aws::String &value)
Definition: AccessKeyDetails.h:176
Aws::GuardDuty::Model::AccessKeyDetails::UserTypeHasBeenSet
bool UserTypeHasBeenSet() const
Definition: AccessKeyDetails.h:171
Aws::GuardDuty::Model::AccessKeyDetails::SetUserName
void SetUserName(Aws::String &&value)
Definition: AccessKeyDetails.h:140
Aws::GuardDuty::Model::AccessKeyDetails::WithAccessKeyId
AccessKeyDetails & WithAccessKeyId(const Aws::String &value)
Definition: AccessKeyDetails.h:68
Aws::GuardDuty::Model::AccessKeyDetails::GetAccessKeyId
const Aws::String & GetAccessKeyId() const
Definition: AccessKeyDetails.h:43
Aws::GuardDuty::Model::AccessKeyDetails::WithUserName
AccessKeyDetails & WithUserName(const Aws::String &value)
Definition: AccessKeyDetails.h:150
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::AccessKeyDetails::UserNameHasBeenSet
bool UserNameHasBeenSet() const
Definition: AccessKeyDetails.h:130
Aws::GuardDuty::Model::AccessKeyDetails::GetUserType
const Aws::String & GetUserType() const
Definition: AccessKeyDetails.h:166
Aws::GuardDuty::Model::AccessKeyDetails::SetAccessKeyId
void SetAccessKeyId(Aws::String &&value)
Definition: AccessKeyDetails.h:58
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::AccessKeyDetails::AccessKeyIdHasBeenSet
bool AccessKeyIdHasBeenSet() const
Definition: AccessKeyDetails.h:48
Aws::GuardDuty::Model::AccessKeyDetails::operator=
AccessKeyDetails & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::AccessKeyDetails::SetPrincipalId
void SetPrincipalId(Aws::String &&value)
Definition: AccessKeyDetails.h:99
Aws::GuardDuty::Model::AccessKeyDetails::PrincipalIdHasBeenSet
bool PrincipalIdHasBeenSet() const
Definition: AccessKeyDetails.h:89
Aws::GuardDuty::Model::AccessKeyDetails::WithPrincipalId
AccessKeyDetails & WithPrincipalId(Aws::String &&value)
Definition: AccessKeyDetails.h:114