Interface CreateSnapshotPolicyRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<CreateSnapshotPolicyRequest.Builder,,CreateSnapshotPolicyRequest> FSxRequest.Builder,SdkBuilder<CreateSnapshotPolicyRequest.Builder,,CreateSnapshotPolicyRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
CreateSnapshotPolicyRequest
-
Method Summary
Modifier and TypeMethodDescriptionclientRequestToken(String clientRequestToken) Sets the value of the ClientRequestToken property for this object.Specifies whether the snapshot policy is enabled.fileSystemId(String fileSystemId) Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the snapshot policy.Specifies the name of the snapshot policy.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.schedules(Collection<SnapshotPolicySchedule> schedules) Specifies the schedules on which ONTAP creates snapshots for the snapshot policy.schedules(Consumer<SnapshotPolicySchedule.Builder>... schedules) Specifies the schedules on which ONTAP creates snapshots for the snapshot policy.schedules(SnapshotPolicySchedule... schedules) Specifies the schedules on which ONTAP creates snapshots for the snapshot policy.storageVirtualMachineId(String storageVirtualMachineId) Specifies the ID of the SVM on which to create the snapshot policy.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.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.fsx.model.FSxRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
clientRequestToken
Sets the value of the ClientRequestToken property for this object.- Parameters:
clientRequestToken- The new value for the ClientRequestToken property for this object.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
fileSystemId
Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the snapshot policy. You must specify either a
FileSystemIdor aStorageVirtualMachineId, but not both.- Parameters:
fileSystemId- Specifies the ID of the Amazon FSx for NetApp ONTAP file system on which to create the snapshot policy. You must specify either aFileSystemIdor aStorageVirtualMachineId, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
storageVirtualMachineId
Specifies the ID of the SVM on which to create the snapshot policy. You must specify either a
FileSystemIdor aStorageVirtualMachineId, but not both.- Parameters:
storageVirtualMachineId- Specifies the ID of the SVM on which to create the snapshot policy. You must specify either aFileSystemIdor aStorageVirtualMachineId, but not both.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
name
Specifies the name of the snapshot policy.
- Parameters:
name- Specifies 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
Specifies the schedules on which ONTAP creates snapshots for the snapshot policy.
- Parameters:
schedules- Specifies 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
Specifies the schedules on which ONTAP creates snapshots for the snapshot policy.
- Parameters:
schedules- Specifies 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
CreateSnapshotPolicyRequest.Builder schedules(Consumer<SnapshotPolicySchedule.Builder>... schedules) Specifies 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:
-
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:
-
overrideConfiguration
CreateSnapshotPolicyRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
CreateSnapshotPolicyRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-