public interface User
User
resource.
Each User
object is uniquely identified by these identifier(s):
Modifier and Type | Method and Description |
---|---|
void |
addGroup(AddUserToGroupRequest request)
Performs the
AddGroup action. |
void |
addGroup(AddUserToGroupRequest request,
ResultCapture<Void> extractor)
Performs the
AddGroup action and use a ResultCapture to
retrieve the low-level client response. |
void |
addGroup(String groupName)
The convenient method form for the
AddGroup action. |
void |
addGroup(String groupName,
ResultCapture<Void> extractor)
The convenient method form for the
AddGroup action. |
AccessKey |
createAccessKey()
The convenient method form for the
CreateAccessKey action. |
AccessKey |
createAccessKey(CreateAccessKeyRequest request)
Performs the
CreateAccessKey action. |
AccessKey |
createAccessKey(CreateAccessKeyRequest request,
ResultCapture<CreateAccessKeyResult> extractor)
Performs the
CreateAccessKey action and use a ResultCapture
to retrieve the low-level client response. |
AccessKey |
createAccessKey(ResultCapture<CreateAccessKeyResult> extractor)
The convenient method form for the
CreateAccessKey action. |
UserPolicy |
createPolicy(PutUserPolicyRequest request)
Performs the
CreatePolicy action. |
UserPolicy |
createPolicy(PutUserPolicyRequest request,
ResultCapture<Void> extractor)
Performs the
CreatePolicy action and use a ResultCapture to
retrieve the low-level client response. |
UserPolicy |
createPolicy(String policyName,
String policyDocument)
The convenient method form for the
CreatePolicy action. |
UserPolicy |
createPolicy(String policyName,
String policyDocument,
ResultCapture<Void> extractor)
The convenient method form for the
CreatePolicy action. |
void |
delete()
The convenient method form for the
Delete action. |
void |
delete(DeleteUserRequest request)
Performs the
Delete action. |
void |
delete(DeleteUserRequest request,
ResultCapture<Void> extractor)
Performs the
Delete action and use a ResultCapture to
retrieve the low-level client response. |
void |
delete(ResultCapture<Void> extractor)
The convenient method form for the
Delete action. |
MfaDevice |
enableMfa(EnableMFADeviceRequest request)
Performs the
EnableMfa action. |
MfaDevice |
enableMfa(EnableMFADeviceRequest request,
ResultCapture<Void> extractor)
Performs the
EnableMfa action and use a ResultCapture to
retrieve the low-level client response. |
MfaDevice |
enableMfa(String serialNumber,
String authenticationCode1,
String authenticationCode2)
The convenient method form for the
EnableMfa action. |
MfaDevice |
enableMfa(String serialNumber,
String authenticationCode1,
String authenticationCode2,
ResultCapture<Void> extractor)
The convenient method form for the
EnableMfa action. |
AccessKey |
getAccessKey(String id)
Gets a subresource.
|
AccessKeyCollection |
getAccessKeys()
Retrieves the AccessKeys collection referenced by this resource.
|
AccessKeyCollection |
getAccessKeys(ListAccessKeysRequest request)
Retrieves the AccessKeys collection referenced by this resource.
|
String |
getArn()
Gets the value of the Arn attribute.
|
Date |
getCreateDate()
Gets the value of the CreateDate attribute.
|
GroupCollection |
getGroups()
Retrieves the Groups collection referenced by this resource.
|
GroupCollection |
getGroups(ListGroupsForUserRequest request)
Retrieves the Groups collection referenced by this resource.
|
LoginProfile |
getLoginProfile()
Gets a subresource.
|
MfaDevice |
getMfaDevice(String serialNumber)
Gets a subresource.
|
MfaDeviceCollection |
getMfaDevices()
Retrieves the MfaDevices collection referenced by this resource.
|
MfaDeviceCollection |
getMfaDevices(ListMFADevicesRequest request)
Retrieves the MfaDevices collection referenced by this resource.
|
String |
getName()
Gets the value of the Name identifier.
|
Date |
getPasswordLastUsed()
Gets the value of the PasswordLastUsed attribute.
|
String |
getPath()
Gets the value of the Path attribute.
|
UserPolicyCollection |
getPolicies()
Retrieves the Policies collection referenced by this resource.
|
UserPolicyCollection |
getPolicies(ListUserPoliciesRequest request)
Retrieves the Policies collection referenced by this resource.
|
String |
getUserId()
Gets the value of the UserId attribute.
|
UserPolicy |
getUserPolicy(String name)
Gets a subresource.
|
boolean |
isLoaded()
Returns true if this resource's attributes have been loaded.
|
boolean |
load()
Makes a call to the service to load this resource's attributes if they
are not loaded yet.
|
boolean |
load(GetUserRequest request)
Makes a call to the service to load this resource's attributes if they
are not loaded yet.
|
boolean |
load(GetUserRequest request,
ResultCapture<GetUserResult> extractor)
Makes a call to the service to load this resource's attributes if they
are not loaded yet, and use a ResultCapture to retrieve the low-level
client response
The following request parameters will be populated from the data of this
User resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name identifier. |
void |
removeGroup(RemoveUserFromGroupRequest request)
Performs the
RemoveGroup action. |
void |
removeGroup(RemoveUserFromGroupRequest request,
ResultCapture<Void> extractor)
Performs the
RemoveGroup action and use a ResultCapture to
retrieve the low-level client response. |
void |
removeGroup(String groupName)
The convenient method form for the
RemoveGroup action. |
void |
removeGroup(String groupName,
ResultCapture<Void> extractor)
The convenient method form for the
RemoveGroup action. |
User |
update()
The convenient method form for the
Update action. |
User |
update(ResultCapture<Void> extractor)
The convenient method form for the
Update action. |
User |
update(UpdateUserRequest request)
Performs the
Update action. |
User |
update(UpdateUserRequest request,
ResultCapture<Void> extractor)
Performs the
Update action and use a ResultCapture to
retrieve the low-level client response. |
boolean isLoaded()
false
, calls to attribute getter methods on this
instance will make an implicit call to load()
to retrieve the
value.boolean load()
true
if the resource is not yet loaded when this
method was invoked, which indicates that a service call has been
made to retrieve the attributes.load(GetUserRequest)
boolean load(GetUserRequest request)
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
true
if the resource is not yet loaded when this
method was invoked, which indicates that a service call has been
made to retrieve the attributes.GetUserRequest
boolean load(GetUserRequest request, ResultCapture<GetUserResult> extractor)
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
true
if the resource is not yet loaded when this
method was invoked, which indicates that a service call has been
made to retrieve the attributes.GetUserRequest
String getName()
Date getPasswordLastUsed()
load()
is made to retrieve the value of the
attribute.String getArn()
load()
is made to retrieve the value of the attribute.String getUserId()
load()
is made to retrieve the value of the
attribute.Date getCreateDate()
load()
is made to retrieve the value of the
attribute.String getPath()
load()
is made to retrieve the value of the attribute.LoginProfile getLoginProfile()
UserPolicy getUserPolicy(String name)
GroupCollection getGroups()
GroupCollection getGroups(ListGroupsForUserRequest request)
UserPolicyCollection getPolicies()
UserPolicyCollection getPolicies(ListUserPoliciesRequest request)
MfaDeviceCollection getMfaDevices()
MfaDeviceCollection getMfaDevices(ListMFADevicesRequest request)
AccessKeyCollection getAccessKeys()
AccessKeyCollection getAccessKeys(ListAccessKeysRequest request)
void addGroup(AddUserToGroupRequest request)
AddGroup
action.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
AddUserToGroupRequest
void addGroup(AddUserToGroupRequest request, ResultCapture<Void> extractor)
AddGroup
action and use a ResultCapture to
retrieve the low-level client response.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
AddUserToGroupRequest
void addGroup(String groupName)
AddGroup
action.addGroup(AddUserToGroupRequest)
void addGroup(String groupName, ResultCapture<Void> extractor)
AddGroup
action.User update(UpdateUserRequest request)
Update
action.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
User
resource object associated with the result
of this action.UpdateUserRequest
User update(UpdateUserRequest request, ResultCapture<Void> extractor)
Update
action and use a ResultCapture to
retrieve the low-level client response.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
User
resource object associated with the result
of this action.UpdateUserRequest
User update()
Update
action.update(UpdateUserRequest)
User update(ResultCapture<Void> extractor)
Update
action.MfaDevice enableMfa(EnableMFADeviceRequest request)
EnableMfa
action.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
MfaDevice
resource object associated with the
result of this action.EnableMFADeviceRequest
MfaDevice enableMfa(EnableMFADeviceRequest request, ResultCapture<Void> extractor)
EnableMfa
action and use a ResultCapture to
retrieve the low-level client response.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
MfaDevice
resource object associated with the
result of this action.EnableMFADeviceRequest
MfaDevice enableMfa(String serialNumber, String authenticationCode1, String authenticationCode2)
EnableMfa
action.enableMfa(EnableMFADeviceRequest)
MfaDevice enableMfa(String serialNumber, String authenticationCode1, String authenticationCode2, ResultCapture<Void> extractor)
EnableMfa
action.void removeGroup(RemoveUserFromGroupRequest request)
RemoveGroup
action.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
RemoveUserFromGroupRequest
void removeGroup(RemoveUserFromGroupRequest request, ResultCapture<Void> extractor)
RemoveGroup
action and use a ResultCapture to
retrieve the low-level client response.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
RemoveUserFromGroupRequest
void removeGroup(String groupName)
RemoveGroup
action.void removeGroup(String groupName, ResultCapture<Void> extractor)
RemoveGroup
action.AccessKey createAccessKey(CreateAccessKeyRequest request)
CreateAccessKey
action.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
AccessKey
resource object associated with the
result of this action.CreateAccessKeyRequest
AccessKey createAccessKey(CreateAccessKeyRequest request, ResultCapture<CreateAccessKeyResult> extractor)
CreateAccessKey
action and use a ResultCapture
to retrieve the low-level client response.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
AccessKey
resource object associated with the
result of this action.CreateAccessKeyRequest
AccessKey createAccessKey()
CreateAccessKey
action.AccessKey createAccessKey(ResultCapture<CreateAccessKeyResult> extractor)
CreateAccessKey
action.void delete(DeleteUserRequest request)
Delete
action.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
DeleteUserRequest
void delete(DeleteUserRequest request, ResultCapture<Void> extractor)
Delete
action and use a ResultCapture to
retrieve the low-level client response.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
DeleteUserRequest
void delete()
Delete
action.delete(DeleteUserRequest)
void delete(ResultCapture<Void> extractor)
Delete
action.UserPolicy createPolicy(PutUserPolicyRequest request)
CreatePolicy
action.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
UserPolicy
resource object associated with the
result of this action.PutUserPolicyRequest
UserPolicy createPolicy(PutUserPolicyRequest request, ResultCapture<Void> extractor)
CreatePolicy
action and use a ResultCapture to
retrieve the low-level client response.
The following request parameters will be populated from the data of this
User
resource, and any conflicting parameter value set in
the request will be overridden:
UserName
- mapped from the Name
identifier.
UserPolicy
resource object associated with the
result of this action.PutUserPolicyRequest
UserPolicy createPolicy(String policyName, String policyDocument)
CreatePolicy
action.createPolicy(PutUserPolicyRequest)
UserPolicy createPolicy(String policyName, String policyDocument, ResultCapture<Void> extractor)
CreatePolicy
action.Copyright © 2014. All rights reserved.