@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AppBlock extends Object implements Serializable, Cloneable, StructuredPojo
Describes an app block.
App blocks are an Amazon AppStream 2.0 resource that stores the details about the virtual hard disk in an S3 bucket. It also stores the setup script with details about how to mount the virtual hard disk. The virtual hard disk includes the application binaries and other files necessary to launch your applications. Multiple applications can be assigned to a single app block.
This is only supported for Elastic fleets.
Constructor and Description |
---|
AppBlock() |
Modifier and Type | Method and Description |
---|---|
AppBlock |
clone() |
boolean |
equals(Object obj) |
List<ErrorDetails> |
getAppBlockErrors()
The errors of the app block.
|
String |
getArn()
The ARN of the app block.
|
Date |
getCreatedTime()
The created time of the app block.
|
String |
getDescription()
The description of the app block.
|
String |
getDisplayName()
The display name of the app block.
|
String |
getName()
The name of the app block.
|
String |
getPackagingType()
The packaging type of the app block.
|
ScriptDetails |
getPostSetupScriptDetails()
The post setup script details of the app block.
|
ScriptDetails |
getSetupScriptDetails()
The setup script details of the app block.
|
S3Location |
getSourceS3Location()
The source S3 location of the app block.
|
String |
getState()
The state of the app block.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAppBlockErrors(Collection<ErrorDetails> appBlockErrors)
The errors of the app block.
|
void |
setArn(String arn)
The ARN of the app block.
|
void |
setCreatedTime(Date createdTime)
The created time of the app block.
|
void |
setDescription(String description)
The description of the app block.
|
void |
setDisplayName(String displayName)
The display name of the app block.
|
void |
setName(String name)
The name of the app block.
|
void |
setPackagingType(String packagingType)
The packaging type of the app block.
|
void |
setPostSetupScriptDetails(ScriptDetails postSetupScriptDetails)
The post setup script details of the app block.
|
void |
setSetupScriptDetails(ScriptDetails setupScriptDetails)
The setup script details of the app block.
|
void |
setSourceS3Location(S3Location sourceS3Location)
The source S3 location of the app block.
|
void |
setState(String state)
The state of the app block.
|
String |
toString()
Returns a string representation of this object.
|
AppBlock |
withAppBlockErrors(Collection<ErrorDetails> appBlockErrors)
The errors of the app block.
|
AppBlock |
withAppBlockErrors(ErrorDetails... appBlockErrors)
The errors of the app block.
|
AppBlock |
withArn(String arn)
The ARN of the app block.
|
AppBlock |
withCreatedTime(Date createdTime)
The created time of the app block.
|
AppBlock |
withDescription(String description)
The description of the app block.
|
AppBlock |
withDisplayName(String displayName)
The display name of the app block.
|
AppBlock |
withName(String name)
The name of the app block.
|
AppBlock |
withPackagingType(PackagingType packagingType)
The packaging type of the app block.
|
AppBlock |
withPackagingType(String packagingType)
The packaging type of the app block.
|
AppBlock |
withPostSetupScriptDetails(ScriptDetails postSetupScriptDetails)
The post setup script details of the app block.
|
AppBlock |
withSetupScriptDetails(ScriptDetails setupScriptDetails)
The setup script details of the app block.
|
AppBlock |
withSourceS3Location(S3Location sourceS3Location)
The source S3 location of the app block.
|
AppBlock |
withState(AppBlockState state)
The state of the app block.
|
AppBlock |
withState(String state)
The state of the app block.
|
public void setName(String name)
The name of the app block.
name
- The name of the app block.public String getName()
The name of the app block.
public AppBlock withName(String name)
The name of the app block.
name
- The name of the app block.public void setArn(String arn)
The ARN of the app block.
arn
- The ARN of the app block.public String getArn()
The ARN of the app block.
public AppBlock withArn(String arn)
The ARN of the app block.
arn
- The ARN of the app block.public void setDescription(String description)
The description of the app block.
description
- The description of the app block.public String getDescription()
The description of the app block.
public AppBlock withDescription(String description)
The description of the app block.
description
- The description of the app block.public void setDisplayName(String displayName)
The display name of the app block.
displayName
- The display name of the app block.public String getDisplayName()
The display name of the app block.
public AppBlock withDisplayName(String displayName)
The display name of the app block.
displayName
- The display name of the app block.public void setSourceS3Location(S3Location sourceS3Location)
The source S3 location of the app block.
sourceS3Location
- The source S3 location of the app block.public S3Location getSourceS3Location()
The source S3 location of the app block.
public AppBlock withSourceS3Location(S3Location sourceS3Location)
The source S3 location of the app block.
sourceS3Location
- The source S3 location of the app block.public void setSetupScriptDetails(ScriptDetails setupScriptDetails)
The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
setupScriptDetails
- The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
public ScriptDetails getSetupScriptDetails()
The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
This only applies to app blocks with PackagingType CUSTOM
.
public AppBlock withSetupScriptDetails(ScriptDetails setupScriptDetails)
The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
setupScriptDetails
- The setup script details of the app block.
This only applies to app blocks with PackagingType CUSTOM
.
public void setCreatedTime(Date createdTime)
The created time of the app block.
createdTime
- The created time of the app block.public Date getCreatedTime()
The created time of the app block.
public AppBlock withCreatedTime(Date createdTime)
The created time of the app block.
createdTime
- The created time of the app block.public void setPostSetupScriptDetails(ScriptDetails postSetupScriptDetails)
The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
postSetupScriptDetails
- The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
public ScriptDetails getPostSetupScriptDetails()
The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
This only applies to app blocks with PackagingType APPSTREAM2
.
public AppBlock withPostSetupScriptDetails(ScriptDetails postSetupScriptDetails)
The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
postSetupScriptDetails
- The post setup script details of the app block.
This only applies to app blocks with PackagingType APPSTREAM2
.
public void setPackagingType(String packagingType)
The packaging type of the app block.
packagingType
- The packaging type of the app block.PackagingType
public String getPackagingType()
The packaging type of the app block.
PackagingType
public AppBlock withPackagingType(String packagingType)
The packaging type of the app block.
packagingType
- The packaging type of the app block.PackagingType
public AppBlock withPackagingType(PackagingType packagingType)
The packaging type of the app block.
packagingType
- The packaging type of the app block.PackagingType
public void setState(String state)
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.
state
- 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.
AppBlockState
public String getState()
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.
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.
AppBlockState
public AppBlock withState(String state)
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.
state
- 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.
AppBlockState
public AppBlock withState(AppBlockState state)
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.
state
- 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.
AppBlockState
public List<ErrorDetails> getAppBlockErrors()
The errors of the app block.
public void setAppBlockErrors(Collection<ErrorDetails> appBlockErrors)
The errors of the app block.
appBlockErrors
- The errors of the app block.public AppBlock withAppBlockErrors(ErrorDetails... appBlockErrors)
The errors of the app block.
NOTE: This method appends the values to the existing list (if any). Use
setAppBlockErrors(java.util.Collection)
or withAppBlockErrors(java.util.Collection)
if you want
to override the existing values.
appBlockErrors
- The errors of the app block.public AppBlock withAppBlockErrors(Collection<ErrorDetails> appBlockErrors)
The errors of the app block.
appBlockErrors
- The errors of the app block.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.