com.amazonaws.services.ec2.model.Instance.getKernelId()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(114)

本文整理了Java中com.amazonaws.services.ec2.model.Instance.getKernelId()方法的一些代码示例,展示了Instance.getKernelId()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getKernelId()方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Instance
类名称:Instance
方法名:getKernelId

Instance.getKernelId介绍

[英]The kernel associated with this instance, if applicable.
[中]与此实例关联的内核(如果适用)。

代码示例

代码示例来源:origin: aws/aws-sdk-java

if (getInstanceType() != null)
  sb.append("InstanceType: ").append(getInstanceType()).append(",");
if (getKernelId() != null)
  sb.append("KernelId: ").append(getKernelId()).append(",");
if (getKeyName() != null)
  sb.append("KeyName: ").append(getKeyName()).append(",");

代码示例来源:origin: aws/aws-sdk-java

hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode());
hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode());
hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode());
hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode());

代码示例来源:origin: aws/aws-sdk-java

if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false)
  return false;
if (other.getKernelId() == null ^ this.getKernelId() == null)
  return false;
if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false)
  return false;
if (other.getKeyName() == null ^ this.getKeyName() == null)

代码示例来源:origin: aws-amplify/aws-sdk-android

if (getLaunchTime() != null) sb.append("LaunchTime: " + getLaunchTime() + ",");
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() + ",");

代码示例来源:origin: aws-amplify/aws-sdk-android

hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode()); 
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());

代码示例来源:origin: aws-amplify/aws-sdk-android

if (other.getPlacement() == null ^ this.getPlacement() == null) return false;
if (other.getPlacement() != null && other.getPlacement().equals(this.getPlacement()) == false) return false; 
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;

代码示例来源: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 (getInstanceType() != null)
  sb.append("InstanceType: ").append(getInstanceType()).append(",");
if (getKernelId() != null)
  sb.append("KernelId: ").append(getKernelId()).append(",");
if (getKeyName() != null)
  sb.append("KeyName: ").append(getKeyName()).append(",");

代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2

hashCode = prime * hashCode + ((getInstanceId() == null) ? 0 : getInstanceId().hashCode());
hashCode = prime * hashCode + ((getInstanceType() == null) ? 0 : getInstanceType().hashCode());
hashCode = prime * hashCode + ((getKernelId() == null) ? 0 : getKernelId().hashCode());
hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode());
hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().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.vpc = instance.getVpcId();
this.platform = instance.getPlatform();
this.kernel = instance.getKernelId();
this.key = instance.getKeyName();
this.image = instance.getImageId();

代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2

if (other.getInstanceType() != null && other.getInstanceType().equals(this.getInstanceType()) == false)
  return false;
if (other.getKernelId() == null ^ this.getKernelId() == null)
  return false;
if (other.getKernelId() != null && other.getKernelId().equals(this.getKernelId()) == false)
  return false;
if (other.getKeyName() == null ^ this.getKeyName() == null)

相关文章

Instance类方法