Struct aws_sdk_s3::output::get_bucket_policy_output::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for GetBucketPolicyOutput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn set_policy(self, input: Option<String>) -> Self
pub fn set_policy(self, input: Option<String>) -> Self
The bucket policy as a JSON document.
Examples found in repository?
src/operation_deser.rs (lines 1287-1291)
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294
pub fn parse_get_bucket_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::GetBucketPolicyOutput, crate::error::GetBucketPolicyError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_bucket_policy_output::Builder::default();
let _ = response;
output = output.set_policy(
crate::http_serde::deser_payload_get_bucket_policy_get_bucket_policy_output_policy(
response.body().as_ref(),
)?,
);
output.build()
})
}
sourcepub fn build(self) -> GetBucketPolicyOutput
pub fn build(self) -> GetBucketPolicyOutput
Consumes the builder and constructs a GetBucketPolicyOutput
.
Examples found in repository?
src/operation_deser.rs (line 1292)
1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294
pub fn parse_get_bucket_policy_response(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<crate::output::GetBucketPolicyOutput, crate::error::GetBucketPolicyError> {
Ok({
#[allow(unused_mut)]
let mut output = crate::output::get_bucket_policy_output::Builder::default();
let _ = response;
output = output.set_policy(
crate::http_serde::deser_payload_get_bucket_policy_get_bucket_policy_output_policy(
response.body().as_ref(),
)?,
);
output.build()
})
}