本文整理了Java中com.amazonaws.services.ec2.model.Instance.getRamdiskId()
方法的一些代码示例,展示了Instance.getRamdiskId()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getRamdiskId()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Instance
类名称:Instance
方法名:getRamdiskId
[英]The RAM disk associated with this instance, if applicable.
[中]与此实例关联的RAM磁盘(如果适用)。
代码示例来源:origin: aws/aws-sdk-java
if (getPublicIpAddress() != null)
sb.append("PublicIpAddress: ").append(getPublicIpAddress()).append(",");
if (getRamdiskId() != null)
sb.append("RamdiskId: ").append(getRamdiskId()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
代码示例来源:origin: aws/aws-sdk-java
hashCode = prime * hashCode + ((getPublicDnsName() == null) ? 0 : getPublicDnsName().hashCode());
hashCode = prime * hashCode + ((getPublicIpAddress() == null) ? 0 : getPublicIpAddress().hashCode());
hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStateTransitionReason() == null) ? 0 : getStateTransitionReason().hashCode());
代码示例来源:origin: aws/aws-sdk-java
if (other.getPublicIpAddress() != null && other.getPublicIpAddress().equals(this.getPublicIpAddress()) == false)
return false;
if (other.getRamdiskId() == null ^ this.getRamdiskId() == null)
return false;
if (other.getRamdiskId() != null && other.getRamdiskId().equals(this.getRamdiskId()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
代码示例来源:origin: aws-amplify/aws-sdk-android
if (getPlacement() != null) sb.append("Placement: " + getPlacement() + ",");
if (getKernelId() != null) sb.append("KernelId: " + getKernelId() + ",");
if (getRamdiskId() != null) sb.append("RamdiskId: " + getRamdiskId() + ",");
if (getPlatform() != null) sb.append("Platform: " + getPlatform() + ",");
if (getMonitoring() != null) sb.append("Monitoring: " + getMonitoring() + ",");
代码示例来源:origin: aws-amplify/aws-sdk-android
hashCode = prime * hashCode + ((getPlacement() == null) ? 0 : getPlacement().hashCode());
hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode());
hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
hashCode = prime * hashCode + ((getMonitoring() == null) ? 0 : getMonitoring().hashCode());
代码示例来源:origin: aws-amplify/aws-sdk-android
if (other.getKernelId() == null ^ this.getKernelId() == null) return false;
if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false) return false;
if (other.getRamdiskId() == null ^ this.getRamdiskId() == null) return false;
if (other.getRamdiskId() != null && other.getRamdiskId().equals(this.getRamdiskId()) == false) return false;
if (other.getPlatform() == null ^ this.getPlatform() == null) return false;
if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false;
代码示例来源:origin: UrbanCode/terraform
private void updateMachineInfo()
throws RemoteException {
if (ec2Client == null) {
throw new RemoteException("No connection to EC2");
}
// update the akiId and ariId with what Amazon shows
Instance instance = helper.getInstanceById(instanceId, ec2Client);
if (instance != null) {
log.info("Verifying Kernel Id...");
log.info("Expected: " + akiId);
akiId = instance.getKernelId();
log.info("Found: " + akiId);
log.info("Verifying Ramdisk Id...");
log.info("Expected: " + ariId);
ariId = instance.getRamdiskId();
log.info("Found: " + ariId);
}
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (getPublicIpAddress() != null)
sb.append("PublicIpAddress: ").append(getPublicIpAddress()).append(",");
if (getRamdiskId() != null)
sb.append("RamdiskId: ").append(getRamdiskId()).append(",");
if (getState() != null)
sb.append("State: ").append(getState()).append(",");
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
hashCode = prime * hashCode + ((getPublicDnsName() == null) ? 0 : getPublicDnsName().hashCode());
hashCode = prime * hashCode + ((getPublicIpAddress() == null) ? 0 : getPublicIpAddress().hashCode());
hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStateTransitionReason() == null) ? 0 : getStateTransitionReason().hashCode());
代码示例来源:origin: airbnb/billow
this.architecture = instance.getArchitecture();
this.state = instance.getState().getName();
this.ramdisk = instance.getRamdiskId();
this.subnet = instance.getSubnetId();
this.rootDeviceName = instance.getRootDeviceName();
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (other.getPublicIpAddress() != null && other.getPublicIpAddress().equals(this.getPublicIpAddress()) == false)
return false;
if (other.getRamdiskId() == null ^ this.getRamdiskId() == null)
return false;
if (other.getRamdiskId() != null && other.getRamdiskId().equals(this.getRamdiskId()) == false)
return false;
if (other.getState() == null ^ this.getState() == null)
内容来源于网络,如有侵权,请联系作者删除!