List of usage examples for com.google.common.collect ImmutableSet of
public static <E> ImmutableSet<E> of(E element)
From source file:org.jclouds.cloudstack.options.UpdateTemplateOptions.java
/** * true if image is bootable, false otherwise */// w ww . ja v a 2 s . c o m public UpdateTemplateOptions bootable(boolean bootable) { this.queryParameters.replaceValues("bootable", ImmutableSet.of(bootable + "")); return this; }
From source file:org.jclouds.cloudstack.options.CreateAccountOptions.java
/** * @param networkDomain network domain// w ww. ja v a 2 s .c o m */ public CreateAccountOptions networkDomain(String networkDomain) { this.queryParameters.replaceValues("networkdomain", ImmutableSet.of(networkDomain)); return this; }
From source file:org.jclouds.cloudstack.options.ListSecurityGroupsOptions.java
/** * @param id//from w w w . j a v a2 s . c o m * the ID of the security group */ public ListSecurityGroupsOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }
From source file:com.opengamma.engine.marketdata.manipulator.YieldCurveSelector.java
@Override public Set<StructureType> getApplicableStructureTypes() { return ImmutableSet.of(StructureType.YIELD_CURVE); }
From source file:org.jclouds.cloudstack.options.ListAccountsOptions.java
/** * @param id//from www . j ava 2 s . c o m * list account by account ID */ public ListAccountsOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }
From source file:org.jclouds.cloudstack.options.ListVMGroupsOptions.java
/** * @param id list VMGroups by id/*from ww w . j a v a2s . c o m*/ */ public ListVMGroupsOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }
From source file:org.jclouds.scriptbuilder.domain.Statements.java
public static Statement appendFile(String path, String line, String delimiter) { return AppendFile.builder().path(path).lines(ImmutableSet.of(line)).delimiter(delimiter).build(); }
From source file:org.jclouds.cloudstack.options.CreateIPForwardingRuleOptions.java
/** * @param endPort/*from www .j a va 2 s.c om*/ * the end port for the rule */ public CreateIPForwardingRuleOptions endPort(int endPort) { this.queryParameters.replaceValues("endport", ImmutableSet.of(endPort + "")); return this; }
From source file:org.jclouds.cloudstack.options.DeleteISOOptions.java
/** * @param zoneId the ID of the zone of the ISO file. If not specified, the ISO will be deleted from all the zones *//*ww w . jav a 2s .c o m*/ public DeleteISOOptions zoneId(String zoneId) { this.queryParameters.replaceValues("zoneid", ImmutableSet.of(zoneId + "")); return this; }
From source file:org.jclouds.cloudstack.options.ListFirewallRulesOptions.java
/** * @param id/*from ww w. j a v a2s . c om*/ * firewall rule ID */ public ListFirewallRulesOptions id(String id) { this.queryParameters.replaceValues("id", ImmutableSet.of(id + "")); return this; }