public static final class ArchiveTypes.FilterSpec.Builder
extends java.lang.Object
ArchiveTypes.FilterSpec
.Constructor and Description |
---|
Builder()
Constructor with parameters for the required properties of
ArchiveTypes.FilterSpec . |
Modifier and Type | Method and Description |
---|---|
ArchiveTypes.FilterSpec |
build() |
ArchiveTypes.FilterSpec.Builder |
setCommentSubstring(java.lang.String commentSubstring)
Backup comment must contain this
String to match the filter. |
ArchiveTypes.FilterSpec.Builder |
setEndTimestamp(java.util.Calendar endTimestamp)
Backup must have been taken on or before this time to match the filter.
|
ArchiveTypes.FilterSpec.Builder |
setMaxResults(java.lang.Long maxResults)
Limit result to a max count of most recent backups.
|
ArchiveTypes.FilterSpec.Builder |
setStartTimestamp(java.util.Calendar startTimestamp)
Backup must have been taken on or after this time to match the filter.
|
public Builder()
ArchiveTypes.FilterSpec
.public ArchiveTypes.FilterSpec.Builder setStartTimestamp(java.util.Calendar startTimestamp)
null
the filter will match oldest backups.startTimestamp
- New value for the property.public ArchiveTypes.FilterSpec.Builder setEndTimestamp(java.util.Calendar endTimestamp)
null
the filter will match most recent backups.endTimestamp
- New value for the property.public ArchiveTypes.FilterSpec.Builder setCommentSubstring(java.lang.String commentSubstring)
String
to match the filter.
This property was added in vSphere API 6.7.
If null
the filter will match backups with any comment.commentSubstring
- New value for the property.public ArchiveTypes.FilterSpec.Builder setMaxResults(java.lang.Long maxResults)
null
it defaults to 128.maxResults
- New value for the property.public ArchiveTypes.FilterSpec build()