@Override public GetUserAttributeVerificationCodeRequest build() { return new GetUserAttributeVerificationCodeRequest(this); } }
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof GetUserAttributeVerificationCodeRequest)) { return false; } GetUserAttributeVerificationCodeRequest other = (GetUserAttributeVerificationCodeRequest) obj; return Objects.equals(accessToken(), other.accessToken()) && Objects.equals(attributeName(), other.attributeName()); }
return getUserAttributeVerificationCode(GetUserAttributeVerificationCodeRequest.builder() .applyMutation(getUserAttributeVerificationCodeRequest).build());
return getUserAttributeVerificationCode(GetUserAttributeVerificationCodeRequest.builder() .applyMutation(getUserAttributeVerificationCodeRequest).build());
@Override public boolean equals(Object obj) { if (this == obj) { return true; } if (obj == null) { return false; } if (!(obj instanceof GetUserAttributeVerificationCodeRequest)) { return false; } GetUserAttributeVerificationCodeRequest other = (GetUserAttributeVerificationCodeRequest) obj; return Objects.equals(accessToken(), other.accessToken()) && Objects.equals(attributeName(), other.attributeName()); }
UserNotConfirmedException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return getUserAttributeVerificationCode(GetUserAttributeVerificationCodeRequest.builder() .applyMutation(getUserAttributeVerificationCodeRequest).build());
@Override public GetUserAttributeVerificationCodeRequest build() { return new GetUserAttributeVerificationCodeRequest(this); }
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(accessToken()); hashCode = 31 * hashCode + Objects.hashCode(attributeName()); return hashCode; }
UserNotConfirmedException, InternalErrorException, AwsServiceException, SdkClientException, CognitoIdentityProviderException { return getUserAttributeVerificationCode(GetUserAttributeVerificationCodeRequest.builder() .applyMutation(getUserAttributeVerificationCodeRequest).build());
@Override public int hashCode() { int hashCode = 1; hashCode = 31 * hashCode + Objects.hashCode(accessToken()); hashCode = 31 * hashCode + Objects.hashCode(attributeName()); 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("GetUserAttributeVerificationCodeRequest") .add("AccessToken", accessToken() == null ? null : "*** Sensitive Data Redacted ***") .add("AttributeName", attributeName()).build(); }
@Override public String toString() { return ToString.builder("GetUserAttributeVerificationCodeRequest").add("AccessToken", accessToken()) .add("AttributeName", attributeName()).build(); }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "AccessToken": return Optional.ofNullable(clazz.cast(accessToken())); case "AttributeName": return Optional.ofNullable(clazz.cast(attributeName())); default: return Optional.empty(); } }
public <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) { switch (fieldName) { case "AccessToken": return Optional.ofNullable(clazz.cast(accessToken())); case "AttributeName": return Optional.ofNullable(clazz.cast(attributeName())); default: return Optional.empty(); } }
/** * Marshall the given parameter object */ public void marshall(GetUserAttributeVerificationCodeRequest getUserAttributeVerificationCodeRequest, ProtocolMarshaller protocolMarshaller) { Validate.paramNotNull(getUserAttributeVerificationCodeRequest, "getUserAttributeVerificationCodeRequest"); Validate.paramNotNull(protocolMarshaller, "protocolMarshaller"); try { protocolMarshaller.marshall(getUserAttributeVerificationCodeRequest.accessToken(), ACCESSTOKEN_BINDING); protocolMarshaller.marshall(getUserAttributeVerificationCodeRequest.attributeName(), ATTRIBUTENAME_BINDING); } catch (Exception e) { throw SdkClientException.builder().message("Unable to marshall request to JSON: " + e.getMessage()).cause(e).build(); } } }