List of usage examples for com.amazonaws.services.ec2.model KeyPairInfo setKeyName
public void setKeyName(String keyName)
The name of the key pair.
From source file:jp.primecloud.auto.aws.typica.converter.KeyPairInfoConverter.java
License:Open Source License
@Override protected KeyPairInfo convertObject(com.xerox.amazonws.ec2.KeyPairInfo from) { KeyPairInfo to = new KeyPairInfo(); to.setKeyName(from.getKeyName()); to.setKeyFingerprint(from.getKeyFingerprint()); return to;/* w ww. java 2 s . com*/ }
From source file:org.jenkinsci.plugins.ec2harness.MockAmazonEC2.java
License:Open Source License
public DescribeKeyPairsResult describeKeyPairs() throws AmazonServiceException, AmazonClientException { printcall();/*from w w w.jav a 2 s . c o m*/ DescribeKeyPairsResult describeKeyPairsResult = new DescribeKeyPairsResult(); ArrayList<KeyPairInfo> keyPairs = new ArrayList<KeyPairInfo>(); KeyPairInfo myKey = new KeyPairInfo(); myKey.setKeyFingerprint(fingerprint); myKey.setKeyName(keyName); keyPairs.add(myKey); describeKeyPairsResult.setKeyPairs(keyPairs); return describeKeyPairsResult; }