Class NewInstance.Builder
- java.lang.Object
-
- org.jclouds.googlecomputeengine.domain.NewInstance.Builder
-
- Enclosing class:
- NewInstance
public static class NewInstance.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder(String name, URI machineType, URI network, URI subnetwork, URI sourceImage)
Builder(String name, URI machineType, URI network, URI subnetwork, List<AttachDisk> disks)
Builder(String name, URI machineType, List<NewInstance.NetworkInterface> networks, List<AttachDisk> disks)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NewInstance
build()
NewInstance.Builder
canIpForward(Boolean canIpForward)
NewInstance.Builder
description(String description)
NewInstance.Builder
metadata(Metadata metadata)
NewInstance.Builder
scheduling(Instance.Scheduling scheduling)
NewInstance.Builder
serviceAccounts(List<Instance.ServiceAccount> serviceAccounts)
A list of service accounts, with their specified scopes, authorized for this instance.NewInstance.Builder
tags(Tags tags)
-
-
-
Constructor Detail
-
Builder
public Builder(String name, URI machineType, URI network, URI subnetwork, List<AttachDisk> disks)
-
Builder
public Builder(String name, URI machineType, List<NewInstance.NetworkInterface> networks, List<AttachDisk> disks)
-
-
Method Detail
-
canIpForward
public NewInstance.Builder canIpForward(Boolean canIpForward)
-
description
public NewInstance.Builder description(String description)
-
tags
public NewInstance.Builder tags(Tags tags)
-
metadata
public NewInstance.Builder metadata(Metadata metadata)
-
serviceAccounts
public NewInstance.Builder serviceAccounts(List<Instance.ServiceAccount> serviceAccounts)
A list of service accounts, with their specified scopes, authorized for this instance. Service accounts generate access tokens that can be accessed through the metadata server and used to authenticate applications on the instance. Note: to add scopes to the default service account on the VM you can use 'default' as a keyword for email.
-
scheduling
public NewInstance.Builder scheduling(Instance.Scheduling scheduling)
-
build
public NewInstance build()
-
-