listAntennas method
Returns a list of antennas at a specified ground station.
May throw DependencyException.
May throw InvalidParameterException.
Parameter groundStationId :
ID of a ground station.
Parameter maxResults :
Maximum number of antennas returned.
Parameter nextToken :
Next token returned in the request of a previous ListAntennas
call. Used to get the next page of results.
Implementation
Future<ListAntennasResponse> listAntennas({
required String groundStationId,
int? maxResults,
String? nextToken,
}) async {
_s.validateNumRange(
'maxResults',
maxResults,
1,
100,
);
final $query = <String, List<String>>{
if (maxResults != null) 'maxResults': [maxResults.toString()],
if (nextToken != null) 'nextToken': [nextToken],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/groundstation/${Uri.encodeComponent(groundStationId)}/antenna',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return ListAntennasResponse.fromJson(response);
}