@Override public String toString() { return ToString.builder("UserImportJobType").add("JobName", jobName()).add("JobId", jobId()) .add("UserPoolId", userPoolId()).add("PreSignedUrl", preSignedUrl()).add("CreationDate", creationDate()) .add("StartDate", startDate()).add("CompletionDate", completionDate()).add("Status", statusAsString()) .add("CloudWatchLogsRoleArn", cloudWatchLogsRoleArn()).add("ImportedUsers", importedUsers()) .add("SkippedUsers", skippedUsers()).add("FailedUsers", failedUsers()) .add("CompletionMessage", completionMessage()).build(); }
/** * 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. */ @Override public String toString() { return ToString.builder("UserImportJobType").add("JobName", jobName()).add("JobId", jobId()) .add("UserPoolId", userPoolId()).add("PreSignedUrl", preSignedUrl()).add("CreationDate", creationDate()) .add("StartDate", startDate()).add("CompletionDate", completionDate()).add("Status", statusAsString()) .add("CloudWatchLogsRoleArn", cloudWatchLogsRoleArn()).add("ImportedUsers", importedUsers()) .add("SkippedUsers", skippedUsers()).add("FailedUsers", failedUsers()) .add("CompletionMessage", completionMessage()).build(); }
return Optional.ofNullable(clazz.cast(completionDate())); case "Status": return Optional.ofNullable(clazz.cast(statusAsString())); case "CloudWatchLogsRoleArn": return Optional.ofNullable(clazz.cast(cloudWatchLogsRoleArn()));
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(jobName()); hashCode = 31 * hashCode + Objects.hashCode(jobId()); hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(preSignedUrl()); hashCode = 31 * hashCode + Objects.hashCode(creationDate()); hashCode = 31 * hashCode + Objects.hashCode(startDate()); hashCode = 31 * hashCode + Objects.hashCode(completionDate()); hashCode = 31 * hashCode + Objects.hashCode(statusAsString()); hashCode = 31 * hashCode + Objects.hashCode(cloudWatchLogsRoleArn()); hashCode = 31 * hashCode + Objects.hashCode(importedUsers()); hashCode = 31 * hashCode + Objects.hashCode(skippedUsers()); hashCode = 31 * hashCode + Objects.hashCode(failedUsers()); hashCode = 31 * hashCode + Objects.hashCode(completionMessage()); return hashCode; }
return Optional.ofNullable(clazz.cast(completionDate())); case "Status": return Optional.ofNullable(clazz.cast(statusAsString())); case "CloudWatchLogsRoleArn": return Optional.ofNullable(clazz.cast(cloudWatchLogsRoleArn()));
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(jobName()); hashCode = 31 * hashCode + Objects.hashCode(jobId()); hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(preSignedUrl()); hashCode = 31 * hashCode + Objects.hashCode(creationDate()); hashCode = 31 * hashCode + Objects.hashCode(startDate()); hashCode = 31 * hashCode + Objects.hashCode(completionDate()); hashCode = 31 * hashCode + Objects.hashCode(statusAsString()); hashCode = 31 * hashCode + Objects.hashCode(cloudWatchLogsRoleArn()); hashCode = 31 * hashCode + Objects.hashCode(importedUsers()); hashCode = 31 * hashCode + Objects.hashCode(skippedUsers()); hashCode = 31 * hashCode + Objects.hashCode(failedUsers()); hashCode = 31 * hashCode + Objects.hashCode(completionMessage()); return hashCode; }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof UserImportJobType)) { return false; } UserImportJobType other = (UserImportJobType) obj; return Objects.equals(jobName(), other.jobName()) && Objects.equals(jobId(), other.jobId()) && Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(preSignedUrl(), other.preSignedUrl()) && Objects.equals(creationDate(), other.creationDate()) && Objects.equals(startDate(), other.startDate()) && Objects.equals(completionDate(), other.completionDate()) && Objects.equals(statusAsString(), other.statusAsString()) && Objects.equals(cloudWatchLogsRoleArn(), other.cloudWatchLogsRoleArn()) && Objects.equals(importedUsers(), other.importedUsers()) && Objects.equals(skippedUsers(), other.skippedUsers()) && Objects.equals(failedUsers(), other.failedUsers()) && Objects.equals(completionMessage(), other.completionMessage()); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof UserImportJobType)) { return false; } UserImportJobType other = (UserImportJobType) obj; return Objects.equals(jobName(), other.jobName()) && Objects.equals(jobId(), other.jobId()) && Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(preSignedUrl(), other.preSignedUrl()) && Objects.equals(creationDate(), other.creationDate()) && Objects.equals(startDate(), other.startDate()) && Objects.equals(completionDate(), other.completionDate()) && Objects.equals(statusAsString(), other.statusAsString()) && Objects.equals(cloudWatchLogsRoleArn(), other.cloudWatchLogsRoleArn()) && Objects.equals(importedUsers(), other.importedUsers()) && Objects.equals(skippedUsers(), other.skippedUsers()) && Objects.equals(failedUsers(), other.failedUsers()) && Objects.equals(completionMessage(), other.completionMessage()); }
/** * Marshall the given parameter object */ public void marshall(UserImportJobType userImportJobType, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(userImportJobType, "userImportJobType"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(userImportJobType.jobName(), JOBNAME_BINDING); protocolMarshaller.marshall(userImportJobType.jobId(), JOBID_BINDING); protocolMarshaller.marshall(userImportJobType.userPoolId(), USERPOOLID_BINDING); protocolMarshaller.marshall(userImportJobType.preSignedUrl(), PRESIGNEDURL_BINDING); protocolMarshaller.marshall(userImportJobType.creationDate(), CREATIONDATE_BINDING); protocolMarshaller.marshall(userImportJobType.startDate(), STARTDATE_BINDING); protocolMarshaller.marshall(userImportJobType.completionDate(), COMPLETIONDATE_BINDING); protocolMarshaller.marshall(userImportJobType.statusAsString(), STATUS_BINDING); protocolMarshaller.marshall(userImportJobType.cloudWatchLogsRoleArn(), CLOUDWATCHLOGSROLEARN_BINDING); protocolMarshaller.marshall(userImportJobType.importedUsers(), IMPORTEDUSERS_BINDING); protocolMarshaller.marshall(userImportJobType.skippedUsers(), SKIPPEDUSERS_BINDING); protocolMarshaller.marshall(userImportJobType.failedUsers(), FAILEDUSERS_BINDING); protocolMarshaller.marshall(userImportJobType.completionMessage(), COMPLETIONMESSAGE_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }