本文整理了Java中com.amazonaws.services.ec2.model.Instance.getArchitecture()
方法的一些代码示例,展示了Instance.getArchitecture()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getArchitecture()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Instance
类名称:Instance
方法名:getArchitecture
[英]The architecture of the image.
[中]图像的架构。
代码示例来源:origin: aws/aws-sdk-java
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId()).append(",");
if (getArchitecture() != null)
sb.append("Architecture: ").append(getArchitecture()).append(",");
if (getBlockDeviceMappings() != null)
sb.append("BlockDeviceMappings: ").append(getBlockDeviceMappings()).append(",");
代码示例来源:origin: aws/aws-sdk-java
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode());
hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode());
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode());
代码示例来源:origin: aws/aws-sdk-java
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false)
return false;
if (other.getArchitecture() == null ^ this.getArchitecture() == null)
return false;
if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false)
return false;
if (other.getBlockDeviceMappings() == null ^ this.getBlockDeviceMappings() == null)
代码示例来源:origin: aws-amplify/aws-sdk-android
if (getPublicIpAddress() != null) sb.append("PublicIpAddress: " + getPublicIpAddress() + ",");
if (getStateReason() != null) sb.append("StateReason: " + getStateReason() + ",");
if (getArchitecture() != null) sb.append("Architecture: " + getArchitecture() + ",");
if (getRootDeviceType() != null) sb.append("RootDeviceType: " + getRootDeviceType() + ",");
if (getRootDeviceName() != null) sb.append("RootDeviceName: " + getRootDeviceName() + ",");
代码示例来源:origin: aws-amplify/aws-sdk-android
hashCode = prime * hashCode + ((getPublicIpAddress() == null) ? 0 : getPublicIpAddress().hashCode());
hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode());
hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode());
hashCode = prime * hashCode + ((getRootDeviceType() == null) ? 0 : getRootDeviceType().hashCode());
hashCode = prime * hashCode + ((getRootDeviceName() == null) ? 0 : getRootDeviceName().hashCode());
代码示例来源:origin: aws-amplify/aws-sdk-android
if (other.getStateReason() == null ^ this.getStateReason() == null) return false;
if (other.getStateReason() != null && other.getStateReason().equals(this.getStateReason()) == false) return false;
if (other.getArchitecture() == null ^ this.getArchitecture() == null) return false;
if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false) return false;
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null) return false;
if (other.getRootDeviceType() != null && other.getRootDeviceType().equals(this.getRootDeviceType()) == false) return false;
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (getVpcId() != null)
sb.append("VpcId: ").append(getVpcId()).append(",");
if (getArchitecture() != null)
sb.append("Architecture: ").append(getArchitecture()).append(",");
if (getBlockDeviceMappings() != null)
sb.append("BlockDeviceMappings: ").append(getBlockDeviceMappings()).append(",");
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
hashCode = prime * hashCode + ((getArchitecture() == null) ? 0 : getArchitecture().hashCode());
hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode());
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().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.publicHostname = instance.getPublicDnsName();
this.privateHostname = instance.getPrivateDnsName();
this.architecture = instance.getArchitecture();
this.state = instance.getState().getName();
this.ramdisk = instance.getRamdiskId();
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false)
return false;
if (other.getArchitecture() == null ^ this.getArchitecture() == null)
return false;
if (other.getArchitecture() != null && other.getArchitecture().equals(this.getArchitecture()) == false)
return false;
if (other.getBlockDeviceMappings() == null ^ this.getBlockDeviceMappings() == null)
内容来源于网络,如有侵权,请联系作者删除!