pub struct Builder { /* private fields */ }Expand description
A builder for UpdateResponseHeadersPolicyOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn response_headers_policy(self, input: ResponseHeadersPolicy) -> Self
pub fn response_headers_policy(self, input: ResponseHeadersPolicy) -> Self
A response headers policy.
sourcepub fn set_response_headers_policy(
self,
input: Option<ResponseHeadersPolicy>
) -> Self
pub fn set_response_headers_policy(
self,
input: Option<ResponseHeadersPolicy>
) -> Self
A response headers policy.
Examples found in repository?
src/operation_deser.rs (lines 13436-13438)
13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441
pub fn parse_update_response_headers_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateResponseHeadersPolicyOutput,
crate::error::UpdateResponseHeadersPolicyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_response_headers_policy_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_update_response_headers_policy_update_response_headers_policy_output_e_tag(response.headers())
.map_err(|_|crate::error::UpdateResponseHeadersPolicyError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_response_headers_policy(
crate::http_serde::deser_payload_update_response_headers_policy_update_response_headers_policy_output_response_headers_policy(response.body().as_ref())?
);
output.build()
})
}sourcepub fn e_tag(self, input: impl Into<String>) -> Self
pub fn e_tag(self, input: impl Into<String>) -> Self
The current version of the response headers policy.
sourcepub fn set_e_tag(self, input: Option<String>) -> Self
pub fn set_e_tag(self, input: Option<String>) -> Self
The current version of the response headers policy.
Examples found in repository?
src/operation_deser.rs (lines 13432-13435)
13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441
pub fn parse_update_response_headers_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateResponseHeadersPolicyOutput,
crate::error::UpdateResponseHeadersPolicyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_response_headers_policy_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_update_response_headers_policy_update_response_headers_policy_output_e_tag(response.headers())
.map_err(|_|crate::error::UpdateResponseHeadersPolicyError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_response_headers_policy(
crate::http_serde::deser_payload_update_response_headers_policy_update_response_headers_policy_output_response_headers_policy(response.body().as_ref())?
);
output.build()
})
}sourcepub fn build(self) -> UpdateResponseHeadersPolicyOutput
pub fn build(self) -> UpdateResponseHeadersPolicyOutput
Consumes the builder and constructs a UpdateResponseHeadersPolicyOutput.
Examples found in repository?
src/operation_deser.rs (line 13439)
13422 13423 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441
pub fn parse_update_response_headers_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateResponseHeadersPolicyOutput,
crate::error::UpdateResponseHeadersPolicyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_response_headers_policy_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_update_response_headers_policy_update_response_headers_policy_output_e_tag(response.headers())
.map_err(|_|crate::error::UpdateResponseHeadersPolicyError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_response_headers_policy(
crate::http_serde::deser_payload_update_response_headers_policy_update_response_headers_policy_output_response_headers_policy(response.body().as_ref())?
);
output.build()
})
}