public static class LibraryDrive.Builder extends DriveInfo.Builder
affinities, allowMultimount, jobs, licenses, media, meta, mountedOn, size, tags
owner, status
name, resourceUri, uuid
Constructor and Description |
---|
Builder() |
equals, hashCode
public LibraryDrive.Builder arch(String arch)
public LibraryDrive.Builder category(List<String> category)
public LibraryDrive.Builder description(String description)
public LibraryDrive.Builder isFavorite(boolean isFavorite)
public LibraryDrive.Builder imageType(String imageType)
public LibraryDrive.Builder installNotes(String installNotes)
public LibraryDrive.Builder isPaid(boolean isPaid)
public LibraryDrive.Builder os(String os)
public LibraryDrive.Builder url(String url)
public LibraryDrive.Builder version(String version)
public LibraryDrive.Builder size(BigInteger size)
size
in class DriveInfo.Builder
size
- Size of the drive in bytespublic LibraryDrive.Builder allowMultimount(boolean allowMultimount)
allowMultimount
in class DriveInfo.Builder
allowMultimount
- Allow the drive to be mounted on multiple guestspublic LibraryDrive.Builder affinities(List<String> affinities)
affinities
in class DriveInfo.Builder
affinities
- A list of affinities this drive should belong topublic LibraryDrive.Builder jobs(List<Job> jobs)
jobs
in class DriveInfo.Builder
jobs
- Background jobs related to this resourcepublic LibraryDrive.Builder licenses(List<DriveLicense> licenses)
licenses
in class DriveInfo.Builder
licenses
- A list of licences attached to this drivepublic LibraryDrive.Builder media(MediaType media)
media
in class DriveInfo.Builder
media
- Media representation typepublic LibraryDrive.Builder meta(Map<String,String> meta)
meta
in class DriveInfo.Builder
meta
- User defined meta informationpublic LibraryDrive.Builder mountedOn(List<Server> mountedOn)
mountedOn
in class DriveInfo.Builder
mountedOn
- Servers on which this drive is mounted onpublic LibraryDrive.Builder tags(List<String> tags)
tags
in class DriveInfo.Builder
tags
- Tags associated with this drivepublic LibraryDrive.Builder uuid(String uuid)
uuid
in class DriveInfo.Builder
uuid
- UUID of the drivepublic LibraryDrive.Builder name(String name)
name
in class DriveInfo.Builder
name
- Human readable name of the drivepublic LibraryDrive.Builder resourceUri(URI resourceUri)
resourceUri
in class DriveInfo.Builder
public LibraryDrive.Builder owner(Owner owner)
owner
in class DriveInfo.Builder
owner
- Owner of the drivepublic LibraryDrive.Builder status(DriveStatus status)
status
in class DriveInfo.Builder
status
- Status of the drivepublic static LibraryDrive.Builder fromDriveInfo(DriveInfo in)
public LibraryDrive build()
DriveInfo.Builder
build
in class DriveInfo.Builder
Copyright © 2009-2018 The Apache Software Foundation. All Rights Reserved.