/** * {@inheritDoc} */ @Override public AWSEC2TemplateOptions authorizePublicKey(String publicKey) { return AWSEC2TemplateOptions.class.cast(super.authorizePublicKey(publicKey)); }
/** * {@inheritDoc} */ @Override public AWSEC2TemplateOptions authorizePublicKey(String publicKey) { return AWSEC2TemplateOptions.class.cast(super.authorizePublicKey(publicKey)); }
/** * {@inheritDoc} */ @Override public AWSEC2TemplateOptions authorizePublicKey(String publicKey) { return AWSEC2TemplateOptions.class.cast(super.authorizePublicKey(publicKey)); }
/** * @see TemplateOptions#authorizePublicKey */ public static EC2TemplateOptions authorizePublicKey(String rsaKey) { EC2TemplateOptions options = new EC2TemplateOptions(); return EC2TemplateOptions.class.cast(options.authorizePublicKey(rsaKey)); }
/** * @see TemplateOptions#authorizePublicKey */ public static EC2TemplateOptions authorizePublicKey(String rsaKey) { EC2TemplateOptions options = new EC2TemplateOptions(); return EC2TemplateOptions.class.cast(options.authorizePublicKey(rsaKey)); }
/** * @see TemplateOptions#authorizePublicKey */ public static EC2TemplateOptions authorizePublicKey(String rsaKey) { EC2TemplateOptions options = new EC2TemplateOptions(); return EC2TemplateOptions.class.cast(options.authorizePublicKey(rsaKey)); }
/** * @see TemplateOptions#authorizePublicKey */ public static EC2TemplateOptions authorizePublicKey(String rsaKey) { EC2TemplateOptions options = new EC2TemplateOptions(); return EC2TemplateOptions.class.cast(options.authorizePublicKey(rsaKey)); }
/** * @see TemplateOptions#authorizePublicKey */ public static EC2TemplateOptions authorizePublicKey(String rsaKey) { EC2TemplateOptions options = new EC2TemplateOptions(); return EC2TemplateOptions.class.cast(options.authorizePublicKey(rsaKey)); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testauthorizePublicKeyBadFormat() { EC2TemplateOptions options = new EC2TemplateOptions(); options.authorizePublicKey("whompy"); }
@Test(expectedExceptions = IllegalArgumentException.class) public void testauthorizePublicKeyBadFormat() { EC2TemplateOptions options = new EC2TemplateOptions(); options.authorizePublicKey("whompy"); }
@Test public void testauthorizePublicKey() throws IOException { EC2TemplateOptions options = new EC2TemplateOptions(); options.authorizePublicKey("ssh-rsa"); assertEquals(options.getPublicKey(), "ssh-rsa"); }
@Test public void testauthorizePublicKey() throws IOException { EC2TemplateOptions options = new EC2TemplateOptions(); options.authorizePublicKey("ssh-rsa"); assertEquals(options.getPublicKey(), "ssh-rsa"); }
options.authorizePublicKey(publicKey) .securityGroups(config.getSecurityGroups()) .inboundPorts(config.getInboundPorts())