@Singleton public class ImportOrReturnExistingKeypair extends Object implements com.google.common.base.Function<RegionNameAndPublicKeyMaterial,KeyPair>
Modifier and Type | Field and Description |
---|---|
protected AWSEC2Api |
ec2Api |
protected Logger |
logger |
Constructor and Description |
---|
ImportOrReturnExistingKeypair(AWSEC2Api ec2Api) |
Modifier and Type | Method and Description |
---|---|
KeyPair |
addFingerprintToKeyPair(String publicKeyMaterial,
KeyPair keyPair) |
KeyPair |
apply(RegionNameAndPublicKeyMaterial from) |
@Named(value="jclouds.compute") protected Logger logger
protected final AWSEC2Api ec2Api
@Inject public ImportOrReturnExistingKeypair(AWSEC2Api ec2Api)
public KeyPair apply(RegionNameAndPublicKeyMaterial from)
apply
in interface Function<RegionNameAndPublicKeyMaterial,KeyPair>
Copyright © 2009–2021 The Apache Software Foundation. All rights reserved.