aws_sdk_s3/operation/get_bucket_tagging/
_get_bucket_tagging_input.rs1#[allow(missing_docs)] #[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct GetBucketTaggingInput {
6 pub bucket: ::std::option::Option<::std::string::String>,
8 pub expected_bucket_owner: ::std::option::Option<::std::string::String>,
10}
11impl GetBucketTaggingInput {
12 pub fn bucket(&self) -> ::std::option::Option<&str> {
14 self.bucket.as_deref()
15 }
16 pub fn expected_bucket_owner(&self) -> ::std::option::Option<&str> {
18 self.expected_bucket_owner.as_deref()
19 }
20}
21impl GetBucketTaggingInput {
22 pub fn builder() -> crate::operation::get_bucket_tagging::builders::GetBucketTaggingInputBuilder {
24 crate::operation::get_bucket_tagging::builders::GetBucketTaggingInputBuilder::default()
25 }
26}
27
28#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
30#[non_exhaustive]
31pub struct GetBucketTaggingInputBuilder {
32 pub(crate) bucket: ::std::option::Option<::std::string::String>,
33 pub(crate) expected_bucket_owner: ::std::option::Option<::std::string::String>,
34}
35impl GetBucketTaggingInputBuilder {
36 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
39 self.bucket = ::std::option::Option::Some(input.into());
40 self
41 }
42 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
44 self.bucket = input;
45 self
46 }
47 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
49 &self.bucket
50 }
51 pub fn expected_bucket_owner(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
53 self.expected_bucket_owner = ::std::option::Option::Some(input.into());
54 self
55 }
56 pub fn set_expected_bucket_owner(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
58 self.expected_bucket_owner = input;
59 self
60 }
61 pub fn get_expected_bucket_owner(&self) -> &::std::option::Option<::std::string::String> {
63 &self.expected_bucket_owner
64 }
65 pub fn build(
67 self,
68 ) -> ::std::result::Result<crate::operation::get_bucket_tagging::GetBucketTaggingInput, ::aws_smithy_types::error::operation::BuildError> {
69 ::std::result::Result::Ok(crate::operation::get_bucket_tagging::GetBucketTaggingInput {
70 bucket: self.bucket,
71 expected_bucket_owner: self.expected_bucket_owner,
72 })
73 }
74}