Interface ShareRule.Builder

All Superinterfaces:
Buildable, CopyableBuilder<ShareRule.Builder,ShareRule>, SdkBuilder<ShareRule.Builder,ShareRule>, SdkPojo
Enclosing class:
ShareRule

public static interface ShareRule.Builder extends SdkPojo, CopyableBuilder<ShareRule.Builder,ShareRule>
  • Method Details

    • targetAccounts

      ShareRule.Builder targetAccounts(Collection<String> targetAccounts)

      The IDs of the Amazon Web Services accounts with which to share the snapshots.

      Parameters:
      targetAccounts - The IDs of the Amazon Web Services accounts with which to share the snapshots.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • targetAccounts

      ShareRule.Builder targetAccounts(String... targetAccounts)

      The IDs of the Amazon Web Services accounts with which to share the snapshots.

      Parameters:
      targetAccounts - The IDs of the Amazon Web Services accounts with which to share the snapshots.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unshareInterval

      ShareRule.Builder unshareInterval(Integer unshareInterval)

      The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.

      Parameters:
      unshareInterval - The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • unshareIntervalUnit

      ShareRule.Builder unshareIntervalUnit(String unshareIntervalUnit)

      The unit of time for the automatic unsharing interval.

      Parameters:
      unshareIntervalUnit - The unit of time for the automatic unsharing interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • unshareIntervalUnit

      ShareRule.Builder unshareIntervalUnit(RetentionIntervalUnitValues unshareIntervalUnit)

      The unit of time for the automatic unsharing interval.

      Parameters:
      unshareIntervalUnit - The unit of time for the automatic unsharing interval.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: