Interface ImageMetadata.Builder

  • Method Details

    • 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

      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

      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 is available, 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 is available, 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

      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.
    • imageAllowed

      ImageMetadata.Builder imageAllowed(Boolean imageAllowed)

      If true, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. If false, 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 - If true, the AMI satisfies the criteria for Allowed AMIs and can be discovered and used in the account. If false, 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

      ImageMetadata.Builder isPublic(Boolean isPublic)

      Indicates whether the AMI has public launch permissions. A value of true means this AMI has public launch permissions, while false 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 of true means this AMI has public launch permissions, while false 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.