Struct aws_sdk_appstream::input::create_application_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateApplicationInput
.
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 location in S3 of the application icon.
sourcepub fn set_icon_s3_location(self, input: Option<S3Location>) -> Self
pub fn set_icon_s3_location(self, input: Option<S3Location>) -> Self
The location in S3 of the application icon.
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 platforms(self, input: PlatformType) -> Self
pub fn platforms(self, input: PlatformType) -> Self
Appends an item to platforms
.
To override the contents of this collection use set_platforms
.
The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.
sourcepub fn set_platforms(self, input: Option<Vec<PlatformType>>) -> Self
pub fn set_platforms(self, input: Option<Vec<PlatformType>>) -> Self
The platforms the application supports. WINDOWS_SERVER_2019 and AMAZON_LINUX2 are supported for Elastic fleets.
sourcepub fn instance_families(self, input: impl Into<String>) -> Self
pub fn instance_families(self, input: impl Into<String>) -> Self
Appends an item to instance_families
.
To override the contents of this collection use set_instance_families
.
The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
sourcepub fn set_instance_families(self, input: Option<Vec<String>>) -> Self
pub fn set_instance_families(self, input: Option<Vec<String>>) -> Self
The instance families the application supports. Valid values are GENERAL_PURPOSE and GRAPHICS_G4.
sourcepub fn app_block_arn(self, input: impl Into<String>) -> Self
pub fn app_block_arn(self, input: impl Into<String>) -> Self
The app block ARN to which the application should be associated
sourcepub fn set_app_block_arn(self, input: Option<String>) -> Self
pub fn set_app_block_arn(self, input: Option<String>) -> Self
The app block ARN to which the application should be associated
Adds a key-value pair to tags
.
To override the contents of this collection use set_tags
.
The tags assigned to the application.
sourcepub fn build(self) -> Result<CreateApplicationInput, BuildError>
pub fn build(self) -> Result<CreateApplicationInput, BuildError>
Consumes the builder and constructs a CreateApplicationInput
.
Examples found in repository?
1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateApplication,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateApplicationError>,
> {
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::CreateApplicationOutput,
aws_smithy_http::result::SdkError<crate::error::CreateApplicationError>,
> {
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
}