/** * Simplified method form for invoking the GetUser operation. * * @see #getUserAsync(GetUserRequest) */ @Override public java.util.concurrent.Future<GetUserResult> getUserAsync() { return getUserAsync(new GetUserRequest()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetUserRequest == false) return false; GetUserRequest other = (GetUserRequest) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; return true; }
/** * <p> * The name of the user to get information about. * </p> * <p> * This parameter is optional. If it is not included, it defaults to the user making the request. This parameter * allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters * consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the * following characters: _+=,.@- * </p> * * @param userName * The name of the user to get information about.</p> * <p> * This parameter is optional. If it is not included, it defaults to the user making the request. This * parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of * characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include * any of the following characters: _+=,.@- * @return Returns a reference to this object so that method calls can be chained together. */ public GetUserRequest withUserName(String userName) { setUserName(userName); return this; }
private User fetchAwsUser(String username) { User user = null; try { GetUserRequest r = new GetUserRequest().withUserName(username); GetUserResult ur = aim.getUser(r); user = ur.getUser(); } catch (NoSuchEntityException e) { log.error("User {} not found: {}", username, e.getMessage()); } return user; } }
iam_.getUser(new GetUserRequest() .withUserName(userName_)) .getUser();
/** * Simplified method form for invoking the GetUser operation with an AsyncHandler. * * @see #getUserAsync(GetUserRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<GetUserResult> getUserAsync(com.amazonaws.handlers.AsyncHandler<GetUserRequest, GetUserResult> asyncHandler) { return getUserAsync(new GetUserRequest(), asyncHandler); }
iam_.getUser(new GetUserRequest() .withUserName(userName)) .getUser();
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); return hashCode; }
/** * <p> * The name of the user to get information about. * </p> * <p> * This parameter is optional. If it is not included, it defaults to the user making the request. This parameter * allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of characters * consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the * following characters: _+=,.@- * </p> * * @param userName * The name of the user to get information about.</p> * <p> * This parameter is optional. If it is not included, it defaults to the user making the request. This * parameter allows (through its <a href="http://wikipedia.org/wiki/regex">regex pattern</a>) a string of * characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include * any of the following characters: _+=,.@- * @return Returns a reference to this object so that method calls can be chained together. */ public GetUserRequest withUserName(String userName) { setUserName(userName); return this; }
/** * Simplified method form for invoking the GetUser operation. * * @see #getUserAsync(GetUserRequest) */ @Override public java.util.concurrent.Future<GetUserResult> getUserAsync() { return getUserAsync(new GetUserRequest()); }
user = client.getUser(new GetUserRequest().withUserName(username)).getUser();
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUserName() != null) sb.append("UserName: ").append(getUserName()); sb.append("}"); return sb.toString(); }
/** * Simplified method form for invoking the GetUser operation with an AsyncHandler. * * @see #getUserAsync(GetUserRequest, com.amazonaws.handlers.AsyncHandler) */ @Override public java.util.concurrent.Future<GetUserResult> getUserAsync(com.amazonaws.handlers.AsyncHandler<GetUserRequest, GetUserResult> asyncHandler) { return getUserAsync(new GetUserRequest(), asyncHandler); }
public Request<GetUserRequest> marshall(GetUserRequest getUserRequest) { if (getUserRequest == null) { throw new SdkClientException("Invalid argument passed to marshall(...)"); } Request<GetUserRequest> request = new DefaultRequest<GetUserRequest>(getUserRequest, "AmazonIdentityManagement"); request.addParameter("Action", "GetUser"); request.addParameter("Version", "2010-05-08"); request.setHttpMethod(HttpMethodName.POST); if (getUserRequest.getUserName() != null) { request.addParameter("UserName", StringUtils.fromString(getUserRequest.getUserName())); } return request; }
@Override public GetUserResult getUser() { return getUser(new GetUserRequest()); }
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); return hashCode; }
@Override public GetUserResult getUser() { return getUser(new GetUserRequest()); }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof GetUserRequest == false) return false; GetUserRequest other = (GetUserRequest) obj; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; return true; }
/** * Simplified method form for invoking the GetUser operation. * * @see #getUserAsync(GetUserRequest) */ @Override public java.util.concurrent.Future<GetUserResult> getUserAsync() { return getUserAsync(new GetUserRequest()); }
/** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getUserName() != null) sb.append("UserName: ").append(getUserName()); sb.append("}"); return sb.toString(); }