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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ShareRule.BuildertargetAccounts(String... targetAccounts)The IDs of the Amazon Web Services accounts with which to share the snapshots.ShareRule.BuildertargetAccounts(Collection<String> targetAccounts)The IDs of the Amazon Web Services accounts with which to share the snapshots.ShareRule.BuilderunshareInterval(Integer unshareInterval)The period after which snapshots that are shared with other Amazon Web Services accounts are automatically unshared.ShareRule.BuilderunshareIntervalUnit(String unshareIntervalUnit)The unit of time for the automatic unsharing interval.ShareRule.BuilderunshareIntervalUnit(RetentionIntervalUnitValues unshareIntervalUnit)The unit of time for the automatic unsharing interval.-
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, sdkFields
-
-
-
-
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
-
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:
RetentionIntervalUnitValues,RetentionIntervalUnitValues
-
-