getSegmentDefinition method
Gets a segment definition from the domain.
May throw AccessDeniedException.
May throw BadRequestException.
May throw InternalServerException.
May throw ResourceNotFoundException.
May throw ThrottlingException.
Parameter domainName :
The unique name of the domain.
Parameter segmentDefinitionName :
The unique name of the segment definition.
Implementation
Future<GetSegmentDefinitionResponse> getSegmentDefinition({
required String domainName,
required String segmentDefinitionName,
}) async {
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/domains/${Uri.encodeComponent(domainName)}/segment-definitions/${Uri.encodeComponent(segmentDefinitionName)}',
exceptionFnMap: _exceptionFns,
);
return GetSegmentDefinitionResponse.fromJson(response);
}