Example usage for com.amazonaws.services.ec2.model KeyPair setKeyName

List of usage examples for com.amazonaws.services.ec2.model KeyPair setKeyName

Introduction

In this page you can find the example usage for com.amazonaws.services.ec2.model KeyPair setKeyName.

Prototype


public void setKeyName(String keyName) 

Source Link

Document

The name of the key pair.

Usage

From source file:jp.primecloud.auto.aws.typica.converter.KeyPairConverter.java

License:Open Source License

@Override
protected KeyPair convertObject(KeyPairInfo from) {
    KeyPair to = new KeyPair();

    to.setKeyName(from.getKeyName());
    to.setKeyMaterial(from.getKeyMaterial());
    to.setKeyFingerprint(from.getKeyFingerprint());

    return to;// w w w .j av a  2s  . c  o m
}