getSegmentEstimate method

Future<GetSegmentEstimateResponse> getSegmentEstimate({
  1. required String domainName,
  2. required String estimateId,
})

Gets the result of a segment estimate query.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter domainName : The unique name of the domain.

Parameter estimateId : The query Id passed by a previous CreateSegmentEstimate operation.

Implementation

Future<GetSegmentEstimateResponse> getSegmentEstimate({
  required String domainName,
  required String estimateId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/domains/${Uri.encodeComponent(domainName)}/segment-estimates/${Uri.encodeComponent(estimateId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetSegmentEstimateResponse.fromJson(response);
}