aws_sdk_workmail/client/
update_resource.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`UpdateResource`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`organization_id(impl Into<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::organization_id) / [`set_organization_id(Option<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::set_organization_id):<br>required: **true**<br><p>The identifier associated with the organization for which the resource is updated.</p><br>
    ///   - [`resource_id(impl Into<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::resource_id) / [`set_resource_id(Option<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::set_resource_id):<br>required: **true**<br><p>The identifier of the resource to be updated.</p> <p>The identifier can accept <i>ResourceId</i>, <i>Resourcename</i>, or <i>email</i>. The following identity formats are available:</p> <ul>  <li>   <p>Resource ID: r-0123456789a0123456789b0123456789</p></li>  <li>   <p>Email address: resource@domain.tld</p></li>  <li>   <p>Resource name: resource</p></li> </ul><br>
    ///   - [`name(impl Into<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::set_name):<br>required: **false**<br><p>The name of the resource to be updated.</p><br>
    ///   - [`booking_options(BookingOptions)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::booking_options) / [`set_booking_options(Option<BookingOptions>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::set_booking_options):<br>required: **false**<br><p>The resource's booking options to be updated.</p><br>
    ///   - [`description(impl Into<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::description) / [`set_description(Option<String>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::set_description):<br>required: **false**<br><p>Updates the resource description.</p><br>
    ///   - [`r#type(ResourceType)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::type) / [`set_type(Option<ResourceType>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::set_type):<br>required: **false**<br><p>Updates the resource type.</p><br>
    ///   - [`hidden_from_global_address_list(bool)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::hidden_from_global_address_list) / [`set_hidden_from_global_address_list(Option<bool>)`](crate::operation::update_resource::builders::UpdateResourceFluentBuilder::set_hidden_from_global_address_list):<br>required: **false**<br><p>If enabled, the resource is hidden from the global address list.</p><br>
    /// - On success, responds with [`UpdateResourceOutput`](crate::operation::update_resource::UpdateResourceOutput)
    /// - On failure, responds with [`SdkError<UpdateResourceError>`](crate::operation::update_resource::UpdateResourceError)
    pub fn update_resource(&self) -> crate::operation::update_resource::builders::UpdateResourceFluentBuilder {
        crate::operation::update_resource::builders::UpdateResourceFluentBuilder::new(self.handle.clone())
    }
}