Struct aws_sdk_emr::input::update_studio_input::Builder
source · pub struct Builder { /* private fields */ }Expand description
A builder for UpdateStudioInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn studio_id(self, input: impl Into<String>) -> Self
pub fn studio_id(self, input: impl Into<String>) -> Self
The ID of the Amazon EMR Studio to update.
sourcepub fn set_studio_id(self, input: Option<String>) -> Self
pub fn set_studio_id(self, input: Option<String>) -> Self
The ID of the Amazon EMR Studio to update.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
A descriptive name for the Amazon EMR Studio.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
A descriptive name for the Amazon EMR Studio.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A detailed description to assign to the Amazon EMR Studio.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A detailed description to assign to the Amazon EMR Studio.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids.
To override the contents of this collection use set_subnet_ids.
A list of subnet IDs to associate with the Amazon EMR Studio. The list can include new subnet IDs, but must also include all of the subnet IDs previously associated with the Studio. The list order does not matter. A Studio can have a maximum of 5 subnets. The subnets must belong to the same VPC as the Studio.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
A list of subnet IDs to associate with the Amazon EMR Studio. The list can include new subnet IDs, but must also include all of the subnet IDs previously associated with the Studio. The list order does not matter. A Studio can have a maximum of 5 subnets. The subnets must belong to the same VPC as the Studio.
sourcepub fn default_s3_location(self, input: impl Into<String>) -> Self
pub fn default_s3_location(self, input: impl Into<String>) -> Self
The Amazon S3 location to back up Workspaces and notebook files for the Amazon EMR Studio.
sourcepub fn set_default_s3_location(self, input: Option<String>) -> Self
pub fn set_default_s3_location(self, input: Option<String>) -> Self
The Amazon S3 location to back up Workspaces and notebook files for the Amazon EMR Studio.
sourcepub fn build(self) -> Result<UpdateStudioInput, BuildError>
pub fn build(self) -> Result<UpdateStudioInput, BuildError>
Consumes the builder and constructs a UpdateStudioInput.
Examples found in repository?
6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateStudio,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateStudioError>,
> {
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::UpdateStudioOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateStudioError>,
> {
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
}