本文整理了Java中com.amazonaws.services.ec2.model.Instance.getRootDeviceName()
方法的一些代码示例,展示了Instance.getRootDeviceName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getRootDeviceName()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Instance
类名称:Instance
方法名:getRootDeviceName
[英]The device name of the root device volume (for example, /dev/sda1
).
[中]根设备卷的设备名称(例如,/dev/sda1
)。
代码示例来源:origin: aws/aws-sdk-java
if (getNetworkInterfaces() != null)
sb.append("NetworkInterfaces: ").append(getNetworkInterfaces()).append(",");
if (getRootDeviceName() != null)
sb.append("RootDeviceName: ").append(getRootDeviceName()).append(",");
if (getRootDeviceType() != null)
sb.append("RootDeviceType: ").append(getRootDeviceType()).append(",");
代码示例来源:origin: aws/aws-sdk-java
hashCode = prime * hashCode + ((getElasticInferenceAcceleratorAssociations() == null) ? 0 : getElasticInferenceAcceleratorAssociations().hashCode());
hashCode = prime * hashCode + ((getNetworkInterfaces() == null) ? 0 : getNetworkInterfaces().hashCode());
hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode());
hashCode = prime * hashCode + ((getRootDeviceType() == null) ? 0 : getRootDeviceType().hashCode());
hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode());
代码示例来源:origin: aws/aws-sdk-java
if (other.getNetworkInterfaces() != null && other.getNetworkInterfaces().equals(this.getNetworkInterfaces()) == false)
return false;
if (other.getRootDeviceName() == null ^ this.getRootDeviceName() == null)
return false;
if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false)
return false;
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null)
代码示例来源:origin: aws-amplify/aws-sdk-android
if (getArchitecture() != null) sb.append("Architecture: " + getArchitecture() + ",");
if (getRootDeviceType() != null) sb.append("RootDeviceType: " + getRootDeviceType() + ",");
if (getRootDeviceName() != null) sb.append("RootDeviceName: " + getRootDeviceName() + ",");
if (getBlockDeviceMappings() != null) sb.append("BlockDeviceMappings: " + getBlockDeviceMappings() + ",");
if (getVirtualizationType() != null) sb.append("VirtualizationType: " + getVirtualizationType() + ",");
代码示例来源:origin: aws-amplify/aws-sdk-android
hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode());
hashCode = prime * hashCode + ((getRootDeviceType() == null) ? 0 : getRootDeviceType().hashCode());
hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode());
hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode());
hashCode = prime * hashCode + ((getVirtualizationType() == null) ? 0 : getVirtualizationType().hashCode());
代码示例来源:origin: aws-amplify/aws-sdk-android
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null) return false;
if (other.getRootDeviceType() != null && other.getRootDeviceType().equals(this.getRootDeviceType()) == false) return false;
if (other.getRootDeviceName() == null ^ this.getRootDeviceName() == null) return false;
if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false) return false;
if (other.getBlockDeviceMappings() == null ^ this.getBlockDeviceMappings() == null) return false;
if (other.getBlockDeviceMappings() != null && other.getBlockDeviceMappings().equals(this.getBlockDeviceMappings()) == false) return false;
代码示例来源:origin: org.kuali.common/kuali-aws
protected InstanceBlockDeviceMapping getRootVolumeMapping(Instance instance) {
checkNotNull(instance, "instance");
String rootDeviceName = instance.getRootDeviceName();
List<InstanceBlockDeviceMapping> mappings = instance.getBlockDeviceMappings();
for (InstanceBlockDeviceMapping mapping : mappings) {
if (rootDeviceName.equals(mapping.getDeviceName())) {
return mapping;
}
}
throw illegalState("Unable to locate the root volume mapping for [%s]", instance.getInstanceId());
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (getNetworkInterfaces() != null)
sb.append("NetworkInterfaces: ").append(getNetworkInterfaces()).append(",");
if (getRootDeviceName() != null)
sb.append("RootDeviceName: ").append(getRootDeviceName()).append(",");
if (getRootDeviceType() != null)
sb.append("RootDeviceType: ").append(getRootDeviceType()).append(",");
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
hashCode = prime * hashCode + ((getElasticInferenceAcceleratorAssociations() == null) ? 0 : getElasticInferenceAcceleratorAssociations().hashCode());
hashCode = prime * hashCode + ((getNetworkInterfaces() == null) ? 0 : getNetworkInterfaces().hashCode());
hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode());
hashCode = prime * hashCode + ((getRootDeviceType() == null) ? 0 : getRootDeviceType().hashCode());
hashCode = prime * hashCode + ((getSecurityGroups() == null) ? 0 : getSecurityGroups().hashCode());
代码示例来源:origin: org.kuali.common/kuali-aws
protected Image createAmi(CreateAMIRequest create, Instance instance, Snapshot snapshot) {
BlockDeviceMapping rootVolumeMapping = getRootVolumeMapping(instance, snapshot.getSnapshotId(), create.getRootVolume());
List<BlockDeviceMapping> mappings = newArrayList();
mappings.add(rootVolumeMapping);
for (BlockDeviceMapping mapping : create.getAdditionalMappings()) {
mappings.add(mapping);
}
RegisterImageRequest request = new RegisterImageRequest();
request.setName(create.getName().getValue());
request.setDescription(create.getDescription());
request.setArchitecture(instance.getArchitecture());
request.setRootDeviceName(instance.getRootDeviceName());
request.setKernelId(instance.getKernelId());
request.setBlockDeviceMappings(mappings);
RegisterImageResult result = client.registerImage(request);
String imageId = result.getImageId();
waitForAmiState(imageId, AMI_AVAILABLE_STATE, create.getTimeoutMillis());
tag(imageId, create.getName());
return getImage(imageId);
}
代码示例来源:origin: airbnb/billow
this.ramdisk = instance.getRamdiskId();
this.subnet = instance.getSubnetId();
this.rootDeviceName = instance.getRootDeviceName();
this.rootDeviceType = instance.getRootDeviceType();
this.stateTransitionReason = instance.getStateTransitionReason();
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (other.getNetworkInterfaces() != null && other.getNetworkInterfaces().equals(this.getNetworkInterfaces()) == false)
return false;
if (other.getRootDeviceName() == null ^ this.getRootDeviceName() == null)
return false;
if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false)
return false;
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null)
内容来源于网络,如有侵权,请联系作者删除!