fn update_broker(
        &self,
        input: UpdateBrokerRequest,
    ) -> RusotoFuture<UpdateBrokerResponse, UpdateBrokerError> {
        let request_uri = format!("/v1/brokers/{broker_id}", broker_id = input.broker_id);

        let mut request = SignedRequest::new("PUT", "mq", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());

        let encoded = Some(serde_json::to_vec(&input).unwrap());
        request.set_payload(encoded);

        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::<UpdateBrokerResponse, _>()?;

                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(UpdateBrokerError::from_response(response))),
                )
            }
        })
    }
/// <p>Adds a pending configuration change to a broker.</p>
Adds a pending configuration change to a broker.
Adds a pending configuration change to a broker .
fn update_broker(
        &self,
        input: UpdateBrokerRequest,
    ) -> RusotoFuture<UpdateBrokerResponse, UpdateBrokerError> {
        let request_uri = format!("/v1/brokers/{broker_id}", broker_id = input.broker_id);
        let mut request = SignedRequest::new("PUT", "mq", &self.region, &request_uri);
        request.set_content_type("application/x-amz-json-1.1".to_owned());
        let encoded = Some(serde_json::to_vec(&input).unwrap());
        request.set_payload(encoded);
        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::<UpdateBrokerResponse, _>()?;
                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(UpdateBrokerError::from_response(response))),
                )
            }
        })
    }
fn update_broker ( & self , input : UpdateBrokerRequest , ) -> RusotoFuture < UpdateBrokerResponse , UpdateBrokerError > { let request_uri = format ! ( " " broker_id input broker_id ) ; let mut request = SignedRequest :: new ( " " , " " , & self . region , & request_uri ) ; request . set_content_type ( " " . to_owned ( ) ) ; let encoded = Some ( serde_json :: to_vec ( & input ) . unwrap ( ) ) ; request . set_payload ( encoded ) ; 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 :: < UpdateBrokerResponse , _ > ( ) ? ; Ok ( result ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( UpdateBrokerError :: from_response ( response ) ) ) , ) } } ) }
<p>Adds a pending configuration change to a broker.</p>
<p > Adds a pending configuration change to a broker . < / p >
&self
input
UpdateBrokerRequest