listGroundStations method
Returns a list of ground stations.
May throw DependencyException.
May throw InvalidParameterException.
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 {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
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);
}