InstantiateVAppTemplateOptions { public InstantiateVAppTemplateOptions addNetworkConfig(NetworkConfig networkConfig) { this.networkConfig.add(checkNotNull(networkConfig, "networkConfig")); return this; }  InstantiateVAppTemplateOptions sshKeyFingerprint(String sshKeyFingerprint); InstantiateVAppTemplateOptions primaryDNS(String primaryDNS); InstantiateVAppTemplateOptions secondaryDNS(String secondaryDNS); InstantiateVAppTemplateOptions withPassword(String password); InstantiateVAppTemplateOptions inGroup(String group); InstantiateVAppTemplateOptions inRow(String row); InstantiateVAppTemplateOptions productProperties(Map<String, String> properties); InstantiateVAppTemplateOptions productProperty(String key, String value); Map<String, String> getProperties(); boolean shouldBlock(); boolean shouldDeploy(); boolean shouldPowerOn(); InstantiateVAppTemplateOptions deploy(boolean deploy); InstantiateVAppTemplateOptions powerOn(boolean powerOn); InstantiateVAppTemplateOptions block(boolean block); InstantiateVAppTemplateOptions customizeOnInstantiate(boolean customizeOnInstantiate); InstantiateVAppTemplateOptions processorCount(int cpuCount); InstantiateVAppTemplateOptions memory(long megabytes); InstantiateVAppTemplateOptions addNetworkConfig(NetworkConfig networkConfig); Set<NetworkConfig> getNetworkConfig(); String getCpuCount(); Boolean shouldCustomizeOnInstantiate(); String getMemorySizeMegabytes(); @Override String toString(); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void testAddNetworkConfig() { InstantiateVAppTemplateOptions options = new InstantiateVAppTemplateOptions(); options.addNetworkConfig(new NetworkConfig("default", URI.create("http: assertEquals(Iterables.get(options.getNetworkConfig(), 0).getNetworkName(), "default"); assertEquals(Iterables.get(options.getNetworkConfig(), 0).getParentNetwork(), URI.create("http: assertEquals(Iterables.get(options.getNetworkConfig(), 0).getFenceMode(), FenceMode.ALLOW_IN_OUT); }