getReservedNodeExchangeOfferings method

Future<GetReservedNodeExchangeOfferingsOutputMessage> getReservedNodeExchangeOfferings(
  1. {@required String reservedNodeId,
  2. String marker,
  3. int maxRecords}
)

Returns an array of DC2 ReservedNodeOfferings that matches the payment type, term, and usage price of the given DC1 reserved node.

May throw ReservedNodeNotFoundFault. May throw InvalidReservedNodeStateFault. May throw ReservedNodeAlreadyMigratedFault. May throw ReservedNodeOfferingNotFoundFault. May throw UnsupportedOperationFault. May throw DependentServiceUnavailableFault.

Parameter reservedNodeId : A string representing the node identifier for the DC1 Reserved Node to be exchanged.

Parameter marker : A value that indicates the starting point for the next set of ReservedNodeOfferings.

Parameter maxRecords : An integer setting the maximum number of ReservedNodeOfferings to retrieve.

Implementation

Future<GetReservedNodeExchangeOfferingsOutputMessage>
    getReservedNodeExchangeOfferings({
  @_s.required String reservedNodeId,
  String marker,
  int maxRecords,
}) async {
  ArgumentError.checkNotNull(reservedNodeId, 'reservedNodeId');
  _s.validateStringLength(
    'reservedNodeId',
    reservedNodeId,
    0,
    2147483647,
    isRequired: true,
  );
  _s.validateStringLength(
    'marker',
    marker,
    0,
    2147483647,
  );
  final $request = <String, dynamic>{};
  $request['ReservedNodeId'] = reservedNodeId;
  marker?.also((arg) => $request['Marker'] = arg);
  maxRecords?.also((arg) => $request['MaxRecords'] = arg);
  final $result = await _protocol.send(
    $request,
    action: 'GetReservedNodeExchangeOfferings',
    version: '2012-12-01',
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    shape: shapes['GetReservedNodeExchangeOfferingsInputMessage'],
    shapes: shapes,
    resultWrapper: 'GetReservedNodeExchangeOfferingsResult',
  );
  return GetReservedNodeExchangeOfferingsOutputMessage.fromXml($result);
}