pub struct Builder { /* private fields */ }Expand description
A builder for UpdatePublicSharingSettingsInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID associated with your Amazon QuickSight subscription.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID associated with your Amazon QuickSight subscription.
sourcepub fn public_sharing_enabled(self, input: bool) -> Self
pub fn public_sharing_enabled(self, input: bool) -> Self
A Boolean value that indicates whether public sharing is turned on for an Amazon QuickSight account.
sourcepub fn set_public_sharing_enabled(self, input: Option<bool>) -> Self
pub fn set_public_sharing_enabled(self, input: Option<bool>) -> Self
A Boolean value that indicates whether public sharing is turned on for an Amazon QuickSight account.
sourcepub fn build(self) -> Result<UpdatePublicSharingSettingsInput, BuildError>
pub fn build(self) -> Result<UpdatePublicSharingSettingsInput, BuildError>
Consumes the builder and constructs a UpdatePublicSharingSettingsInput.
Examples found in repository?
src/client.rs (line 15117)
15105 15106 15107 15108 15109 15110 15111 15112 15113 15114 15115 15116 15117 15118 15119 15120 15121 15122 15123 15124 15125 15126 15127 15128 15129 15130 15131 15132 15133 15134 15135 15136 15137 15138 15139 15140 15141 15142 15143 15144 15145 15146 15147
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdatePublicSharingSettings,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdatePublicSharingSettingsError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::UpdatePublicSharingSettingsOutput,
aws_smithy_http::result::SdkError<crate::error::UpdatePublicSharingSettingsError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}