listGroundStations method

Future<ListGroundStationsResponse> listGroundStations({
  1. int? maxResults,
  2. String? nextToken,
  3. String? satelliteId,
})

Returns a list of ground stations.

May throw InvalidParameterException. May throw DependencyException. May throw ResourceNotFoundException.

Parameter maxResults : Maximum number of ground stations returned.

Parameter nextToken : Next token that can be supplied in the next call to get the next page of ground stations.

Parameter satelliteId : Satellite ID to retrieve on-boarded ground stations.

Implementation

Future<ListGroundStationsResponse> listGroundStations({
  int? maxResults,
  String? nextToken,
  String? satelliteId,
}) async {
  final $query = <String, List<String>>{
    if (maxResults != null) 'maxResults': [maxResults.toString()],
    if (nextToken != null) 'nextToken': [nextToken],
    if (satelliteId != null) 'satelliteId': [satelliteId],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/groundstation',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return ListGroundStationsResponse.fromJson(response);
}