pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateOriginAccessControlOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn origin_access_control(self, input: OriginAccessControl) -> Self
pub fn origin_access_control(self, input: OriginAccessControl) -> Self
The origin access control after it has been updated.
sourcepub fn set_origin_access_control(
self,
input: Option<OriginAccessControl>
) -> Self
pub fn set_origin_access_control(
self,
input: Option<OriginAccessControl>
) -> Self
The origin access control after it has been updated.
Examples found in repository?
src/operation_deser.rs (lines 12765-12767)
12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770
pub fn parse_update_origin_access_control_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateOriginAccessControlOutput,
crate::error::UpdateOriginAccessControlError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_origin_access_control_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_update_origin_access_control_update_origin_access_control_output_e_tag(response.headers())
.map_err(|_|crate::error::UpdateOriginAccessControlError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_origin_access_control(
crate::http_serde::deser_payload_update_origin_access_control_update_origin_access_control_output_origin_access_control(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 new version of the origin access control after it has been updated.
sourcepub fn set_e_tag(self, input: Option<String>) -> Self
pub fn set_e_tag(self, input: Option<String>) -> Self
The new version of the origin access control after it has been updated.
Examples found in repository?
src/operation_deser.rs (lines 12761-12764)
12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770
pub fn parse_update_origin_access_control_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateOriginAccessControlOutput,
crate::error::UpdateOriginAccessControlError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_origin_access_control_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_update_origin_access_control_update_origin_access_control_output_e_tag(response.headers())
.map_err(|_|crate::error::UpdateOriginAccessControlError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_origin_access_control(
crate::http_serde::deser_payload_update_origin_access_control_update_origin_access_control_output_origin_access_control(response.body().as_ref())?
);
output.build()
})
}
sourcepub fn build(self) -> UpdateOriginAccessControlOutput
pub fn build(self) -> UpdateOriginAccessControlOutput
Consumes the builder and constructs a UpdateOriginAccessControlOutput
.
Examples found in repository?
src/operation_deser.rs (line 12768)
12751 12752 12753 12754 12755 12756 12757 12758 12759 12760 12761 12762 12763 12764 12765 12766 12767 12768 12769 12770
pub fn parse_update_origin_access_control_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::UpdateOriginAccessControlOutput,
crate::error::UpdateOriginAccessControlError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::update_origin_access_control_output::Builder::default();
let _ = response;
output = output.set_e_tag(
crate::http_serde::deser_header_update_origin_access_control_update_origin_access_control_output_e_tag(response.headers())
.map_err(|_|crate::error::UpdateOriginAccessControlError::unhandled("Failed to parse ETag from header `ETag"))?
);
output = output.set_origin_access_control(
crate::http_serde::deser_payload_update_origin_access_control_update_origin_access_control_output_origin_access_control(response.body().as_ref())?
);
output.build()
})
}