List of usage examples for com.amazonaws.services.ec2.model KeyPairInfo KeyPairInfo
KeyPairInfo
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());//from w w w . j ava 2s . c o m to.setKeyFingerprint(from.getKeyFingerprint()); return to; }
From source file:jp.primecloud.auto.ui.mock.service.MockAwsDescribeService.java
License:Open Source License
@Override public List<KeyPairInfo> getKeyPairs(Long userNo, Long platformNo) { List<KeyPairInfo> infos = new ArrayList<KeyPairInfo>(); infos.add(new KeyPairInfo().withKeyName("key01")); infos.add(new KeyPairInfo().withKeyName("key02")); infos.add(new KeyPairInfo().withKeyName("key03")); return infos; }
From source file:org.jenkinsci.plugins.ec2harness.MockAmazonEC2.java
License:Open Source License
public DescribeKeyPairsResult describeKeyPairs() throws AmazonServiceException, AmazonClientException { printcall();/*from w w w.j a v a2 s. c om*/ 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; }