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