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