pub struct Builder { /* private fields */ }
Expand description
A builder for GetBucketOwnershipControlsOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn ownership_controls(self, input: OwnershipControls) -> Self
pub fn ownership_controls(self, input: OwnershipControls) -> Self
The OwnershipControls
(BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) currently in effect for this Amazon S3 bucket.
sourcepub fn set_ownership_controls(self, input: Option<OwnershipControls>) -> Self
pub fn set_ownership_controls(self, input: Option<OwnershipControls>) -> Self
The OwnershipControls
(BucketOwnerEnforced, BucketOwnerPreferred, or ObjectWriter) currently in effect for this Amazon S3 bucket.
Examples found in repository?
src/operation_deser.rs (lines 1263-1265)
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268
pub fn parse_get_bucket_ownership_controls_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetBucketOwnershipControlsOutput,
crate::error::GetBucketOwnershipControlsError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_bucket_ownership_controls_output::Builder::default();
let _ = response;
output = output.set_ownership_controls(
crate::http_serde::deser_payload_get_bucket_ownership_controls_get_bucket_ownership_controls_output_ownership_controls(response.body().as_ref())?
);
output.build()
})
}
sourcepub fn build(self) -> GetBucketOwnershipControlsOutput
pub fn build(self) -> GetBucketOwnershipControlsOutput
Consumes the builder and constructs a GetBucketOwnershipControlsOutput
.
Examples found in repository?
src/operation_deser.rs (line 1266)
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268
pub fn parse_get_bucket_ownership_controls_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::GetBucketOwnershipControlsOutput,
crate::error::GetBucketOwnershipControlsError,
> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_bucket_ownership_controls_output::Builder::default();
let _ = response;
output = output.set_ownership_controls(
crate::http_serde::deser_payload_get_bucket_ownership_controls_get_bucket_ownership_controls_output_ownership_controls(response.body().as_ref())?
);
output.build()
})
}