aws_sdk_s3control/operation/delete_bucket_tagging/_delete_bucket_tagging_input.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2#[allow(missing_docs)] // documentation missing in model
3#[non_exhaustive]
4#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
5pub struct DeleteBucketTaggingInput {
6 /// <p>The Amazon Web Services account ID of the Outposts bucket tag set to be removed.</p>
7 pub account_id: ::std::option::Option<::std::string::String>,
8 /// <p>The bucket ARN that has the tag set to be removed.</p>
9 /// <p>For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.</p>
10 /// <p>For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format <code>arn:aws:s3-outposts:<region>
11 /// :
12 /// <account-id>
13 /// :outpost/
14 /// <outpost-id>
15 /// /bucket/
16 /// <my-bucket-name></my-bucket-name>
17 /// </outpost-id>
18 /// </account-id>
19 /// </region></code>. For example, to access the bucket <code>reports</code> through Outpost <code>my-outpost</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports</code>. The value must be URL encoded.</p>
20 pub bucket: ::std::option::Option<::std::string::String>,
21}
22impl DeleteBucketTaggingInput {
23 /// <p>The Amazon Web Services account ID of the Outposts bucket tag set to be removed.</p>
24 pub fn account_id(&self) -> ::std::option::Option<&str> {
25 self.account_id.as_deref()
26 }
27 /// <p>The bucket ARN that has the tag set to be removed.</p>
28 /// <p>For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.</p>
29 /// <p>For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format <code>arn:aws:s3-outposts:<region>
30 /// :
31 /// <account-id>
32 /// :outpost/
33 /// <outpost-id>
34 /// /bucket/
35 /// <my-bucket-name></my-bucket-name>
36 /// </outpost-id>
37 /// </account-id>
38 /// </region></code>. For example, to access the bucket <code>reports</code> through Outpost <code>my-outpost</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports</code>. The value must be URL encoded.</p>
39 pub fn bucket(&self) -> ::std::option::Option<&str> {
40 self.bucket.as_deref()
41 }
42}
43impl DeleteBucketTaggingInput {
44 /// Creates a new builder-style object to manufacture [`DeleteBucketTaggingInput`](crate::operation::delete_bucket_tagging::DeleteBucketTaggingInput).
45 pub fn builder() -> crate::operation::delete_bucket_tagging::builders::DeleteBucketTaggingInputBuilder {
46 crate::operation::delete_bucket_tagging::builders::DeleteBucketTaggingInputBuilder::default()
47 }
48}
49
50/// A builder for [`DeleteBucketTaggingInput`](crate::operation::delete_bucket_tagging::DeleteBucketTaggingInput).
51#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
52#[non_exhaustive]
53pub struct DeleteBucketTaggingInputBuilder {
54 pub(crate) account_id: ::std::option::Option<::std::string::String>,
55 pub(crate) bucket: ::std::option::Option<::std::string::String>,
56}
57impl DeleteBucketTaggingInputBuilder {
58 /// <p>The Amazon Web Services account ID of the Outposts bucket tag set to be removed.</p>
59 /// This field is required.
60 pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
61 self.account_id = ::std::option::Option::Some(input.into());
62 self
63 }
64 /// <p>The Amazon Web Services account ID of the Outposts bucket tag set to be removed.</p>
65 pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
66 self.account_id = input;
67 self
68 }
69 /// <p>The Amazon Web Services account ID of the Outposts bucket tag set to be removed.</p>
70 pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
71 &self.account_id
72 }
73 /// <p>The bucket ARN that has the tag set to be removed.</p>
74 /// <p>For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.</p>
75 /// <p>For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format <code>arn:aws:s3-outposts:<region>
76 /// :
77 /// <account-id>
78 /// :outpost/
79 /// <outpost-id>
80 /// /bucket/
81 /// <my-bucket-name></my-bucket-name>
82 /// </outpost-id>
83 /// </account-id>
84 /// </region></code>. For example, to access the bucket <code>reports</code> through Outpost <code>my-outpost</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports</code>. The value must be URL encoded.</p>
85 /// This field is required.
86 pub fn bucket(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
87 self.bucket = ::std::option::Option::Some(input.into());
88 self
89 }
90 /// <p>The bucket ARN that has the tag set to be removed.</p>
91 /// <p>For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.</p>
92 /// <p>For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format <code>arn:aws:s3-outposts:<region>
93 /// :
94 /// <account-id>
95 /// :outpost/
96 /// <outpost-id>
97 /// /bucket/
98 /// <my-bucket-name></my-bucket-name>
99 /// </outpost-id>
100 /// </account-id>
101 /// </region></code>. For example, to access the bucket <code>reports</code> through Outpost <code>my-outpost</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports</code>. The value must be URL encoded.</p>
102 pub fn set_bucket(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
103 self.bucket = input;
104 self
105 }
106 /// <p>The bucket ARN that has the tag set to be removed.</p>
107 /// <p>For using this parameter with Amazon S3 on Outposts with the REST API, you must specify the name and the x-amz-outpost-id as well.</p>
108 /// <p>For using this parameter with S3 on Outposts with the Amazon Web Services SDK and CLI, you must specify the ARN of the bucket accessed in the format <code>arn:aws:s3-outposts:<region>
109 /// :
110 /// <account-id>
111 /// :outpost/
112 /// <outpost-id>
113 /// /bucket/
114 /// <my-bucket-name></my-bucket-name>
115 /// </outpost-id>
116 /// </account-id>
117 /// </region></code>. For example, to access the bucket <code>reports</code> through Outpost <code>my-outpost</code> owned by account <code>123456789012</code> in Region <code>us-west-2</code>, use the URL encoding of <code>arn:aws:s3-outposts:us-west-2:123456789012:outpost/my-outpost/bucket/reports</code>. The value must be URL encoded.</p>
118 pub fn get_bucket(&self) -> &::std::option::Option<::std::string::String> {
119 &self.bucket
120 }
121 /// Consumes the builder and constructs a [`DeleteBucketTaggingInput`](crate::operation::delete_bucket_tagging::DeleteBucketTaggingInput).
122 pub fn build(
123 self,
124 ) -> ::std::result::Result<crate::operation::delete_bucket_tagging::DeleteBucketTaggingInput, ::aws_smithy_types::error::operation::BuildError>
125 {
126 ::std::result::Result::Ok(crate::operation::delete_bucket_tagging::DeleteBucketTaggingInput {
127 account_id: self.account_id,
128 bucket: self.bucket,
129 })
130 }
131}