Package org.jclouds.compute.domain
Class ImageBuilder
- java.lang.Object
-
- org.jclouds.domain.ResourceMetadataBuilder<ComputeType>
-
- org.jclouds.compute.domain.ComputeMetadataBuilder
-
- org.jclouds.compute.domain.ImageBuilder
-
public class ImageBuilder extends ComputeMetadataBuilder
-
-
Field Summary
-
Fields inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
id, tags, type
-
Fields inherited from class org.jclouds.domain.ResourceMetadataBuilder
location, name, providerId, uri, userMetadata
-
-
Constructor Summary
Constructors Constructor Description ImageBuilder()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageBuilder
backendStatus(String backendStatus)
Image
build()
ImageBuilder
defaultCredentials(LoginCredentials defaultLoginCredentials)
ImageBuilder
description(String description)
static ImageBuilder
fromImage(Image image)
ImageBuilder
id(String id)
ImageBuilder
ids(String id)
set id and providerId to the same value;ImageBuilder
location(Location location)
ImageBuilder
name(String name)
ImageBuilder
operatingSystem(OperatingSystem operatingSystem)
ImageBuilder
providerId(String providerId)
ImageBuilder
status(Image.Status status)
ImageBuilder
tags(Iterable<String> tags)
ImageBuilder
uri(URI uri)
ImageBuilder
userMetadata(Map<String,String> userMetadata)
ImageBuilder
version(String version)
-
Methods inherited from class org.jclouds.compute.domain.ComputeMetadataBuilder
fromComputeMetadata
-
-
-
-
Method Detail
-
operatingSystem
public ImageBuilder operatingSystem(OperatingSystem operatingSystem)
-
status
public ImageBuilder status(Image.Status status)
-
backendStatus
public ImageBuilder backendStatus(@Nullable String backendStatus)
-
version
public ImageBuilder version(@Nullable String version)
-
description
public ImageBuilder description(@Nullable String description)
-
defaultCredentials
public ImageBuilder defaultCredentials(@Nullable LoginCredentials defaultLoginCredentials)
-
id
public ImageBuilder id(String id)
- Overrides:
id
in classComputeMetadataBuilder
-
tags
public ImageBuilder tags(Iterable<String> tags)
- Overrides:
tags
in classComputeMetadataBuilder
-
ids
public ImageBuilder ids(String id)
Description copied from class:ComputeMetadataBuilder
set id and providerId to the same value;- Overrides:
ids
in classComputeMetadataBuilder
-
providerId
public ImageBuilder providerId(String providerId)
- Overrides:
providerId
in classComputeMetadataBuilder
-
name
public ImageBuilder name(String name)
- Overrides:
name
in classComputeMetadataBuilder
-
location
public ImageBuilder location(Location location)
- Overrides:
location
in classComputeMetadataBuilder
-
uri
public ImageBuilder uri(URI uri)
- Overrides:
uri
in classComputeMetadataBuilder
-
userMetadata
public ImageBuilder userMetadata(Map<String,String> userMetadata)
- Overrides:
userMetadata
in classComputeMetadataBuilder
-
build
public Image build()
- Overrides:
build
in classComputeMetadataBuilder
-
fromImage
public static ImageBuilder fromImage(Image image)
-
-