Struct aws_sdk_appstream::input::update_application_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateApplicationInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the application. This name is visible to users when display name is not specified.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the application. This name is visible to users when display name is not specified.
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
The display name of the application. This name is visible to users in the application catalog.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
The display name of the application. This name is visible to users in the application catalog.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the application.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the application.
sourcepub fn icon_s3_location(self, input: S3Location) -> Self
pub fn icon_s3_location(self, input: S3Location) -> Self
The icon S3 location of the application.
sourcepub fn set_icon_s3_location(self, input: Option<S3Location>) -> Self
pub fn set_icon_s3_location(self, input: Option<S3Location>) -> Self
The icon S3 location of the application.
sourcepub fn launch_path(self, input: impl Into<String>) -> Self
pub fn launch_path(self, input: impl Into<String>) -> Self
The launch path of the application.
sourcepub fn set_launch_path(self, input: Option<String>) -> Self
pub fn set_launch_path(self, input: Option<String>) -> Self
The launch path of the application.
sourcepub fn working_directory(self, input: impl Into<String>) -> Self
pub fn working_directory(self, input: impl Into<String>) -> Self
The working directory of the application.
sourcepub fn set_working_directory(self, input: Option<String>) -> Self
pub fn set_working_directory(self, input: Option<String>) -> Self
The working directory of the application.
sourcepub fn launch_parameters(self, input: impl Into<String>) -> Self
pub fn launch_parameters(self, input: impl Into<String>) -> Self
The launch parameters of the application.
sourcepub fn set_launch_parameters(self, input: Option<String>) -> Self
pub fn set_launch_parameters(self, input: Option<String>) -> Self
The launch parameters of the application.
sourcepub fn app_block_arn(self, input: impl Into<String>) -> Self
pub fn app_block_arn(self, input: impl Into<String>) -> Self
The ARN of the app block.
sourcepub fn set_app_block_arn(self, input: Option<String>) -> Self
pub fn set_app_block_arn(self, input: Option<String>) -> Self
The ARN of the app block.
sourcepub fn attributes_to_delete(self, input: ApplicationAttribute) -> Self
pub fn attributes_to_delete(self, input: ApplicationAttribute) -> Self
Appends an item to attributes_to_delete
.
To override the contents of this collection use set_attributes_to_delete
.
The attributes to delete for an application.
sourcepub fn set_attributes_to_delete(
self,
input: Option<Vec<ApplicationAttribute>>
) -> Self
pub fn set_attributes_to_delete(
self,
input: Option<Vec<ApplicationAttribute>>
) -> Self
The attributes to delete for an application.
sourcepub fn build(self) -> Result<UpdateApplicationInput, BuildError>
pub fn build(self) -> Result<UpdateApplicationInput, BuildError>
Consumes the builder and constructs a UpdateApplicationInput
.
Examples found in repository?
7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429 7430 7431 7432 7433 7434 7435 7436 7437
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateApplication,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateApplicationError>,
> {
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::UpdateApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateApplicationError>,
> {
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
}