public static interface Image.Builder extends CopyableBuilder<Image.Builder,Image>
Modifier and Type | Method and Description |
---|---|
Image.Builder |
applications(Application... applications)
The applications associated with the image.
|
Image.Builder |
applications(Collection<Application> applications)
The applications associated with the image.
|
Image.Builder |
applications(Consumer<Application.Builder>... applications)
The applications associated with the image.
|
Image.Builder |
arn(String arn)
The ARN of the image.
|
Image.Builder |
baseImageArn(String baseImageArn)
The ARN of the image from which this image was created.
|
Image.Builder |
createdTime(Instant createdTime)
The time the image was created.
|
Image.Builder |
description(String description)
The description displayed to end users.
|
Image.Builder |
displayName(String displayName)
The image name displayed to end users.
|
Image.Builder |
imageBuilderSupported(Boolean imageBuilderSupported)
Indicates whether an image builder can be launched from this image.
|
Image.Builder |
name(String name)
The name of the image.
|
Image.Builder |
platform(PlatformType platform)
The operating system platform of the image.
|
Image.Builder |
platform(String platform)
The operating system platform of the image.
|
Image.Builder |
publicBaseImageReleasedDate(Instant publicBaseImageReleasedDate)
The release date of the public base image.
|
Image.Builder |
state(ImageState state)
The image starts in the
PENDING state. |
Image.Builder |
state(String state)
The image starts in the
PENDING state. |
default Image.Builder |
stateChangeReason(Consumer<ImageStateChangeReason.Builder> stateChangeReason)
The reason why the last state change occurred.
|
Image.Builder |
stateChangeReason(ImageStateChangeReason stateChangeReason)
The reason why the last state change occurred.
|
Image.Builder |
visibility(String visibility)
Indicates whether the image is public or private.
|
Image.Builder |
visibility(VisibilityType visibility)
Indicates whether the image is public or private.
|
copy
applyMutation, build
Image.Builder name(String name)
The name of the image.
name
- The name of the image.Image.Builder arn(String arn)
The ARN of the image.
arn
- The ARN of the image.Image.Builder baseImageArn(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.Image.Builder displayName(String displayName)
The image name displayed to end users.
displayName
- The image name displayed to end users.Image.Builder state(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
,
ImageState
Image.Builder state(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
,
ImageState
Image.Builder visibility(String visibility)
Indicates whether the image is public or private.
visibility
- Indicates whether the image is public or private.VisibilityType
,
VisibilityType
Image.Builder visibility(VisibilityType visibility)
Indicates whether the image is public or private.
visibility
- Indicates whether the image is public or private.VisibilityType
,
VisibilityType
Image.Builder imageBuilderSupported(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.Image.Builder platform(String platform)
The operating system platform of the image.
platform
- The operating system platform of the image.PlatformType
,
PlatformType
Image.Builder platform(PlatformType platform)
The operating system platform of the image.
platform
- The operating system platform of the image.PlatformType
,
PlatformType
Image.Builder description(String description)
The description displayed to end users.
description
- The description displayed to end users.Image.Builder stateChangeReason(ImageStateChangeReason stateChangeReason)
The reason why the last state change occurred.
stateChangeReason
- The reason why the last state change occurred.default Image.Builder stateChangeReason(Consumer<ImageStateChangeReason.Builder> stateChangeReason)
The reason why the last state change occurred.
This is a convenience that creates an instance of theImageStateChangeReason.Builder
avoiding the
need to create one manually via ImageStateChangeReason.builder()
.
When the Consumer
completes, SdkBuilder.build()
is called immediately and
its result is passed to stateChangeReason(ImageStateChangeReason)
.stateChangeReason
- a consumer that will call methods on ImageStateChangeReason.Builder
stateChangeReason(ImageStateChangeReason)
Image.Builder applications(Collection<Application> applications)
The applications associated with the image.
applications
- The applications associated with the image.Image.Builder applications(Application... applications)
The applications associated with the image.
applications
- The applications associated with the image.Image.Builder applications(Consumer<Application.Builder>... applications)
The applications associated with the image.
This is a convenience that creates an instance of theList.Builder
avoiding the need to
create one manually via List#builder()
.
When the Consumer
completes, List.Builder#build()
is called immediately and its
result is passed to #applications(List)
.applications
- a consumer that will call methods on List.Builder
#applications(List)
Image.Builder createdTime(Instant createdTime)
The time the image was created.
createdTime
- The time the image was created.Image.Builder publicBaseImageReleasedDate(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.
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.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.