fn stop_contact(
        &self,
        input: StopContactRequest,
    ) -> RusotoFuture<StopContactResponse, StopContactError> {
        let request_uri = "/contact/stop";

        let mut request = SignedRequest::new("POST", "connect", &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.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<StopContactResponse, _>()?;

                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(StopContactError::from_response(response))),
                )
            }
        })
    }
/// <p>Ends the contact initiated by the <code>StartOutboundVoiceContact</code> operation.</p> <p>If you are using an IAM account, it must have permission to the <code>connect:StopContact</code> action.</p>
Ends the contact initiated by the StartOutboundVoiceContact operation. If you are using an IAM account, it must have permission to the connect:StopContact action.
Ends the contact initiated by the StartOutboundVoiceContact operation . If you are using an IAM account it must have permission to the connect : StopContact action .
fn stop_contact(
        &self,
        input: StopContactRequest,
    ) -> RusotoFuture<StopContactResponse, StopContactError> {
        let request_uri = "/contact/stop";
        let mut request = SignedRequest::new("POST", "connect", &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.is_success() {
                Box::new(response.buffer().from_err().and_then(|response| {
                    let result = proto::json::ResponsePayload::new(&response)
                        .deserialize::<StopContactResponse, _>()?;
                    Ok(result)
                }))
            } else {
                Box::new(
                    response
                        .buffer()
                        .from_err()
                        .and_then(|response| Err(StopContactError::from_response(response))),
                )
            }
        })
    }
fn stop_contact ( & self , input : StopContactRequest , ) -> RusotoFuture < StopContactResponse , StopContactError > { let request_uri = " " ; 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 . is_success ( ) { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | { let result = proto :: json :: ResponsePayload :: new ( & response ) . deserialize :: < StopContactResponse , _ > ( ) ? ; Ok ( result ) } ) ) } else { Box :: new ( response . buffer ( ) . from_err ( ) . and_then ( | response | Err ( StopContactError :: from_response ( response ) ) ) , ) } } ) }
<p>Ends the contact initiated by the <code>StartOutboundVoiceContact</code> operation.</p> <p>If you are using an IAM account, it must have permission to the <code>connect:StopContact</code> action.</p>
<p > Ends the contact initiated by the <code > StartOutboundVoiceContact< / code > operation . < / p > <p > If you are using an IAM account it must have permission to the <code > connect : StopContact< / code > action . < / p >
&self
input
StopContactRequest
&self
input
StopContactRequest