Struct aws_sdk_appstream::types::builders::AppBlockBuilder
source · #[non_exhaustive]pub struct AppBlockBuilder { /* private fields */ }
Expand description
A builder for AppBlock
.
Implementations§
source§impl AppBlockBuilder
impl AppBlockBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the app block.
This field is required.sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The ARN of the app block.
This field is required.sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the app block.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the app block.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
The description of the app block.
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 app block.
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 app block.
sourcepub fn get_display_name(&self) -> &Option<String>
pub fn get_display_name(&self) -> &Option<String>
The display name of the app block.
sourcepub fn source_s3_location(self, input: S3Location) -> Self
pub fn source_s3_location(self, input: S3Location) -> Self
The source S3 location of the app block.
sourcepub fn set_source_s3_location(self, input: Option<S3Location>) -> Self
pub fn set_source_s3_location(self, input: Option<S3Location>) -> Self
The source S3 location of the app block.
sourcepub fn get_source_s3_location(&self) -> &Option<S3Location>
pub fn get_source_s3_location(&self) -> &Option<S3Location>
The source S3 location of the app block.
sourcepub fn setup_script_details(self, input: ScriptDetails) -> Self
pub fn setup_script_details(self, input: ScriptDetails) -> Self
The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
sourcepub fn set_setup_script_details(self, input: Option<ScriptDetails>) -> Self
pub fn set_setup_script_details(self, input: Option<ScriptDetails>) -> Self
The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
sourcepub fn get_setup_script_details(&self) -> &Option<ScriptDetails>
pub fn get_setup_script_details(&self) -> &Option<ScriptDetails>
The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
sourcepub fn created_time(self, input: DateTime) -> Self
pub fn created_time(self, input: DateTime) -> Self
The created time of the app block.
sourcepub fn set_created_time(self, input: Option<DateTime>) -> Self
pub fn set_created_time(self, input: Option<DateTime>) -> Self
The created time of the app block.
sourcepub fn get_created_time(&self) -> &Option<DateTime>
pub fn get_created_time(&self) -> &Option<DateTime>
The created time of the app block.
sourcepub fn post_setup_script_details(self, input: ScriptDetails) -> Self
pub fn post_setup_script_details(self, input: ScriptDetails) -> Self
The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
sourcepub fn set_post_setup_script_details(self, input: Option<ScriptDetails>) -> Self
pub fn set_post_setup_script_details(self, input: Option<ScriptDetails>) -> Self
The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
sourcepub fn get_post_setup_script_details(&self) -> &Option<ScriptDetails>
pub fn get_post_setup_script_details(&self) -> &Option<ScriptDetails>
The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
sourcepub fn packaging_type(self, input: PackagingType) -> Self
pub fn packaging_type(self, input: PackagingType) -> Self
The packaging type of the app block.
sourcepub fn set_packaging_type(self, input: Option<PackagingType>) -> Self
pub fn set_packaging_type(self, input: Option<PackagingType>) -> Self
The packaging type of the app block.
sourcepub fn get_packaging_type(&self) -> &Option<PackagingType>
pub fn get_packaging_type(&self) -> &Option<PackagingType>
The packaging type of the app block.
sourcepub fn state(self, input: AppBlockState) -> Self
pub fn state(self, input: AppBlockState) -> Self
The state of the app block.
An app block with AppStream 2.0 packaging will be in the INACTIVE
state if no application package (VHD) is assigned to it. After an application package (VHD) is created by an app block builder for an app block, it becomes ACTIVE
.
Custom app blocks are always in the ACTIVE
state and no action is required to use them.
sourcepub fn set_state(self, input: Option<AppBlockState>) -> Self
pub fn set_state(self, input: Option<AppBlockState>) -> Self
The state of the app block.
An app block with AppStream 2.0 packaging will be in the INACTIVE
state if no application package (VHD) is assigned to it. After an application package (VHD) is created by an app block builder for an app block, it becomes ACTIVE
.
Custom app blocks are always in the ACTIVE
state and no action is required to use them.
sourcepub fn get_state(&self) -> &Option<AppBlockState>
pub fn get_state(&self) -> &Option<AppBlockState>
The state of the app block.
An app block with AppStream 2.0 packaging will be in the INACTIVE
state if no application package (VHD) is assigned to it. After an application package (VHD) is created by an app block builder for an app block, it becomes ACTIVE
.
Custom app blocks are always in the ACTIVE
state and no action is required to use them.
sourcepub fn app_block_errors(self, input: ErrorDetails) -> Self
pub fn app_block_errors(self, input: ErrorDetails) -> Self
Appends an item to app_block_errors
.
To override the contents of this collection use set_app_block_errors
.
The errors of the app block.
sourcepub fn set_app_block_errors(self, input: Option<Vec<ErrorDetails>>) -> Self
pub fn set_app_block_errors(self, input: Option<Vec<ErrorDetails>>) -> Self
The errors of the app block.
sourcepub fn get_app_block_errors(&self) -> &Option<Vec<ErrorDetails>>
pub fn get_app_block_errors(&self) -> &Option<Vec<ErrorDetails>>
The errors of the app block.
Trait Implementations§
source§impl Clone for AppBlockBuilder
impl Clone for AppBlockBuilder
source§fn clone(&self) -> AppBlockBuilder
fn clone(&self) -> AppBlockBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AppBlockBuilder
impl Debug for AppBlockBuilder
source§impl Default for AppBlockBuilder
impl Default for AppBlockBuilder
source§fn default() -> AppBlockBuilder
fn default() -> AppBlockBuilder
source§impl PartialEq for AppBlockBuilder
impl PartialEq for AppBlockBuilder
source§fn eq(&self, other: &AppBlockBuilder) -> bool
fn eq(&self, other: &AppBlockBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.