@Generated(value="software.amazon.awssdk:codegen") public final class Image extends Object implements StructuredPojo, ToCopyableBuilder<Image.Builder,Image>
Describes an image.
Modifier and Type | Class and Description |
---|---|
static interface |
Image.Builder |
Modifier and Type | Method and Description |
---|---|
List<Application> |
applications()
The applications associated with the image.
|
String |
arn()
The ARN of the image.
|
String |
baseImageArn()
The ARN of the image from which this image was created.
|
static Image.Builder |
builder() |
Instant |
createdTime()
The time the image was created.
|
String |
description()
The description displayed to end users.
|
String |
displayName()
The image name displayed to end users.
|
boolean |
equals(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Boolean |
imageBuilderSupported()
Indicates whether an image builder can be launched from this image.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
String |
name()
The name of the image.
|
PlatformType |
platform()
The operating system platform of the image.
|
String |
platformAsString()
The operating system platform of the image.
|
Instant |
publicBaseImageReleasedDate()
The release date of the public base image.
|
static Class<? extends Image.Builder> |
serializableBuilderClass() |
ImageState |
state()
The image starts in the
PENDING state. |
String |
stateAsString()
The image starts in the
PENDING state. |
ImageStateChangeReason |
stateChangeReason()
The reason why the last state change occurred.
|
Image.Builder |
toBuilder()
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
VisibilityType |
visibility()
Indicates whether the image is public or private.
|
String |
visibilityAsString()
Indicates whether the image is public or private.
|
copy
public String name()
The name of the image.
public String arn()
The ARN of the image.
public String baseImageArn()
The ARN of the image from which this image was created.
public String displayName()
The image name displayed to end users.
public 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
.
If the service returns an enum value that is not available in the current SDK version, state
will return
ImageState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.ImageState
public String stateAsString()
The image starts in the PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.
If the service returns an enum value that is not available in the current SDK version, state
will return
ImageState.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
stateAsString()
.
PENDING
state. If image creation succeeds, the state is
AVAILABLE
. If image creation fails, the state is FAILED
.ImageState
public VisibilityType visibility()
Indicates whether the image is public or private.
If the service returns an enum value that is not available in the current SDK version, visibility
will
return VisibilityType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
visibilityAsString()
.
VisibilityType
public String visibilityAsString()
Indicates whether the image is public or private.
If the service returns an enum value that is not available in the current SDK version, visibility
will
return VisibilityType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
visibilityAsString()
.
VisibilityType
public Boolean imageBuilderSupported()
Indicates whether an image builder can be launched from this image.
public PlatformType platform()
The operating system platform of the image.
If the service returns an enum value that is not available in the current SDK version, platform
will
return PlatformType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
PlatformType
public String platformAsString()
The operating system platform of the image.
If the service returns an enum value that is not available in the current SDK version, platform
will
return PlatformType.UNKNOWN_TO_SDK_VERSION
. The raw value returned by the service is available from
platformAsString()
.
PlatformType
public String description()
The description displayed to end users.
public ImageStateChangeReason stateChangeReason()
The reason why the last state change occurred.
public List<Application> applications()
The applications associated with the image.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
public Instant createdTime()
The time the image was created.
public Instant 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 Image.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<Image.Builder,Image>
public static Image.Builder builder()
public static Class<? extends Image.Builder> serializableBuilderClass()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.