@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Image extends Object implements Serializable, Cloneable, StructuredPojo
Describes an image.
Constructor and Description |
---|
Image() |
Modifier and Type | Method and Description |
---|---|
Image |
clone() |
boolean |
equals(Object obj) |
List<Application> |
getApplications()
The applications associated with the image.
|
String |
getAppstreamAgentVersion()
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
|
String |
getArn()
The ARN of the image.
|
String |
getBaseImageArn()
The ARN of the image from which this image was created.
|
Date |
getCreatedTime()
The time the image was created.
|
String |
getDescription()
The description to display.
|
String |
getDisplayName()
The image name to display.
|
String |
getImageBuilderName()
The name of the image builder that was used to create the private image.
|
Boolean |
getImageBuilderSupported()
Indicates whether an image builder can be launched from this image.
|
List<ResourceError> |
getImageErrors()
Describes the errors that are returned when a new image can't be created.
|
ImagePermissions |
getImagePermissions()
The permissions to provide to the destination AWS account for the specified image.
|
String |
getName()
The name of the image.
|
String |
getPlatform()
The operating system platform of the image.
|
Date |
getPublicBaseImageReleasedDate()
The release date of the public base image.
|
String |
getState()
The image starts in the
PENDING state. |
ImageStateChangeReason |
getStateChangeReason()
The reason why the last state change occurred.
|
String |
getVisibility()
Indicates whether the image is public or private.
|
int |
hashCode() |
Boolean |
isImageBuilderSupported()
Indicates whether an image builder can be launched from this image.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApplications(Collection<Application> applications)
The applications associated with the image.
|
void |
setAppstreamAgentVersion(String appstreamAgentVersion)
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
|
void |
setArn(String arn)
The ARN of the image.
|
void |
setBaseImageArn(String baseImageArn)
The ARN of the image from which this image was created.
|
void |
setCreatedTime(Date createdTime)
The time the image was created.
|
void |
setDescription(String description)
The description to display.
|
void |
setDisplayName(String displayName)
The image name to display.
|
void |
setImageBuilderName(String imageBuilderName)
The name of the image builder that was used to create the private image.
|
void |
setImageBuilderSupported(Boolean imageBuilderSupported)
Indicates whether an image builder can be launched from this image.
|
void |
setImageErrors(Collection<ResourceError> imageErrors)
Describes the errors that are returned when a new image can't be created.
|
void |
setImagePermissions(ImagePermissions imagePermissions)
The permissions to provide to the destination AWS account for the specified image.
|
void |
setName(String name)
The name of the image.
|
void |
setPlatform(PlatformType platform)
The operating system platform of the image.
|
void |
setPlatform(String platform)
The operating system platform of the image.
|
void |
setPublicBaseImageReleasedDate(Date publicBaseImageReleasedDate)
The release date of the public base image.
|
void |
setState(ImageState state)
The image starts in the
PENDING state. |
void |
setState(String state)
The image starts in the
PENDING state. |
void |
setStateChangeReason(ImageStateChangeReason stateChangeReason)
The reason why the last state change occurred.
|
void |
setVisibility(String visibility)
Indicates whether the image is public or private.
|
void |
setVisibility(VisibilityType visibility)
Indicates whether the image is public or private.
|
String |
toString()
Returns a string representation of this object.
|
Image |
withApplications(Application... applications)
The applications associated with the image.
|
Image |
withApplications(Collection<Application> applications)
The applications associated with the image.
|
Image |
withAppstreamAgentVersion(String appstreamAgentVersion)
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
|
Image |
withArn(String arn)
The ARN of the image.
|
Image |
withBaseImageArn(String baseImageArn)
The ARN of the image from which this image was created.
|
Image |
withCreatedTime(Date createdTime)
The time the image was created.
|
Image |
withDescription(String description)
The description to display.
|
Image |
withDisplayName(String displayName)
The image name to display.
|
Image |
withImageBuilderName(String imageBuilderName)
The name of the image builder that was used to create the private image.
|
Image |
withImageBuilderSupported(Boolean imageBuilderSupported)
Indicates whether an image builder can be launched from this image.
|
Image |
withImageErrors(Collection<ResourceError> imageErrors)
Describes the errors that are returned when a new image can't be created.
|
Image |
withImageErrors(ResourceError... imageErrors)
Describes the errors that are returned when a new image can't be created.
|
Image |
withImagePermissions(ImagePermissions imagePermissions)
The permissions to provide to the destination AWS account for the specified image.
|
Image |
withName(String name)
The name of the image.
|
Image |
withPlatform(PlatformType platform)
The operating system platform of the image.
|
Image |
withPlatform(String platform)
The operating system platform of the image.
|
Image |
withPublicBaseImageReleasedDate(Date publicBaseImageReleasedDate)
The release date of the public base image.
|
Image |
withState(ImageState state)
The image starts in the
PENDING state. |
Image |
withState(String state)
The image starts in the
PENDING state. |
Image |
withStateChangeReason(ImageStateChangeReason stateChangeReason)
The reason why the last state change occurred.
|
Image |
withVisibility(String visibility)
Indicates whether the image is public or private.
|
Image |
withVisibility(VisibilityType visibility)
Indicates whether the image is public or private.
|
public void setName(String name)
The name of the image.
name
- The name of the image.public String getName()
The name of the image.
public Image withName(String name)
The name of the image.
name
- The name of the image.public void setArn(String arn)
The ARN of the image.
arn
- The ARN of the image.public String getArn()
The ARN of the image.
public Image withArn(String arn)
The ARN of the image.
arn
- The ARN of the image.public void setBaseImageArn(String baseImageArn)
The ARN of the image from which this image was created.
baseImageArn
- The ARN of the image from which this image was created.public String getBaseImageArn()
The ARN of the image from which this image was created.
public Image withBaseImageArn(String baseImageArn)
The ARN of the image from which this image was created.
baseImageArn
- The ARN of the image from which this image was created.public void setDisplayName(String displayName)
The image name to display.
displayName
- The image name to display.public String getDisplayName()
The image name to display.
public Image withDisplayName(String displayName)
The image name to display.
displayName
- The image name to display.public void setState(String state)
The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.
state
- The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.ImageState
public String getState()
The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.
PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.ImageState
public Image withState(String state)
The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.
state
- The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.ImageState
public void setState(ImageState state)
The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.
state
- The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.ImageState
public Image withState(ImageState state)
The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.
state
- The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.ImageState
public void setVisibility(String visibility)
Indicates whether the image is public or private.
visibility
- Indicates whether the image is public or private.VisibilityType
public String getVisibility()
Indicates whether the image is public or private.
VisibilityType
public Image withVisibility(String visibility)
Indicates whether the image is public or private.
visibility
- Indicates whether the image is public or private.VisibilityType
public void setVisibility(VisibilityType visibility)
Indicates whether the image is public or private.
visibility
- Indicates whether the image is public or private.VisibilityType
public Image withVisibility(VisibilityType visibility)
Indicates whether the image is public or private.
visibility
- Indicates whether the image is public or private.VisibilityType
public void setImageBuilderSupported(Boolean imageBuilderSupported)
Indicates whether an image builder can be launched from this image.
imageBuilderSupported
- Indicates whether an image builder can be launched from this image.public Boolean getImageBuilderSupported()
Indicates whether an image builder can be launched from this image.
public Image withImageBuilderSupported(Boolean imageBuilderSupported)
Indicates whether an image builder can be launched from this image.
imageBuilderSupported
- Indicates whether an image builder can be launched from this image.public Boolean isImageBuilderSupported()
Indicates whether an image builder can be launched from this image.
public void setImageBuilderName(String imageBuilderName)
The name of the image builder that was used to create the private image. If the image is shared, this value is null.
imageBuilderName
- The name of the image builder that was used to create the private image. If the image is shared, this
value is null.public String getImageBuilderName()
The name of the image builder that was used to create the private image. If the image is shared, this value is null.
public Image withImageBuilderName(String imageBuilderName)
The name of the image builder that was used to create the private image. If the image is shared, this value is null.
imageBuilderName
- The name of the image builder that was used to create the private image. If the image is shared, this
value is null.public void setPlatform(String platform)
The operating system platform of the image.
platform
- The operating system platform of the image.PlatformType
public String getPlatform()
The operating system platform of the image.
PlatformType
public Image withPlatform(String platform)
The operating system platform of the image.
platform
- The operating system platform of the image.PlatformType
public void setPlatform(PlatformType platform)
The operating system platform of the image.
platform
- The operating system platform of the image.PlatformType
public Image withPlatform(PlatformType platform)
The operating system platform of the image.
platform
- The operating system platform of the image.PlatformType
public void setDescription(String description)
The description to display.
description
- The description to display.public String getDescription()
The description to display.
public Image withDescription(String description)
The description to display.
description
- The description to display.public void setStateChangeReason(ImageStateChangeReason stateChangeReason)
The reason why the last state change occurred.
stateChangeReason
- The reason why the last state change occurred.public ImageStateChangeReason getStateChangeReason()
The reason why the last state change occurred.
public Image withStateChangeReason(ImageStateChangeReason stateChangeReason)
The reason why the last state change occurred.
stateChangeReason
- The reason why the last state change occurred.public List<Application> getApplications()
The applications associated with the image.
public void setApplications(Collection<Application> applications)
The applications associated with the image.
applications
- The applications associated with the image.public Image withApplications(Application... applications)
The applications associated with the image.
NOTE: This method appends the values to the existing list (if any). Use
setApplications(java.util.Collection)
or withApplications(java.util.Collection)
if you want to
override the existing values.
applications
- The applications associated with the image.public Image withApplications(Collection<Application> applications)
The applications associated with the image.
applications
- The applications associated with the image.public void setCreatedTime(Date createdTime)
The time the image was created.
createdTime
- The time the image was created.public Date getCreatedTime()
The time the image was created.
public Image withCreatedTime(Date createdTime)
The time the image was created.
createdTime
- The time the image was created.public void setPublicBaseImageReleasedDate(Date publicBaseImageReleasedDate)
The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.
publicBaseImageReleasedDate
- The release date of the public base image. For private images, this date is the release date of the base
image from which the image was created.public Date getPublicBaseImageReleasedDate()
The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.
public Image withPublicBaseImageReleasedDate(Date publicBaseImageReleasedDate)
The release date of the public base image. For private images, this date is the release date of the base image from which the image was created.
publicBaseImageReleasedDate
- The release date of the public base image. For private images, this date is the release date of the base
image from which the image was created.public void setAppstreamAgentVersion(String appstreamAgentVersion)
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
appstreamAgentVersion
- The version of the AppStream 2.0 agent to use for instances that are launched from this image.public String getAppstreamAgentVersion()
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
public Image withAppstreamAgentVersion(String appstreamAgentVersion)
The version of the AppStream 2.0 agent to use for instances that are launched from this image.
appstreamAgentVersion
- The version of the AppStream 2.0 agent to use for instances that are launched from this image.public void setImagePermissions(ImagePermissions imagePermissions)
The permissions to provide to the destination AWS account for the specified image.
imagePermissions
- The permissions to provide to the destination AWS account for the specified image.public ImagePermissions getImagePermissions()
The permissions to provide to the destination AWS account for the specified image.
public Image withImagePermissions(ImagePermissions imagePermissions)
The permissions to provide to the destination AWS account for the specified image.
imagePermissions
- The permissions to provide to the destination AWS account for the specified image.public List<ResourceError> getImageErrors()
Describes the errors that are returned when a new image can't be created.
public void setImageErrors(Collection<ResourceError> imageErrors)
Describes the errors that are returned when a new image can't be created.
imageErrors
- Describes the errors that are returned when a new image can't be created.public Image withImageErrors(ResourceError... imageErrors)
Describes the errors that are returned when a new image can't be created.
NOTE: This method appends the values to the existing list (if any). Use
setImageErrors(java.util.Collection)
or withImageErrors(java.util.Collection)
if you want to
override the existing values.
imageErrors
- Describes the errors that are returned when a new image can't be created.public Image withImageErrors(Collection<ResourceError> imageErrors)
Describes the errors that are returned when a new image can't be created.
imageErrors
- Describes the errors that are returned when a new image can't be created.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.