content: /*
   * Copyright The OpenTelemetry Authors
   * SPDX-License-Identifier: Apache-2.0
   */
  
  package io.opentelemetry.instrumentation.awssdk.v2_2.internal;
  
  import io.opentelemetry.context.Context;
  import software.amazon.awssdk.core.SdkResponse;
  import software.amazon.awssdk.http.SdkHttpResponse;
  
  /**
   * This class is internal and is hence not for public use. Its APIs are unstable and can change at
   * any time.
   */
  public final class Response {
    private final SdkHttpResponse sdkHttpResponse;
    private final SdkResponse sdkResponse;
    private final Context otelContext;
  
    Response(SdkHttpResponse sdkHttpResponse) {
      this(sdkHttpResponse, null);
    }
  
    Response(SdkHttpResponse sdkHttpResponse, SdkResponse sdkResponse) {
      this(sdkHttpResponse, sdkResponse, null);
    }
  
    Response(SdkHttpResponse sdkHttpResponse, SdkResponse sdkResponse, Context otelContext) {
      this.sdkHttpResponse = sdkHttpResponse;
      this.sdkResponse = sdkResponse;
      this.otelContext = otelContext;
    }
  
    public SdkHttpResponse getSdkHttpResponse() {
      return sdkHttpResponse;
    }
  
    public SdkResponse getSdkResponse() {
      return sdkResponse;
    }
  
    public Context otelContext() {
      return otelContext;
    }
  }
  