pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateImagePermissionsInput
.
Implementations§
source§impl Builder
impl Builder
The 12-digit identifier of the AWS account for which you want add or update image permissions.
The 12-digit identifier of the AWS account for which you want add or update image permissions.
sourcepub fn image_permissions(self, input: ImagePermissions) -> Self
pub fn image_permissions(self, input: ImagePermissions) -> Self
The permissions for the image.
sourcepub fn set_image_permissions(self, input: Option<ImagePermissions>) -> Self
pub fn set_image_permissions(self, input: Option<ImagePermissions>) -> Self
The permissions for the image.
sourcepub fn build(self) -> Result<UpdateImagePermissionsInput, BuildError>
pub fn build(self) -> Result<UpdateImagePermissionsInput, BuildError>
Consumes the builder and constructs a UpdateImagePermissionsInput
.
Examples found in repository?
src/client.rs (line 8238)
8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258 8259 8260 8261 8262 8263 8264 8265 8266 8267 8268
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateImagePermissions,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateImagePermissionsError>,
> {
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::UpdateImagePermissionsOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateImagePermissionsError>,
> {
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
}