Interface SnapshotPolicy.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<SnapshotPolicy.Builder,,SnapshotPolicy> SdkBuilder<SnapshotPolicy.Builder,,SnapshotPolicy> SdkPojo
- Enclosing class:
SnapshotPolicy
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies whether the snapshot policy is enabled.fileSystemId(String fileSystemId) The globally unique ID of the file system, assigned by Amazon FSx.The lifecycle status of the snapshot policy can be one of the following:lifecycle(SnapshotPolicyLifecycle lifecycle) The lifecycle status of the snapshot policy can be one of the following:default SnapshotPolicy.BuilderlifecycleTransitionReason(Consumer<LifecycleTransitionReason.Builder> lifecycleTransitionReason) The reason why the snapshot policy lifecycle status changed.lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason) The reason why the snapshot policy lifecycle status changed.The name of the snapshot policy.resourceARN(String resourceARN) Sets the value of the ResourceARN property for this object.schedules(Collection<SnapshotPolicySchedule> schedules) The schedules on which ONTAP creates snapshots for the snapshot policy.schedules(Consumer<SnapshotPolicySchedule.Builder>... schedules) The schedules on which ONTAP creates snapshots for the snapshot policy.schedules(SnapshotPolicySchedule... schedules) The schedules on which ONTAP creates snapshots for the snapshot policy.The scope of the snapshot policy can be one of the following:scope(SnapshotPolicyScope scope) The scope of the snapshot policy can be one of the following:snapshotPolicyId(String snapshotPolicyId) The system-generated, unique ID of the snapshot policy.storageVirtualMachineId(String storageVirtualMachineId) The ID of the snapshot policy's storage virtual machine, if you created the snapshot policy on a storage virtual machine.tags(Collection<Tag> tags) Sets the value of the Tags property for this object.tags(Consumer<Tag.Builder>... tags) Sets the value of the Tags property for this object.Sets the value of the Tags property for this object.The snapshot policy's universally unique identifier (UUID).Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
resourceARN
Sets the value of the ResourceARN property for this object.- Parameters:
resourceARN- The new value for the ResourceARN property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
snapshotPolicyId
The system-generated, unique ID of the snapshot policy.
- Parameters:
snapshotPolicyId- The system-generated, unique ID of the snapshot policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemId
The globally unique ID of the file system, assigned by Amazon FSx.
- Parameters:
fileSystemId- The globally unique ID of the file system, assigned by Amazon FSx.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageVirtualMachineId
The ID of the snapshot policy's storage virtual machine, if you created the snapshot policy on a storage virtual machine.
- Parameters:
storageVirtualMachineId- The ID of the snapshot policy's storage virtual machine, if you created the snapshot policy on a storage virtual machine.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
The name of the snapshot policy.
- Parameters:
name- The name of the snapshot policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
enabled
Specifies whether the snapshot policy is enabled. This value defaults to
true.- Parameters:
enabled- Specifies whether the snapshot policy is enabled. This value defaults totrue.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedules
The schedules on which ONTAP creates snapshots for the snapshot policy.
- Parameters:
schedules- The schedules on which ONTAP creates snapshots for the snapshot policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedules
The schedules on which ONTAP creates snapshots for the snapshot policy.
- Parameters:
schedules- The schedules on which ONTAP creates snapshots for the snapshot policy.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
schedules
The schedules on which ONTAP creates snapshots for the snapshot policy.
This is a convenience method that creates an instance of theSnapshotPolicySchedule.Builderavoiding the need to create one manually viaSnapshotPolicySchedule.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toschedules(List<SnapshotPolicySchedule>).- Parameters:
schedules- a consumer that will call methods onSnapshotPolicySchedule.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
scope
The scope of the snapshot policy can be one of the following:
-
FILESYSTEM– The snapshot policy was created on the file system. -
SVM– The snapshot policy was created on an SVM.
- Parameters:
scope- The scope of the snapshot policy can be one of the following:-
FILESYSTEM– The snapshot policy was created on the file system. -
SVM– The snapshot policy was created on an SVM.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
scope
The scope of the snapshot policy can be one of the following:
-
FILESYSTEM– The snapshot policy was created on the file system. -
SVM– The snapshot policy was created on an SVM.
- Parameters:
scope- The scope of the snapshot policy can be one of the following:-
FILESYSTEM– The snapshot policy was created on the file system. -
SVM– The snapshot policy was created on an SVM.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
lifecycle
The lifecycle status of the snapshot policy can be one of the following:
-
CREATED– The snapshot policy is fully available for use. -
CREATING– Amazon FSx is creating the snapshot policy. -
DELETING– Amazon FSx is deleting the snapshot policy. -
FAILED– Amazon FSx was unable to create the snapshot policy.
- Parameters:
lifecycle- The lifecycle status of the snapshot policy can be one of the following:-
CREATED– The snapshot policy is fully available for use. -
CREATING– Amazon FSx is creating the snapshot policy. -
DELETING– Amazon FSx is deleting the snapshot policy. -
FAILED– Amazon FSx was unable to create the snapshot policy.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
lifecycle
The lifecycle status of the snapshot policy can be one of the following:
-
CREATED– The snapshot policy is fully available for use. -
CREATING– Amazon FSx is creating the snapshot policy. -
DELETING– Amazon FSx is deleting the snapshot policy. -
FAILED– Amazon FSx was unable to create the snapshot policy.
- Parameters:
lifecycle- The lifecycle status of the snapshot policy can be one of the following:-
CREATED– The snapshot policy is fully available for use. -
CREATING– Amazon FSx is creating the snapshot policy. -
DELETING– Amazon FSx is deleting the snapshot policy. -
FAILED– Amazon FSx was unable to create the snapshot policy.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
uuid
The snapshot policy's universally unique identifier (UUID).
- Parameters:
uuid- The snapshot policy's universally unique identifier (UUID).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleTransitionReason
SnapshotPolicy.Builder lifecycleTransitionReason(LifecycleTransitionReason lifecycleTransitionReason) The reason why the snapshot policy lifecycle status changed.
- Parameters:
lifecycleTransitionReason- The reason why the snapshot policy lifecycle status changed.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
lifecycleTransitionReason
default SnapshotPolicy.Builder lifecycleTransitionReason(Consumer<LifecycleTransitionReason.Builder> lifecycleTransitionReason) The reason why the snapshot policy lifecycle status changed.
This is a convenience method that creates an instance of theLifecycleTransitionReason.Builderavoiding the need to create one manually viaLifecycleTransitionReason.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tolifecycleTransitionReason(LifecycleTransitionReason).- Parameters:
lifecycleTransitionReason- a consumer that will call methods onLifecycleTransitionReason.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object.- Parameters:
tags- The new value for the Tags property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tags
Sets the value of the Tags property for this object. This is a convenience method that creates an instance of theTag.Builderavoiding the need to create one manually viaTag.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed totags(List<Tag>).- Parameters:
tags- a consumer that will call methods onTag.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-