software.amazon.awssdk.aws.greengrass.ValidateAuthorizationTokenResponseHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of aws-iot-device-sdk Show documentation
Show all versions of aws-iot-device-sdk Show documentation
Java bindings for the AWS IoT Core Service
/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*
* This file is generated.
*/
package software.amazon.awssdk.aws.greengrass;
import java.lang.Override;
import java.lang.Void;
import java.util.concurrent.CompletableFuture;
import software.amazon.awssdk.aws.greengrass.model.ValidateAuthorizationTokenResponse;
import software.amazon.awssdk.eventstreamrpc.OperationResponse;
import software.amazon.awssdk.eventstreamrpc.StreamResponse;
import software.amazon.awssdk.eventstreamrpc.model.EventStreamJsonMessage;
public final class ValidateAuthorizationTokenResponseHandler implements StreamResponse {
private final OperationResponse operationResponse;
public ValidateAuthorizationTokenResponseHandler(
final OperationResponse operationResponse) {
this.operationResponse = operationResponse;
}
@Override
public CompletableFuture getRequestFlushFuture() {
return operationResponse.getRequestFlushFuture();
}
@Override
public CompletableFuture getResponse() {
return operationResponse.getResponse();
}
@Override
public CompletableFuture sendStreamEvent(final EventStreamJsonMessage event) {
return operationResponse.sendStreamEvent(event);
}
@Override
public CompletableFuture closeStream() {
return operationResponse.closeStream();
}
@Override
public boolean isClosed() {
return operationResponse.isClosed();
}
}