@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getPermissionsBoundary() == null) ? 0 : getPermissionsBoundary().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
setPath(path); return this;
@Override public User createUser(String userName, ResultCapture<CreateUserResult> extractor) { CreateUserRequest request = new CreateUserRequest() .withUserName(userName); return createUser(request, extractor); }
CreateUserRequest user = new CreateUserRequest("userName"); CreateAccessKeyRequest key = new CreateAccessKeyRequest(); BasicAWSCredentials cred = new BasicAWSCredentials("access", "secret"); key.withUserName(user.getUserName()); key.setRequestCredentials(cred); user.setRequestCredentials(key.getRequestCredentials()); user.setPath("/"); AmazonIdentityManagementClient client = new AmazonIdentityManagementClient(cred); CreateUserResult result = client.createUser(user);
String simpleDbName = format("airship-%s", environment); iamClient.createUser(new CreateUserRequest(username));
@Override public User createUser(String userName, ResultCapture<CreateUserResult> extractor) { CreateUserRequest request = new CreateUserRequest() .withUserName(userName); return createUser(request, extractor); }
String simpleDbName = format("galaxy-%s", environment); iamClient.createUser(new CreateUserRequest(username));
iam_.createUser(new CreateUserRequest() .withUserName(userName_)).getUser();
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateUserRequest == false) return false; CreateUserRequest other = (CreateUserRequest) obj; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getPermissionsBoundary() == null ^ this.getPermissionsBoundary() == null) return false; if (other.getPermissionsBoundary() != null && other.getPermissionsBoundary().equals(this.getPermissionsBoundary()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; }
String simpleDbName = format("airship-%s", environment); iamClient.createUser(new CreateUserRequest(username));
setPath(path); return this;
iam_.createUser(new CreateUserRequest() .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 (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getPermissionsBoundary() != null) sb.append("PermissionsBoundary: ").append(getPermissionsBoundary()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
user = client.createUser(new CreateUserRequest().withUserName(username)).getUser();
request.setHttpMethod(HttpMethodName.POST); if (createUserRequest.getPath() != null) { request.addParameter("Path", StringUtils.fromString(createUserRequest.getPath())); if (createUserRequest.getUserName() != null) { request.addParameter("UserName", StringUtils.fromString(createUserRequest.getUserName())); if (createUserRequest.getPermissionsBoundary() != null) { request.addParameter("PermissionsBoundary", StringUtils.fromString(createUserRequest.getPermissionsBoundary())); if (!createUserRequest.getTags().isEmpty() || !((com.amazonaws.internal.SdkInternalList<Tag>) createUserRequest.getTags()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<Tag> tagsList = (com.amazonaws.internal.SdkInternalList<Tag>) createUserRequest.getTags(); int tagsListIndex = 1;
@Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getPath() == null) ? 0 : getPath().hashCode()); hashCode = prime * hashCode + ((getUserName() == null) ? 0 : getUserName().hashCode()); hashCode = prime * hashCode + ((getPermissionsBoundary() == null) ? 0 : getPermissionsBoundary().hashCode()); hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof CreateUserRequest == false) return false; CreateUserRequest other = (CreateUserRequest) obj; if (other.getPath() == null ^ this.getPath() == null) return false; if (other.getPath() != null && other.getPath().equals(this.getPath()) == false) return false; if (other.getUserName() == null ^ this.getUserName() == null) return false; if (other.getUserName() != null && other.getUserName().equals(this.getUserName()) == false) return false; if (other.getPermissionsBoundary() == null ^ this.getPermissionsBoundary() == null) return false; if (other.getPermissionsBoundary() != null && other.getPermissionsBoundary().equals(this.getPermissionsBoundary()) == false) return false; if (other.getTags() == null ^ this.getTags() == null) return false; if (other.getTags() != null && other.getTags().equals(this.getTags()) == false) return false; return true; }
/** * 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 (getPath() != null) sb.append("Path: ").append(getPath()).append(","); if (getUserName() != null) sb.append("UserName: ").append(getUserName()).append(","); if (getPermissionsBoundary() != null) sb.append("PermissionsBoundary: ").append(getPermissionsBoundary()).append(","); if (getTags() != null) sb.append("Tags: ").append(getTags()); sb.append("}"); return sb.toString(); }
request.setHttpMethod(HttpMethodName.POST); if (createUserRequest.getPath() != null) { request.addParameter("Path", StringUtils.fromString(createUserRequest.getPath())); if (createUserRequest.getUserName() != null) { request.addParameter("UserName", StringUtils.fromString(createUserRequest.getUserName())); if (createUserRequest.getPermissionsBoundary() != null) { request.addParameter("PermissionsBoundary", StringUtils.fromString(createUserRequest.getPermissionsBoundary())); if (!createUserRequest.getTags().isEmpty() || !((com.amazonaws.internal.SdkInternalList<Tag>) createUserRequest.getTags()).isAutoConstruct()) { com.amazonaws.internal.SdkInternalList<Tag> tagsList = (com.amazonaws.internal.SdkInternalList<Tag>) createUserRequest.getTags(); int tagsListIndex = 1;