Interface ImageMetadata.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<ImageMetadata.Builder,
,ImageMetadata> SdkBuilder<ImageMetadata.Builder,
,ImageMetadata> SdkPojo
- Enclosing class:
ImageMetadata
-
Method Summary
Modifier and TypeMethodDescriptioncreationDate
(String creationDate) The date and time the AMI was created.deprecationTime
(String deprecationTime) The deprecation date and time of the AMI, in UTC, in the following format: YYYY-MM-DDTHH:MM:SSZ.imageAllowed
(Boolean imageAllowed) Iftrue
, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account.The ID of the AMI.imageOwnerAlias
(String imageOwnerAlias) The alias of the AMI owner.Indicates whether the AMI has public launch permissions.The name of the AMI.The ID of the Amazon Web Services account that owns the AMI.The current state of the AMI.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, sdkFieldNameToField, sdkFields
-
Method Details
-
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
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
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
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:
-
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:
-
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
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
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.
-
imageAllowed
If
true
, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. Iffalse
, the AMI can't be discovered or used in the account.For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide.
- Parameters:
imageAllowed
- Iftrue
, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. Iffalse
, the AMI can't be discovered or used in the account.For more information, see Control the discovery and use of AMIs in Amazon EC2 with Allowed AMIs in Amazon EC2 User Guide.
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
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.
-