getWorldTemplateBody method

Future<GetWorldTemplateBodyResponse> getWorldTemplateBody({
  1. String? generationJob,
  2. String? template,
})

Gets the world template body.

May throw InvalidParameterException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalServerException.

Parameter generationJob : The Amazon Resource Name (arn) of the world generator job.

Parameter template : The Amazon Resource Name (arn) of the world template.

Implementation

Future<GetWorldTemplateBodyResponse> getWorldTemplateBody({
  String? generationJob,
  String? template,
}) async {
  _s.validateStringLength(
    'generationJob',
    generationJob,
    1,
    1224,
  );
  _s.validateStringLength(
    'template',
    template,
    1,
    1224,
  );
  final $payload = <String, dynamic>{
    if (generationJob != null) 'generationJob': generationJob,
    if (template != null) 'template': template,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/getWorldTemplateBody',
    exceptionFnMap: _exceptionFns,
  );
  return GetWorldTemplateBodyResponse.fromJson(response);
}