@Override public StartUserImportJobRequest build() { return new StartUserImportJobRequest(this); }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof StartUserImportJobRequest)) { return false; } StartUserImportJobRequest other = (StartUserImportJobRequest) obj; return Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(jobId(), other.jobId()); }
return startUserImportJob(StartUserImportJobRequest.builder().applyMutation(startUserImportJobRequest).build());
PreconditionNotMetException, NotAuthorizedException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return startUserImportJob(StartUserImportJobRequest.builder().applyMutation(startUserImportJobRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(jobId()); return hashCode; }
PreconditionNotMetException, NotAuthorizedException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return startUserImportJob(StartUserImportJobRequest.builder().applyMutation(startUserImportJobRequest).build());
@Override public StartUserImportJobRequest build() { return new StartUserImportJobRequest(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof StartUserImportJobRequest)) { return false; } StartUserImportJobRequest other = (StartUserImportJobRequest) obj; return Objects.equals(userPoolId(), other.userPoolId()) && Objects.equals(jobId(), other.jobId()); }
return startUserImportJob(StartUserImportJobRequest.builder().applyMutation(startUserImportJobRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(userPoolId()); hashCode = 31 * hashCode + Objects.hashCode(jobId()); return hashCode; }
/** * 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("StartUserImportJobRequest").add("UserPoolId", userPoolId()).add("JobId", jobId()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPoolId": return Optional.ofNullable(clazz.cast(userPoolId())); case "JobId": return Optional.ofNullable(clazz.cast(jobId())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "UserPoolId": return Optional.ofNullable(clazz.cast(userPoolId())); case "JobId": return Optional.ofNullable(clazz.cast(jobId())); default: return Optional.empty(); } }
@Override public String toString() { return ToString.builder("StartUserImportJobRequest").add("UserPoolId", userPoolId()).add("JobId", jobId()).build(); }
/** * Marshall the given parameter object */ public void marshall(StartUserImportJobRequest startUserImportJobRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(startUserImportJobRequest, "startUserImportJobRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(startUserImportJobRequest.userPoolId(), USERPOOLID_BINDING); protocolMarshaller.marshall(startUserImportJobRequest.jobId(), JOBID_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }