Interface ImageMetadata.Builder
-
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageMetadata.Builder,ImageMetadata>
,SdkBuilder<ImageMetadata.Builder,ImageMetadata>
,SdkPojo
- Enclosing class:
- ImageMetadata
public static interface ImageMetadata.Builder extends SdkPojo, CopyableBuilder<ImageMetadata.Builder,ImageMetadata>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImageMetadata.Builder
creationDate(String creationDate)
The date and time the AMI was created.ImageMetadata.Builder
deprecationTime(String deprecationTime)
The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.ImageMetadata.Builder
imageId(String imageId)
The ID of the AMI.ImageMetadata.Builder
imageOwnerAlias(String imageOwnerAlias)
The alias of the AMI owner.ImageMetadata.Builder
isPublic(Boolean isPublic)
Indicates whether the AMI has public launch permissions.ImageMetadata.Builder
name(String name)
The name of the AMI.ImageMetadata.Builder
ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the AMI.ImageMetadata.Builder
state(String state)
The current state of the AMI.ImageMetadata.Builder
state(ImageState state)
The current state of the AMI.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
imageId
ImageMetadata.Builder imageId(String imageId)
The ID of the AMI.
- Parameters:
imageId
- The ID of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
ImageMetadata.Builder name(String name)
The name of the AMI.
- Parameters:
name
- The name of the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ownerId
ImageMetadata.Builder ownerId(String ownerId)
The ID of the Amazon Web Services account that owns the AMI.
- Parameters:
ownerId
- The ID of the Amazon Web Services account that owns the AMI.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
state
ImageMetadata.Builder state(String state)
The current state of the AMI. If the state is
available
, the AMI is successfully registered and can be used to launch an instance.- Parameters:
state
- The current state of the AMI. If the state isavailable
, the AMI is successfully registered and can be used to launch an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageState
,ImageState
-
state
ImageMetadata.Builder state(ImageState state)
The current state of the AMI. If the state is
available
, the AMI is successfully registered and can be used to launch an instance.- Parameters:
state
- The current state of the AMI. If the state isavailable
, the AMI is successfully registered and can be used to launch an instance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
ImageState
,ImageState
-
imageOwnerAlias
ImageMetadata.Builder imageOwnerAlias(String imageOwnerAlias)
The alias of the AMI owner.
Valid values:
amazon
|aws-marketplace
- Parameters:
imageOwnerAlias
- The alias of the AMI owner.Valid values:
amazon
|aws-marketplace
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
creationDate
ImageMetadata.Builder creationDate(String creationDate)
The date and time the AMI was created.
- Parameters:
creationDate
- The date and time the AMI was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deprecationTime
ImageMetadata.Builder deprecationTime(String deprecationTime)
The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.
- Parameters:
deprecationTime
- The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isPublic
ImageMetadata.Builder isPublic(Boolean isPublic)
Indicates whether the AMI has public launch permissions. A value of
true
means this AMI has public launch permissions, whilefalse
means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.- Parameters:
isPublic
- Indicates whether the AMI has public launch permissions. A value oftrue
means this AMI has public launch permissions, whilefalse
means it has only implicit (AMI owner) or explicit (shared with your account) launch permissions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-