Interface ShareRule.Builder

    • Method Detail

      • 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:
        RetentionIntervalUnitValues, RetentionIntervalUnitValues