Struct aws_sdk_appstream::input::update_stack_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for UpdateStackInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn display_name(self, input: impl Into<String>) -> Self
pub fn display_name(self, input: impl Into<String>) -> Self
The stack name to display.
sourcepub fn set_display_name(self, input: Option<String>) -> Self
pub fn set_display_name(self, input: Option<String>) -> Self
The stack name to display.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description to display.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description to display.
sourcepub fn storage_connectors(self, input: StorageConnector) -> Self
pub fn storage_connectors(self, input: StorageConnector) -> Self
Appends an item to storage_connectors
.
To override the contents of this collection use set_storage_connectors
.
The storage connectors to enable.
sourcepub fn set_storage_connectors(self, input: Option<Vec<StorageConnector>>) -> Self
pub fn set_storage_connectors(self, input: Option<Vec<StorageConnector>>) -> Self
The storage connectors to enable.
sourcepub fn delete_storage_connectors(self, input: bool) -> Self
👎Deprecated
pub fn delete_storage_connectors(self, input: bool) -> Self
Deletes the storage connectors currently enabled for the stack.
sourcepub fn set_delete_storage_connectors(self, input: Option<bool>) -> Self
👎Deprecated
pub fn set_delete_storage_connectors(self, input: Option<bool>) -> Self
Deletes the storage connectors currently enabled for the stack.
sourcepub fn redirect_url(self, input: impl Into<String>) -> Self
pub fn redirect_url(self, input: impl Into<String>) -> Self
The URL that users are redirected to after their streaming session ends.
sourcepub fn set_redirect_url(self, input: Option<String>) -> Self
pub fn set_redirect_url(self, input: Option<String>) -> Self
The URL that users are redirected to after their streaming session ends.
sourcepub fn feedback_url(self, input: impl Into<String>) -> Self
pub fn feedback_url(self, input: impl Into<String>) -> Self
The URL that users are redirected to after they choose the Send Feedback link. If no URL is specified, no Send Feedback link is displayed.
sourcepub fn set_feedback_url(self, input: Option<String>) -> Self
pub fn set_feedback_url(self, input: Option<String>) -> Self
The URL that users are redirected to after they choose the Send Feedback link. If no URL is specified, no Send Feedback link is displayed.
sourcepub fn attributes_to_delete(self, input: StackAttribute) -> Self
pub fn attributes_to_delete(self, input: StackAttribute) -> Self
Appends an item to attributes_to_delete
.
To override the contents of this collection use set_attributes_to_delete
.
The stack attributes to delete.
sourcepub fn set_attributes_to_delete(self, input: Option<Vec<StackAttribute>>) -> Self
pub fn set_attributes_to_delete(self, input: Option<Vec<StackAttribute>>) -> Self
The stack attributes to delete.
sourcepub fn user_settings(self, input: UserSetting) -> Self
pub fn user_settings(self, input: UserSetting) -> Self
Appends an item to user_settings
.
To override the contents of this collection use set_user_settings
.
The actions that are enabled or disabled for users during their streaming sessions. By default, these actions are enabled.
sourcepub fn set_user_settings(self, input: Option<Vec<UserSetting>>) -> Self
pub fn set_user_settings(self, input: Option<Vec<UserSetting>>) -> Self
The actions that are enabled or disabled for users during their streaming sessions. By default, these actions are enabled.
sourcepub fn application_settings(self, input: ApplicationSettings) -> Self
pub fn application_settings(self, input: ApplicationSettings) -> Self
The persistent application settings for users of a stack. When these settings are enabled, changes that users make to applications and Windows settings are automatically saved after each session and applied to the next session.
sourcepub fn set_application_settings(self, input: Option<ApplicationSettings>) -> Self
pub fn set_application_settings(self, input: Option<ApplicationSettings>) -> Self
The persistent application settings for users of a stack. When these settings are enabled, changes that users make to applications and Windows settings are automatically saved after each session and applied to the next session.
sourcepub fn access_endpoints(self, input: AccessEndpoint) -> Self
pub fn access_endpoints(self, input: AccessEndpoint) -> Self
Appends an item to access_endpoints
.
To override the contents of this collection use set_access_endpoints
.
The list of interface VPC endpoint (interface endpoint) objects. Users of the stack can connect to AppStream 2.0 only through the specified endpoints.
sourcepub fn set_access_endpoints(self, input: Option<Vec<AccessEndpoint>>) -> Self
pub fn set_access_endpoints(self, input: Option<Vec<AccessEndpoint>>) -> Self
The list of interface VPC endpoint (interface endpoint) objects. Users of the stack can connect to AppStream 2.0 only through the specified endpoints.
sourcepub fn embed_host_domains(self, input: impl Into<String>) -> Self
pub fn embed_host_domains(self, input: impl Into<String>) -> Self
Appends an item to embed_host_domains
.
To override the contents of this collection use set_embed_host_domains
.
The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.
sourcepub fn set_embed_host_domains(self, input: Option<Vec<String>>) -> Self
pub fn set_embed_host_domains(self, input: Option<Vec<String>>) -> Self
The domains where AppStream 2.0 streaming sessions can be embedded in an iframe. You must approve the domains that you want to host embedded AppStream 2.0 streaming sessions.
sourcepub fn streaming_experience_settings(
self,
input: StreamingExperienceSettings
) -> Self
pub fn streaming_experience_settings(
self,
input: StreamingExperienceSettings
) -> Self
The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.
sourcepub fn set_streaming_experience_settings(
self,
input: Option<StreamingExperienceSettings>
) -> Self
pub fn set_streaming_experience_settings(
self,
input: Option<StreamingExperienceSettings>
) -> Self
The streaming protocol you want your stack to prefer. This can be UDP or TCP. Currently, UDP is only supported in the Windows native client.
sourcepub fn build(self) -> Result<UpdateStackInput, BuildError>
pub fn build(self) -> Result<UpdateStackInput, BuildError>
Consumes the builder and constructs a UpdateStackInput
.
Examples found in repository?
8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 8343 8344 8345 8346 8347 8348 8349 8350 8351 8352 8353 8354 8355 8356 8357 8358 8359 8360 8361 8362 8363 8364 8365 8366 8367
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::UpdateStack,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::UpdateStackError>,
> {
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::UpdateStackOutput,
aws_smithy_http::result::SdkError<crate::error::UpdateStackError>,
> {
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
}