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.BuildercreationDate(String creationDate)The date and time the AMI was created.ImageMetadata.BuilderdeprecationTime(String deprecationTime)The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.ImageMetadata.BuilderimageId(String imageId)The ID of the AMI.ImageMetadata.BuilderimageOwnerAlias(String imageOwnerAlias)The alias of the AMI owner.ImageMetadata.BuilderisPublic(Boolean isPublic)Indicates whether the AMI has public launch permissions.ImageMetadata.Buildername(String name)The name of the AMI.ImageMetadata.BuilderownerId(String ownerId)The ID of the Amazon Web Services account that owns the AMI.ImageMetadata.Builderstate(String state)The current state of the AMI.ImageMetadata.Builderstate(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, sdkFieldNameToField, 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-backup-vault|aws-marketplace- Parameters:
imageOwnerAlias- The alias of the AMI owner.Valid values:
amazon|aws-backup-vault|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
truemeans this AMI has public launch permissions, whilefalsemeans 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 oftruemeans this AMI has public launch permissions, whilefalsemeans 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.
-
-