import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types" ; import { AllQueryStringTypesCommand , AllQueryStringTypesCommandInput , AllQueryStringTypesCommandOutput , } from "./commands/AllQueryStringTypesCommand" ; import { BodyWithXmlNameCommand , BodyWithXmlNameCommandInput , BodyWithXmlNameCommandOutput , } from "./commands/BodyWithXmlNameCommand" ; import { ConstantAndVariableQueryStringCommand , ConstantAndVariableQueryStringCommandInput , ConstantAndVariableQueryStringCommandOutput , } from "./commands/ConstantAndVariableQueryStringCommand" ; import { ConstantQueryStringCommand , ConstantQueryStringCommandInput , ConstantQueryStringCommandOutput , } from "./commands/ConstantQueryStringCommand" ; import { EmptyInputAndEmptyOutputCommand , EmptyInputAndEmptyOutputCommandInput , EmptyInputAndEmptyOutputCommandOutput , } from "./commands/EmptyInputAndEmptyOutputCommand" ; import { EndpointOperationCommand , EndpointOperationCommandInput , EndpointOperationCommandOutput , } from "./commands/EndpointOperationCommand" ; import { EndpointWithHostLabelHeaderOperationCommand , EndpointWithHostLabelHeaderOperationCommandInput , EndpointWithHostLabelHeaderOperationCommandOutput , } from "./commands/EndpointWithHostLabelHeaderOperationCommand" ; import { EndpointWithHostLabelOperationCommand , EndpointWithHostLabelOperationCommandInput , EndpointWithHostLabelOperationCommandOutput , } from "./commands/EndpointWithHostLabelOperationCommand" ; import { FlattenedXmlMapCommand , FlattenedXmlMapCommandInput , FlattenedXmlMapCommandOutput , } from "./commands/FlattenedXmlMapCommand" ; import { FlattenedXmlMapWithXmlNameCommand , FlattenedXmlMapWithXmlNameCommandInput , FlattenedXmlMapWithXmlNameCommandOutput , } from "./commands/FlattenedXmlMapWithXmlNameCommand" ; import { FlattenedXmlMapWithXmlNamespaceCommand , FlattenedXmlMapWithXmlNamespaceCommandInput , FlattenedXmlMapWithXmlNamespaceCommandOutput , } from "./commands/FlattenedXmlMapWithXmlNamespaceCommand" ; import { GreetingWithErrorsCommand , GreetingWithErrorsCommandInput , GreetingWithErrorsCommandOutput , } from "./commands/GreetingWithErrorsCommand" ; import { HttpPayloadTraitsCommand , HttpPayloadTraitsCommandInput , HttpPayloadTraitsCommandOutput , } from "./commands/HttpPayloadTraitsCommand" ; import { HttpPayloadTraitsWithMediaTypeCommand , HttpPayloadTraitsWithMediaTypeCommandInput , HttpPayloadTraitsWithMediaTypeCommandOutput , } from "./commands/HttpPayloadTraitsWithMediaTypeCommand" ; import { HttpPayloadWithMemberXmlNameCommand , HttpPayloadWithMemberXmlNameCommandInput , HttpPayloadWithMemberXmlNameCommandOutput , } from "./commands/HttpPayloadWithMemberXmlNameCommand" ; import { HttpPayloadWithStructureCommand , HttpPayloadWithStructureCommandInput , HttpPayloadWithStructureCommandOutput , } from "./commands/HttpPayloadWithStructureCommand" ; import { HttpPayloadWithXmlNameCommand , HttpPayloadWithXmlNameCommandInput , HttpPayloadWithXmlNameCommandOutput , } from "./commands/HttpPayloadWithXmlNameCommand" ; import { HttpPayloadWithXmlNamespaceAndPrefixCommand , HttpPayloadWithXmlNamespaceAndPrefixCommandInput , HttpPayloadWithXmlNamespaceAndPrefixCommandOutput , } from "./commands/HttpPayloadWithXmlNamespaceAndPrefixCommand" ; import { HttpPayloadWithXmlNamespaceCommand , HttpPayloadWithXmlNamespaceCommandInput , HttpPayloadWithXmlNamespaceCommandOutput , } from "./commands/HttpPayloadWithXmlNamespaceCommand" ; import { HttpPrefixHeadersCommand , HttpPrefixHeadersCommandInput , HttpPrefixHeadersCommandOutput , } from "./commands/HttpPrefixHeadersCommand" ; import { HttpRequestWithFloatLabelsCommand , HttpRequestWithFloatLabelsCommandInput , HttpRequestWithFloatLabelsCommandOutput , } from "./commands/HttpRequestWithFloatLabelsCommand" ; import { HttpRequestWithGreedyLabelInPathCommand , HttpRequestWithGreedyLabelInPathCommandInput , HttpRequestWithGreedyLabelInPathCommandOutput , } from "./commands/HttpRequestWithGreedyLabelInPathCommand" ; import { HttpRequestWithLabelsAndTimestampFormatCommand , HttpRequestWithLabelsAndTimestampFormatCommandInput , HttpRequestWithLabelsAndTimestampFormatCommandOutput , } from "./commands/HttpRequestWithLabelsAndTimestampFormatCommand" ; import { HttpRequestWithLabelsCommand , HttpRequestWithLabelsCommandInput , HttpRequestWithLabelsCommandOutput , } from "./commands/HttpRequestWithLabelsCommand" ; import { HttpResponseCodeCommand , HttpResponseCodeCommandInput , HttpResponseCodeCommandOutput , } from "./commands/HttpResponseCodeCommand" ; import { IgnoreQueryParamsInResponseCommand , IgnoreQueryParamsInResponseCommandInput , IgnoreQueryParamsInResponseCommandOutput , } from "./commands/IgnoreQueryParamsInResponseCommand" ; import { InputAndOutputWithHeadersCommand , InputAndOutputWithHeadersCommandInput , InputAndOutputWithHeadersCommandOutput , } from "./commands/InputAndOutputWithHeadersCommand" ; import { NestedXmlMapsCommand , NestedXmlMapsCommandInput , NestedXmlMapsCommandOutput , } from "./commands/NestedXmlMapsCommand" ; import { NoInputAndNoOutputCommand , NoInputAndNoOutputCommandInput , NoInputAndNoOutputCommandOutput , } from "./commands/NoInputAndNoOutputCommand" ; import { NoInputAndOutputCommand , NoInputAndOutputCommandInput , NoInputAndOutputCommandOutput , } from "./commands/NoInputAndOutputCommand" ; import { NullAndEmptyHeadersClientCommand , NullAndEmptyHeadersClientCommandInput , NullAndEmptyHeadersClientCommandOutput , } from "./commands/NullAndEmptyHeadersClientCommand" ; import { NullAndEmptyHeadersServerCommand , NullAndEmptyHeadersServerCommandInput , NullAndEmptyHeadersServerCommandOutput , } from "./commands/NullAndEmptyHeadersServerCommand" ; import { OmitsNullSerializesEmptyStringCommand , OmitsNullSerializesEmptyStringCommandInput , OmitsNullSerializesEmptyStringCommandOutput , } from "./commands/OmitsNullSerializesEmptyStringCommand" ; import { QueryIdempotencyTokenAutoFillCommand , QueryIdempotencyTokenAutoFillCommandInput , QueryIdempotencyTokenAutoFillCommandOutput , } from "./commands/QueryIdempotencyTokenAutoFillCommand" ; import { QueryParamsAsStringListMapCommand , QueryParamsAsStringListMapCommandInput , QueryParamsAsStringListMapCommandOutput , } from "./commands/QueryParamsAsStringListMapCommand" ; import { QueryPrecedenceCommand , QueryPrecedenceCommandInput , QueryPrecedenceCommandOutput , } from "./commands/QueryPrecedenceCommand" ; import { RecursiveShapesCommand , RecursiveShapesCommandInput , RecursiveShapesCommandOutput , } from "./commands/RecursiveShapesCommand" ; import { SimpleScalarPropertiesCommand , SimpleScalarPropertiesCommandInput , SimpleScalarPropertiesCommandOutput , } from "./commands/SimpleScalarPropertiesCommand" ; import { TimestampFormatHeadersCommand , TimestampFormatHeadersCommandInput , TimestampFormatHeadersCommandOutput , } from "./commands/TimestampFormatHeadersCommand" ; import { XmlAttributesCommand , XmlAttributesCommandInput , XmlAttributesCommandOutput , } from "./commands/XmlAttributesCommand" ; import { XmlAttributesOnPayloadCommand , XmlAttributesOnPayloadCommandInput , XmlAttributesOnPayloadCommandOutput , } from "./commands/XmlAttributesOnPayloadCommand" ; import { XmlBlobsCommand , XmlBlobsCommandInput , XmlBlobsCommandOutput } from "./commands/XmlBlobsCommand" ; import { XmlEmptyBlobsCommand , XmlEmptyBlobsCommandInput , XmlEmptyBlobsCommandOutput , } from "./commands/XmlEmptyBlobsCommand" ; import { XmlEmptyListsCommand , XmlEmptyListsCommandInput , XmlEmptyListsCommandOutput , } from "./commands/XmlEmptyListsCommand" ; import { XmlEmptyMapsCommand , XmlEmptyMapsCommandInput , XmlEmptyMapsCommandOutput , } from "./commands/XmlEmptyMapsCommand" ; import { XmlEmptyStringsCommand , XmlEmptyStringsCommandInput , XmlEmptyStringsCommandOutput , } from "./commands/XmlEmptyStringsCommand" ; import { XmlEnumsCommand , XmlEnumsCommandInput , XmlEnumsCommandOutput } from "./commands/XmlEnumsCommand" ; import { XmlListsCommand , XmlListsCommandInput , XmlListsCommandOutput } from "./commands/XmlListsCommand" ; import { XmlMapsCommand , XmlMapsCommandInput , XmlMapsCommandOutput } from "./commands/XmlMapsCommand" ; import { XmlMapsXmlNameCommand , XmlMapsXmlNameCommandInput , XmlMapsXmlNameCommandOutput , } from "./commands/XmlMapsXmlNameCommand" ; import { XmlNamespacesCommand , XmlNamespacesCommandInput , XmlNamespacesCommandOutput , } from "./commands/XmlNamespacesCommand" ; import { XmlTimestampsCommand , XmlTimestampsCommandInput , XmlTimestampsCommandOutput , } from "./commands/XmlTimestampsCommand" ; import { XmlUnionsCommand , XmlUnionsCommandInput , XmlUnionsCommandOutput } from "./commands/XmlUnionsCommand" ; import { RestXmlProtocolClient } from "./RestXmlProtocolClient" ; /**
 * A REST XML service that sends XML requests and responses.
 */ export class RestXmlProtocol extends RestXmlProtocolClient { /**
     * This example uses all query string types.
     */ public allQueryStringTypes ( args , options ? ) ; public allQueryStringTypes ( args , cb ) ; public allQueryStringTypes ( args , options , cb ) ; public allQueryStringTypes ( args , optionsOrCb ? , cb ? ) { const command = new AllQueryStringTypesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The following example serializes a body that uses an XML name,
     * changing the wrapper name.
     */ public bodyWithXmlName ( args , options ? ) ; public bodyWithXmlName ( args , cb ) ; public bodyWithXmlName ( args , options , cb ) ; public bodyWithXmlName ( args , optionsOrCb ? , cb ? ) { const command = new BodyWithXmlNameCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This example uses fixed query string params and variable query string params.
     * The fixed query string parameters and variable parameters must both be
     * serialized (implementations may need to merge them together).
     */ public constantAndVariableQueryString ( args , options ? ) ; public constantAndVariableQueryString ( args , cb ) ; public constantAndVariableQueryString ( args , options , cb ) ; public constantAndVariableQueryString ( args , optionsOrCb ? , cb ? ) { const command = new ConstantAndVariableQueryStringCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This example uses a constant query string parameters and a label.
     * This simply tests that labels and query string parameters are
     * compatible. The fixed query string parameter named "hello" should
     * in no way conflict with the label, `{hello}`.
     */ public constantQueryString ( args , options ? ) ; public constantQueryString ( args , cb ) ; public constantQueryString ( args , options , cb ) ; public constantQueryString ( args , optionsOrCb ? , cb ? ) { const command = new ConstantQueryStringCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests how requests and responses are serialized when there's
     * no request or response payload because the operation has an empty input
     * and empty output structure that reuses the same shape. While this should
     * be rare, code generators must support this.
     */ public emptyInputAndEmptyOutput ( args , options ? ) ; public emptyInputAndEmptyOutput ( args , cb ) ; public emptyInputAndEmptyOutput ( args , options , cb ) ; public emptyInputAndEmptyOutput ( args , optionsOrCb ? , cb ? ) { const command = new EmptyInputAndEmptyOutputCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public endpointOperation ( args , options ? ) ; public endpointOperation ( args , cb ) ; public endpointOperation ( args , options , cb ) ; public endpointOperation ( args , optionsOrCb ? , cb ? ) { const command = new EndpointOperationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public endpointWithHostLabelHeaderOperation ( args , options ? ) ; public endpointWithHostLabelHeaderOperation ( args , cb ) ; public endpointWithHostLabelHeaderOperation ( args , options , cb ) ; public endpointWithHostLabelHeaderOperation ( args , optionsOrCb ? , cb ? ) { const command = new EndpointWithHostLabelHeaderOperationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public endpointWithHostLabelOperation ( args , options ? ) ; public endpointWithHostLabelOperation ( args , cb ) ; public endpointWithHostLabelOperation ( args , options , cb ) ; public endpointWithHostLabelOperation ( args , optionsOrCb ? , cb ? ) { const command = new EndpointWithHostLabelOperationCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Flattened maps
     */ public flattenedXmlMap ( args , options ? ) ; public flattenedXmlMap ( args , cb ) ; public flattenedXmlMap ( args , options , cb ) ; public flattenedXmlMap ( args , optionsOrCb ? , cb ? ) { const command = new FlattenedXmlMapCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Flattened maps with @xmlName
     */ public flattenedXmlMapWithXmlName ( args , options ? ) ; public flattenedXmlMapWithXmlName ( args , cb ) ; public flattenedXmlMapWithXmlName ( args , options , cb ) ; public flattenedXmlMapWithXmlName ( args , optionsOrCb ? , cb ? ) { const command = new FlattenedXmlMapWithXmlNameCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Flattened maps with @xmlNamespace and @xmlName
     */ public flattenedXmlMapWithXmlNamespace ( args , options ? ) ; public flattenedXmlMapWithXmlNamespace ( args , cb ) ; public flattenedXmlMapWithXmlNamespace ( args , options , cb ) ; public flattenedXmlMapWithXmlNamespace ( args , optionsOrCb ? , cb ? ) { const command = new FlattenedXmlMapWithXmlNamespaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This operation has three possible return values:
     *
     * 1. A successful response in the form of GreetingWithErrorsOutput
     * 2. An InvalidGreeting error.
     * 3. A BadRequest error.
     *
     * Implementations must be able to successfully take a response and
     * properly (de)serialize successful and error responses based on the
     * the presence of the
     */ public greetingWithErrors ( args , options ? ) ; public greetingWithErrors ( args , cb ) ; public greetingWithErrors ( args , options , cb ) ; public greetingWithErrors ( args , optionsOrCb ? , cb ? ) { const command = new GreetingWithErrorsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This examples serializes a blob shape in the payload.
     *
     * In this example, no XML document is synthesized because the payload is
     * not a structure or a union type.
     */ public httpPayloadTraits ( args , options ? ) ; public httpPayloadTraits ( args , cb ) ; public httpPayloadTraits ( args , options , cb ) ; public httpPayloadTraits ( args , optionsOrCb ? , cb ? ) { const command = new HttpPayloadTraitsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This examples uses a `@mediaType` trait on the payload to force a custom
     * content-type to be serialized.
     */ public httpPayloadTraitsWithMediaType ( args , options ? ) ; public httpPayloadTraitsWithMediaType ( args , cb ) ; public httpPayloadTraitsWithMediaType ( args , options , cb ) ; public httpPayloadTraitsWithMediaType ( args , optionsOrCb ? , cb ? ) { const command = new HttpPayloadTraitsWithMediaTypeCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The following example serializes a payload that uses an XML name
     * on the member, changing the wrapper name.
     */ public httpPayloadWithMemberXmlName ( args , options ? ) ; public httpPayloadWithMemberXmlName ( args , cb ) ; public httpPayloadWithMemberXmlName ( args , options , cb ) ; public httpPayloadWithMemberXmlName ( args , optionsOrCb ? , cb ? ) { const command = new HttpPayloadWithMemberXmlNameCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This examples serializes a structure in the payload.
     *
     * Note that serializing a structure changes the wrapper element name
     * to match the targeted structure.
     */ public httpPayloadWithStructure ( args , options ? ) ; public httpPayloadWithStructure ( args , cb ) ; public httpPayloadWithStructure ( args , options , cb ) ; public httpPayloadWithStructure ( args , optionsOrCb ? , cb ? ) { const command = new HttpPayloadWithStructureCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The following example serializes a payload that uses an XML name,
     * changing the wrapper name.
     */ public httpPayloadWithXmlName ( args , options ? ) ; public httpPayloadWithXmlName ( args , cb ) ; public httpPayloadWithXmlName ( args , options , cb ) ; public httpPayloadWithXmlName ( args , optionsOrCb ? , cb ? ) { const command = new HttpPayloadWithXmlNameCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The following example serializes a payload that uses an XML namespace.
     */ public httpPayloadWithXmlNamespace ( args , options ? ) ; public httpPayloadWithXmlNamespace ( args , cb ) ; public httpPayloadWithXmlNamespace ( args , options , cb ) ; public httpPayloadWithXmlNamespace ( args , optionsOrCb ? , cb ? ) { const command = new HttpPayloadWithXmlNamespaceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The following example serializes a payload that uses an XML namespace.
     */ public httpPayloadWithXmlNamespaceAndPrefix ( args , options ? ) ; public httpPayloadWithXmlNamespaceAndPrefix ( args , cb ) ; public httpPayloadWithXmlNamespaceAndPrefix ( args , options , cb ) ; public httpPayloadWithXmlNamespaceAndPrefix ( args , optionsOrCb ? , cb ? ) { const command = new HttpPayloadWithXmlNamespaceAndPrefixCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This examples adds headers to the input of a request and response by prefix.
     */ public httpPrefixHeaders ( args , options ? ) ; public httpPrefixHeaders ( args , cb ) ; public httpPrefixHeaders ( args , options , cb ) ; public httpPrefixHeaders ( args , optionsOrCb ? , cb ? ) { const command = new HttpPrefixHeadersCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public httpRequestWithFloatLabels ( args , options ? ) ; public httpRequestWithFloatLabels ( args , cb ) ; public httpRequestWithFloatLabels ( args , options , cb ) ; public httpRequestWithFloatLabels ( args , optionsOrCb ? , cb ? ) { const command = new HttpRequestWithFloatLabelsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public httpRequestWithGreedyLabelInPath ( args , options ? ) ; public httpRequestWithGreedyLabelInPath ( args , cb ) ; public httpRequestWithGreedyLabelInPath ( args , options , cb ) ; public httpRequestWithGreedyLabelInPath ( args , optionsOrCb ? , cb ? ) { const command = new HttpRequestWithGreedyLabelInPathCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests how requests are serialized when there's no input
     * payload but there are HTTP labels.
     */ public httpRequestWithLabels ( args , options ? ) ; public httpRequestWithLabels ( args , cb ) ; public httpRequestWithLabels ( args , options , cb ) ; public httpRequestWithLabels ( args , optionsOrCb ? , cb ? ) { const command = new HttpRequestWithLabelsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests how requests serialize different timestamp formats in the
     * URI path.
     */ public httpRequestWithLabelsAndTimestampFormat ( args , options ? ) ; public httpRequestWithLabelsAndTimestampFormat ( args , cb ) ; public httpRequestWithLabelsAndTimestampFormat ( args , options , cb ) ; public httpRequestWithLabelsAndTimestampFormat ( args , optionsOrCb ? , cb ? ) { const command = new HttpRequestWithLabelsAndTimestampFormatCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public httpResponseCode ( args , options ? ) ; public httpResponseCode ( args , cb ) ; public httpResponseCode ( args , options , cb ) ; public httpResponseCode ( args , optionsOrCb ? , cb ? ) { const command = new HttpResponseCodeCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This example ensures that query string bound request parameters are
     * serialized in the body of responses if the structure is used in both
     * the request and response.
     */ public ignoreQueryParamsInResponse ( args , options ? ) ; public ignoreQueryParamsInResponse ( args , cb ) ; public ignoreQueryParamsInResponse ( args , options , cb ) ; public ignoreQueryParamsInResponse ( args , optionsOrCb ? , cb ? ) { const command = new IgnoreQueryParamsInResponseCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests how requests and responses are serialized when there is
     * no input or output payload but there are HTTP header bindings.
     */ public inputAndOutputWithHeaders ( args , options ? ) ; public inputAndOutputWithHeaders ( args , cb ) ; public inputAndOutputWithHeaders ( args , options , cb ) ; public inputAndOutputWithHeaders ( args , optionsOrCb ? , cb ? ) { const command = new InputAndOutputWithHeadersCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public nestedXmlMaps ( args , options ? ) ; public nestedXmlMaps ( args , cb ) ; public nestedXmlMaps ( args , options , cb ) ; public nestedXmlMaps ( args , optionsOrCb ? , cb ? ) { const command = new NestedXmlMapsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests how requests and responses are serialized when there's
     * no request or response payload because the operation has no input or output.
     * While this should be rare, code generators must support this.
     */ public noInputAndNoOutput ( args , options ? ) ; public noInputAndNoOutput ( args , cb ) ; public noInputAndNoOutput ( args , options , cb ) ; public noInputAndNoOutput ( args , optionsOrCb ? , cb ? ) { const command = new NoInputAndNoOutputCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests how requests and responses are serialized when there's
     * no request or response payload because the operation has no input and the
     * output is empty. While this should be rare, code generators must support
     * this.
     */ public noInputAndOutput ( args , options ? ) ; public noInputAndOutput ( args , cb ) ; public noInputAndOutput ( args , options , cb ) ; public noInputAndOutput ( args , optionsOrCb ? , cb ? ) { const command = new NoInputAndOutputCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Null and empty headers are not sent over the wire.
     */ public nullAndEmptyHeadersClient ( args , options ? ) ; public nullAndEmptyHeadersClient ( args , cb ) ; public nullAndEmptyHeadersClient ( args , options , cb ) ; public nullAndEmptyHeadersClient ( args , optionsOrCb ? , cb ? ) { const command = new NullAndEmptyHeadersClientCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Null and empty headers are not sent over the wire.
     */ public nullAndEmptyHeadersServer ( args , options ? ) ; public nullAndEmptyHeadersServer ( args , cb ) ; public nullAndEmptyHeadersServer ( args , options , cb ) ; public nullAndEmptyHeadersServer ( args , optionsOrCb ? , cb ? ) { const command = new NullAndEmptyHeadersServerCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Omits null, but serializes empty string value.
     */ public omitsNullSerializesEmptyString ( args , options ? ) ; public omitsNullSerializesEmptyString ( args , cb ) ; public omitsNullSerializesEmptyString ( args , options , cb ) ; public omitsNullSerializesEmptyString ( args , optionsOrCb ? , cb ? ) { const command = new OmitsNullSerializesEmptyStringCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Automatically adds idempotency tokens.
     */ public queryIdempotencyTokenAutoFill ( args , options ? ) ; public queryIdempotencyTokenAutoFill ( args , cb ) ; public queryIdempotencyTokenAutoFill ( args , options , cb ) ; public queryIdempotencyTokenAutoFill ( args , optionsOrCb ? , cb ? ) { const command = new QueryIdempotencyTokenAutoFillCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public queryParamsAsStringListMap ( args , options ? ) ; public queryParamsAsStringListMap ( args , cb ) ; public queryParamsAsStringListMap ( args , options , cb ) ; public queryParamsAsStringListMap ( args , optionsOrCb ? , cb ? ) { const command = new QueryParamsAsStringListMapCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public queryPrecedence ( args , options ? ) ; public queryPrecedence ( args , cb ) ; public queryPrecedence ( args , options , cb ) ; public queryPrecedence ( args , optionsOrCb ? , cb ? ) { const command = new QueryPrecedenceCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Recursive shapes
     */ public recursiveShapes ( args , options ? ) ; public recursiveShapes ( args , cb ) ; public recursiveShapes ( args , options , cb ) ; public recursiveShapes ( args , optionsOrCb ? , cb ? ) { const command = new RecursiveShapesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public simpleScalarProperties ( args , options ? ) ; public simpleScalarProperties ( args , cb ) ; public simpleScalarProperties ( args , options , cb ) ; public simpleScalarProperties ( args , optionsOrCb ? , cb ? ) { const command = new SimpleScalarPropertiesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests how timestamp request and response headers are serialized.
     */ public timestampFormatHeaders ( args , options ? ) ; public timestampFormatHeaders ( args , cb ) ; public timestampFormatHeaders ( args , options , cb ) ; public timestampFormatHeaders ( args , optionsOrCb ? , cb ? ) { const command = new TimestampFormatHeadersCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This example serializes an XML attributes on synthesized document.
     */ public xmlAttributes ( args , options ? ) ; public xmlAttributes ( args , cb ) ; public xmlAttributes ( args , options , cb ) ; public xmlAttributes ( args , optionsOrCb ? , cb ? ) { const command = new XmlAttributesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This example serializes an XML attributes on a document targeted by httpPayload.
     */ public xmlAttributesOnPayload ( args , options ? ) ; public xmlAttributesOnPayload ( args , cb ) ; public xmlAttributesOnPayload ( args , options , cb ) ; public xmlAttributesOnPayload ( args , optionsOrCb ? , cb ? ) { const command = new XmlAttributesOnPayloadCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Blobs are base64 encoded
     */ public xmlBlobs ( args , options ? ) ; public xmlBlobs ( args , cb ) ; public xmlBlobs ( args , options , cb ) ; public xmlBlobs ( args , optionsOrCb ? , cb ? ) { const command = new XmlBlobsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * Blobs are base64 encoded
     */ public xmlEmptyBlobs ( args , options ? ) ; public xmlEmptyBlobs ( args , cb ) ; public xmlEmptyBlobs ( args , options , cb ) ; public xmlEmptyBlobs ( args , optionsOrCb ? , cb ? ) { const command = new XmlEmptyBlobsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public xmlEmptyLists ( args , options ? ) ; public xmlEmptyLists ( args , cb ) ; public xmlEmptyLists ( args , options , cb ) ; public xmlEmptyLists ( args , optionsOrCb ? , cb ? ) { const command = new XmlEmptyListsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public xmlEmptyMaps ( args , options ? ) ; public xmlEmptyMaps ( args , cb ) ; public xmlEmptyMaps ( args , options , cb ) ; public xmlEmptyMaps ( args , optionsOrCb ? , cb ? ) { const command = new XmlEmptyMapsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public xmlEmptyStrings ( args , options ? ) ; public xmlEmptyStrings ( args , cb ) ; public xmlEmptyStrings ( args , options , cb ) ; public xmlEmptyStrings ( args , optionsOrCb ? , cb ? ) { const command = new XmlEmptyStringsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This example serializes enums as top level properties, in lists, sets, and maps.
     */ public xmlEnums ( args , options ? ) ; public xmlEnums ( args , cb ) ; public xmlEnums ( args , options , cb ) ; public xmlEnums ( args , optionsOrCb ? , cb ? ) { const command = new XmlEnumsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This test case serializes XML lists for the following cases for both
     * input and output:
     *
     * 1. Normal XML lists.
     * 2. Normal XML sets.
     * 3. XML lists of lists.
     * 4. XML lists with @xmlName on its members
     * 5. Flattened XML lists.
     * 6. Flattened XML lists with @xmlName.
     * 7. Flattened XML lists with @xmlNamespace.
     * 8. Lists of structures.
     * 9. Flattened XML list of structures
     */ public xmlLists ( args , options ? ) ; public xmlLists ( args , cb ) ; public xmlLists ( args , options , cb ) ; public xmlLists ( args , optionsOrCb ? , cb ? ) { const command = new XmlListsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * The example tests basic map serialization.
     */ public xmlMaps ( args , options ? ) ; public xmlMaps ( args , cb ) ; public xmlMaps ( args , options , cb ) ; public xmlMaps ( args , optionsOrCb ? , cb ? ) { const command = new XmlMapsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public xmlMapsXmlName ( args , options ? ) ; public xmlMapsXmlName ( args , cb ) ; public xmlMapsXmlName ( args , options , cb ) ; public xmlMapsXmlName ( args , optionsOrCb ? , cb ? ) { const command = new XmlMapsXmlNameCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public xmlNamespaces ( args , options ? ) ; public xmlNamespaces ( args , cb ) ; public xmlNamespaces ( args , options , cb ) ; public xmlNamespaces ( args , optionsOrCb ? , cb ? ) { const command = new XmlNamespacesCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } /**
     * This tests how timestamps are serialized, including using the
     * default format of date-time and various @timestampFormat trait
     * values.
     */ public xmlTimestamps ( args , options ? ) ; public xmlTimestamps ( args , cb ) ; public xmlTimestamps ( args , options , cb ) ; public xmlTimestamps ( args , optionsOrCb ? , cb ? ) { const command = new XmlTimestampsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } public xmlUnions ( args , options ? ) ; public xmlUnions ( args , cb ) ; public xmlUnions ( args , options , cb ) ; public xmlUnions ( args , optionsOrCb ? , cb ? ) { const command = new XmlUnionsCommand ( args ) ; if ( typeof optionsOrCb === "function" ) { this . send ( command , optionsOrCb ) ; } else if ( typeof cb === "function" ) { if ( typeof optionsOrCb !== "object" ) throw new Error ( `Expect http options but get ${ typeof optionsOrCb }` ) ; this . send ( command , optionsOrCb || { } , cb ) ; } else { return this . send ( command , optionsOrCb ) ; } } }