List of usage examples for com.amazonaws.services.ec2.model Instance getEbsOptimized
public Boolean getEbsOptimized()
Indicates whether the instance is optimized for Amazon EBS I/O.
From source file:com.clouck.model.aws.ec2.Ec2Instance.java
@Override @SuppressWarnings("rawtypes") protected boolean isEqual(AbstractResource newResource) { Instance oldInstance = this.getResource(); Ec2Instance newEc2Instance = (Ec2Instance) newResource; Instance newInstance = newEc2Instance.getResource(); if (notEqual(oldInstance.getInstanceId(), newInstance.getInstanceId())) return false; if (notEqual(oldInstance.getImageId(), newInstance.getImageId())) return false; if (notEqual(oldInstance.getState(), newInstance.getState())) return false; if (notEqual(oldInstance.getPrivateDnsName(), newInstance.getPrivateDnsName())) return false; if (notEqual(oldInstance.getPublicDnsName(), newInstance.getPublicDnsName())) return false; if (notEqual(oldInstance.getStateTransitionReason(), newInstance.getStateTransitionReason())) return false; if (notEqual(oldInstance.getKeyName(), newInstance.getKeyName())) return false; if (notEqual(oldInstance.getAmiLaunchIndex(), newInstance.getAmiLaunchIndex())) return false; if (notEqualCollection(oldInstance.getProductCodes(), newInstance.getProductCodes())) return false; if (notEqual(oldInstance.getInstanceType(), newInstance.getInstanceType())) return false; if (notEqual(oldInstance.getLaunchTime(), newInstance.getLaunchTime())) return false; if (notEqual(oldInstance.getPlacement(), newInstance.getPlacement())) return false; if (notEqual(oldInstance.getKernelId(), newInstance.getKernelId())) return false; if (notEqual(oldInstance.getRamdiskId(), newInstance.getRamdiskId())) return false; if (notEqual(oldInstance.getPlatform(), newInstance.getPlatform())) return false; if (notEqual(oldInstance.getMonitoring(), newInstance.getMonitoring())) return false; if (notEqual(oldInstance.getSubnetId(), newInstance.getSubnetId())) return false; if (notEqual(oldInstance.getVpcId(), newInstance.getVpcId())) return false; if (notEqual(oldInstance.getPrivateIpAddress(), newInstance.getPrivateIpAddress())) return false; if (notEqual(oldInstance.getPublicIpAddress(), newInstance.getPublicIpAddress())) return false; if (notEqual(oldInstance.getStateReason(), newInstance.getStateReason())) return false; if (notEqual(oldInstance.getArchitecture(), newInstance.getArchitecture())) return false; if (notEqual(oldInstance.getRootDeviceType(), newInstance.getRootDeviceType())) return false; if (notEqual(oldInstance.getRootDeviceName(), newInstance.getRootDeviceName())) return false; if (notEqualCollection(oldInstance.getBlockDeviceMappings(), newInstance.getBlockDeviceMappings())) return false; if (notEqual(oldInstance.getVirtualizationType(), newInstance.getVirtualizationType())) return false; if (notEqual(oldInstance.getInstanceLifecycle(), newInstance.getInstanceLifecycle())) return false; if (notEqual(oldInstance.getSpotInstanceRequestId(), newInstance.getSpotInstanceRequestId())) return false; if (notEqual(oldInstance.getLicense(), newInstance.getLicense())) return false; if (notEqual(oldInstance.getClientToken(), newInstance.getClientToken())) return false; if (notEqualCollection(oldInstance.getTags(), newInstance.getTags())) return false; if (notEqualCollection(oldInstance.getSecurityGroups(), newInstance.getSecurityGroups())) return false; if (notEqual(oldInstance.getSourceDestCheck(), newInstance.getSourceDestCheck())) return false; if (notEqual(oldInstance.getHypervisor(), newInstance.getHypervisor())) return false; if (notEqualNetworkInterfaces(oldInstance.getNetworkInterfaces(), newInstance.getNetworkInterfaces())) return false; if (notEqual(oldInstance.getIamInstanceProfile(), newInstance.getIamInstanceProfile())) return false; if (notEqual(oldInstance.getEbsOptimized(), newInstance.getEbsOptimized())) return false; if (notEqual(this.getTerminationProtection(), newEc2Instance.getTerminationProtection())) return false; if (notEqual(this.getShutdownBehavior(), newEc2Instance.getShutdownBehavior())) return false; if (notEqual(this.getUserData(), newEc2Instance.getUserData())) return false; return true;// ww w. j a v a2 s . co m }
From source file:org.occiware.clouddriver.util.InstanceDataFactory.java
License:Apache License
/** * * @param instance// w ww. ja v a2s . com * @param instanceDO */ private static void buildBasicInstanceData(Instance instance, InstanceDO instanceDO) { instanceDO.setInstanceId(instance.getInstanceId()); instanceDO.setImageId(instance.getImageId()); instanceDO.setAmiLaunchIndex(instance.getAmiLaunchIndex()); instanceDO.setArchitecture(instance.getArchitecture()); instanceDO.setOptimizedEbsIO(instance.getEbsOptimized()); instanceDO.setEnaSupport(instance.getEnaSupport()); instanceDO.setHypervisor(instance.getHypervisor()); instanceDO.setInstanceType(instance.getInstanceType()); instanceDO.setKernelId(instance.getKernelId()); instanceDO.setInstanceLifeCycle(instance.getInstanceLifecycle()); instanceDO.setPlatform(instance.getPlatform()); instanceDO.setPrivateDnsName(instance.getPrivateDnsName()); instanceDO.setPrivateIpAddress(instance.getPrivateIpAddress()); instanceDO.setPublicDnsName(instance.getPublicDnsName()); instanceDO.setPublicIpAddress(instance.getPublicIpAddress()); instanceDO.setSourceDestCheck(instance.getSourceDestCheck()); instanceDO.setKeyPairName(instance.getKeyName()); instanceDO.setLaunchTime(instance.getLaunchTime()); instanceDO.setRamDiskId(instance.getRamdiskId()); instanceDO.setRootDeviceName(instance.getRootDeviceName()); instanceDO.setRootDeviceType(instance.getRootDeviceType()); instanceDO.setSpotInstanceRequestId(instance.getSpotInstanceRequestId()); instanceDO.setSriovNetSuppport(instance.getSriovNetSupport()); instanceDO.setStateTransitionReason(instance.getStateTransitionReason()); instanceDO.setSubnetId(instance.getSubnetId()); instanceDO.setVirtualizationType(instance.getVirtualizationType()); instanceDO.setVpcId(instance.getVpcId()); }