text: import { __extends } from "tslib";
  import { deserializeAws_restXmlGetObjectTorrentCommand, serializeAws_restXmlGetObjectTorrentCommand } from "../protocols/Aws_restXml";
  import { getBucketEndpointPlugin } from "@aws-sdk/middleware-bucket-endpoint";
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
  import { Command as $Command } from "@aws-sdk/smithy-client";
  var GetObjectTorrentCommand = /** @class */ (function (_super) {
      __extends(GetObjectTorrentCommand, _super);
      // Start section: command_properties
      // End section: command_properties
      function GetObjectTorrentCommand(input) {
          var _this = 
          // Start section: command_constructor
          _super.call(this) || this;
          _this.input = input;
          return _this;
          // End section: command_constructor
      }
      GetObjectTorrentCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
          this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
          this.middlewareStack.use(getBucketEndpointPlugin(configuration));
          var stack = clientStack.concat(this.middlewareStack);
          var handlerExecutionContext = {
              logger: {}
          };
          var requestHandler = configuration.requestHandler;
          return stack.resolve(function (request) {
              return requestHandler.handle(request.request, options || {});
          }, handlerExecutionContext);
      };
      GetObjectTorrentCommand.prototype.serialize = function (input, context) {
          return serializeAws_restXmlGetObjectTorrentCommand(input, context);
      };
      GetObjectTorrentCommand.prototype.deserialize = function (output, context) {
          return deserializeAws_restXmlGetObjectTorrentCommand(output, context);
      };
      return GetObjectTorrentCommand;
  }($Command));
  export { GetObjectTorrentCommand };
  //# sourceMappingURL=GetObjectTorrentCommand.js.map