CloudStackTemplateOptions extends TemplateOptions implements Cloneable { public boolean shouldSetupStaticNat() { return this.setupStaticNat; }  @Override CloudStackTemplateOptions clone(); @Override void copyTo(TemplateOptions to); CloudStackTemplateOptions securityGroupId(String securityGroupId); CloudStackTemplateOptions securityGroupIds(Iterable<String> securityGroupIds); Set<String> getSecurityGroupIds(); CloudStackTemplateOptions networkId(String networkId); CloudStackTemplateOptions networkIds(Iterable<String> networkIds); Set<String> getNetworkIds(); CloudStackTemplateOptions setupStaticNat(boolean setupStaticNat); boolean shouldSetupStaticNat(); CloudStackTemplateOptions ipOnDefaultNetwork(String ipOnDefaultNetwork); String getIpOnDefaultNetwork(); CloudStackTemplateOptions ipsToNetworks(Map<String, String> ipsToNetworks); Map<String, String> getIpsToNetworks(); CloudStackTemplateOptions keyPair(String keyPair); String getKeyPair(); CloudStackTemplateOptions account(String account); String getAccount(); CloudStackTemplateOptions domainId(String domainId); String getDomainId(); @Override CloudStackTemplateOptions blockOnPort(int port, int seconds); @Override CloudStackTemplateOptions inboundPorts(int... ports); @Override CloudStackTemplateOptions authorizePublicKey(String publicKey); @Override CloudStackTemplateOptions installPrivateKey(String privateKey); @Override CloudStackTemplateOptions userMetadata(Map<String, String> userMetadata); @Override CloudStackTemplateOptions userMetadata(String key, String value); static final CloudStackTemplateOptions NONE; }
@Test public void testSetupStaticNatDefaultsTrue() { TemplateOptions options = new CloudStackTemplateOptions(); assertTrue(options.as(CloudStackTemplateOptions.class) .shouldSetupStaticNat()); }