/// <p>Retrieve a JSON array of up to twenty of your job templates. This will return the templates themselves, not just a list of them. To retrieve the next twenty templates, use the nextToken string returned with the array</p>
Retrieve a JSON array of up to twenty of your job templates. This will return the templates themselves, not just a list of them. To retrieve the next twenty templates, use the nextToken string returned with the array
Retrieve a JSON array of up to twenty of your job templates . This will return the templates themselves not just a list of them . To retrieve the next twenty templates use the nextToken string returned with the array
fn list_job_templates(
        &self,
        input: ListJobTemplatesRequest,
    ) -> RusotoFuture<ListJobTemplatesResponse, ListJobTemplatesError> {
        let request_uri = "/2017-08-29/jobTemplates";
        let mut request = SignedRequest::new("GET", "mediaconvert", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        let mut params = Params::new();
        if let Some(ref x) = input.category {
            params.put("category", x);
        }
        if let Some(ref x) = input.list_by {
            params.put("listBy", x);
        }
        if let Some(ref x) = input.max_results {
            params.put("maxResults", x);
        }
        if let Some(ref x) = input.next_token {
            params.put("nextToken", x);
        }
        if let Some(ref x) = input.order {
            params.put("order", x);
        }
        request.set_params(params);
        self.client.sign_and_dispatch(request, |response| {
            if response.status.as_u16() == 200 {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<ListJobTemplatesResponse, _>()?;
                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(ListJobTemplatesError::from_response(response))),
                )
            }
        })
    }
fn list_job_templates ( & self , input : ListJobTemplatesRequest , ) -> RusotoFuture < ListJobTemplatesResponse , ListJobTemplatesError > { let request_uri = " " ; let mut request = SignedRequest :: new ( " " , " " , & self . region , & request_uri ) ; request . set_content_type ( " " . to_owned ( ) ) ; let mut params = Params :: new ( ) ; if let Some ( ref x ) = input . category { params . put ( " " , x ) ; } if let Some ( ref x ) = input . list_by { params . put ( " " , x ) ; } if let Some ( ref x ) = input . max_results { params . put ( " " , x ) ; } if let Some ( ref x ) = input . next_token { params . put ( " " , x ) ; } if let Some ( ref x ) = input . order { params . put ( " " , x ) ; } request . set_params ( params ) ; self . client . sign_and_dispatch ( request , | response | { if response . status . as_u16 ( ) == 200 { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { let result = proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < ListJobTemplatesResponse , _ > ( ) ? ; Ok ( result ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( ListJobTemplatesError :: from_response ( response ) ) ) , ) } } ) }
<p>Retrieve a JSON array of up to twenty of your job templates.
<p > Retrieve a JSON array of up to twenty of your job templates .
&self
input
ListJobTemplatesRequest