pub struct Builder { /* private fields */ }Expand description
A builder for CreateResponseHeadersPolicyOutput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn response_headers_policy(self, input: ResponseHeadersPolicy) -> Self
pub fn response_headers_policy(self, input: ResponseHeadersPolicy) -> Self
Contains 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
Contains a response headers policy.
Examples found in repository?
src/operation_deser.rs (lines 3821-3823)
3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826
pub fn parse_create_response_headers_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::CreateResponseHeadersPolicyOutput,
crate::error::CreateResponseHeadersPolicyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::create_response_headers_policy_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_e_tag(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_location(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_location(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse Location from header `Location"))?
);
output = output.set_response_headers_policy(
crate::http_serde::deser_payload_create_response_headers_policy_create_response_headers_policy_output_response_headers_policy(response.body().as_ref())?
);
output.build()
})
}sourcepub fn location(self, input: impl Into<String>) -> Self
pub fn location(self, input: impl Into<String>) -> Self
The URL of the response headers policy.
sourcepub fn set_location(self, input: Option<String>) -> Self
pub fn set_location(self, input: Option<String>) -> Self
The URL of the response headers policy.
Examples found in repository?
src/operation_deser.rs (lines 3817-3820)
3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826
pub fn parse_create_response_headers_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::CreateResponseHeadersPolicyOutput,
crate::error::CreateResponseHeadersPolicyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::create_response_headers_policy_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_e_tag(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_location(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_location(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse Location from header `Location"))?
);
output = output.set_response_headers_policy(
crate::http_serde::deser_payload_create_response_headers_policy_create_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 version identifier for 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 version identifier for the current version of the response headers policy.
Examples found in repository?
src/operation_deser.rs (lines 3813-3816)
3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826
pub fn parse_create_response_headers_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::CreateResponseHeadersPolicyOutput,
crate::error::CreateResponseHeadersPolicyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::create_response_headers_policy_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_e_tag(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_location(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_location(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse Location from header `Location"))?
);
output = output.set_response_headers_policy(
crate::http_serde::deser_payload_create_response_headers_policy_create_response_headers_policy_output_response_headers_policy(response.body().as_ref())?
);
output.build()
})
}sourcepub fn build(self) -> CreateResponseHeadersPolicyOutput
pub fn build(self) -> CreateResponseHeadersPolicyOutput
Consumes the builder and constructs a CreateResponseHeadersPolicyOutput.
Examples found in repository?
src/operation_deser.rs (line 3824)
3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826
pub fn parse_create_response_headers_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::CreateResponseHeadersPolicyOutput,
crate::error::CreateResponseHeadersPolicyError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::create_response_headers_policy_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_e_tag(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_location(
crate::http_serde::deser_header_create_response_headers_policy_create_response_headers_policy_output_location(response.headers())
.map_err(|_|crate::error::CreateResponseHeadersPolicyError::unhandled("Failed to parse Location from header `Location"))?
);
output = output.set_response_headers_policy(
crate::http_serde::deser_payload_create_response_headers_policy_create_response_headers_policy_output_response_headers_policy(response.body().as_ref())?
);
output.build()
})
}