List of usage examples for com.amazonaws.services.ec2.model IamInstanceProfile getId
public String getId()
The ID of the instance profile.
From source file:org.occiware.clouddriver.util.InstanceDataFactory.java
License:Apache License
/** * * @param instance/*from w ww . jav a 2 s .co m*/ * @return */ private static IamInstanceProfileDO buildIamInstanceProfileDO(Instance instance) { IamInstanceProfile profile = instance.getIamInstanceProfile(); IamInstanceProfileDO profileDO = new IamInstanceProfileDO(); profileDO.setArn(profile.getArn()); profileDO.setProfileId(profile.getId()); return profileDO; }