Interface GetAllowedImagesSettingsResponse.Builder

  • Method Details

    • state

      The current state of the Allowed AMIs setting at the account level in the specified Amazon Web Services Region.

      Possible values:

      • disabled: All AMIs are allowed.

      • audit-mode: All AMIs are allowed, but the ImageAllowed field is set to true if the AMI would be allowed with the current list of criteria if allowed AMIs was enabled.

      • enabled: Only AMIs matching the image criteria are discoverable and available for use.

      Parameters:
      state - The current state of the Allowed AMIs setting at the account level in the specified Amazon Web Services Region.

      Possible values:

      • disabled: All AMIs are allowed.

      • audit-mode: All AMIs are allowed, but the ImageAllowed field is set to true if the AMI would be allowed with the current list of criteria if allowed AMIs was enabled.

      • enabled: Only AMIs matching the image criteria are discoverable and available for use.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageCriteria

      The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.

      Parameters:
      imageCriteria - The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageCriteria

      The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.

      Parameters:
      imageCriteria - The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • imageCriteria

      The list of criteria for images that are discoverable and usable in the account in the specified Amazon Web Services Region.

      This is a convenience method that creates an instance of the ImageCriterion.Builder avoiding the need to create one manually via ImageCriterion.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to imageCriteria(List<ImageCriterion>).

      Parameters:
      imageCriteria - a consumer that will call methods on ImageCriterion.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • managedBy

      The entity that manages the Allowed AMIs settings. Possible values include:

      • account - The Allowed AMIs settings is managed by the account.

      • declarative-policy - The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.

      Parameters:
      managedBy - The entity that manages the Allowed AMIs settings. Possible values include:

      • account - The Allowed AMIs settings is managed by the account.

      • declarative-policy - The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • managedBy

      The entity that manages the Allowed AMIs settings. Possible values include:

      • account - The Allowed AMIs settings is managed by the account.

      • declarative-policy - The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.

      Parameters:
      managedBy - The entity that manages the Allowed AMIs settings. Possible values include:

      • account - The Allowed AMIs settings is managed by the account.

      • declarative-policy - The Allowed AMIs settings is managed by a declarative policy and can't be modified by the account.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: