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

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

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

Instance.getRootDeviceType介绍

[英]The root device type used by the AMI. The AMI can use an EBS volume or an instance store volume.
[中]AMI使用的根设备类型。AMI可以使用EBS卷或实例存储卷。

代码示例

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

if (getRootDeviceName() != null)
  sb.append("RootDeviceName: ").append(getRootDeviceName()).append(",");
if (getRootDeviceType() != null)
  sb.append("RootDeviceType: ").append(getRootDeviceType()).append(",");
if (getSecurityGroups() != null)
  sb.append("SecurityGroups: ").append(getSecurityGroups()).append(",");

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

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

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

if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false)
  return false;
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null)
  return false;
if (other.getRootDeviceType() != null && other.getRootDeviceType().equals(this.getRootDeviceType()) == false)
  return false;
if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null)

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

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

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

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

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

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

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

if (getRootDeviceName() != null)
  sb.append("RootDeviceName: ").append(getRootDeviceName()).append(",");
if (getRootDeviceType() != null)
  sb.append("RootDeviceType: ").append(getRootDeviceType()).append(",");
if (getSecurityGroups() != null)
  sb.append("SecurityGroups: ").append(getSecurityGroups()).append(",");

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

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

代码示例来源:origin: org.apache.airavata/airavata-xbaya-gui

/**
 * @see org.apache.airavata.xbaya.ui.widgets.TableRenderable#getValue(int)
 */
@Override
public Object getValue(int index) {
  switch (index) {
  case 0:
    return this.instance.getInstanceId();
  case 1:
    return this.instance.getImageId();
  case 2:
    return this.instance.getRootDeviceType();
  case 3:
    return this.instance.getInstanceType();
  case 4:
    return this.instance.getState().getName();
  case 5:
    return this.instance.getKeyName();
  case 6:
    return this.instance.getMonitoring().getState();
  case 7:
    return this.instance.getVirtualizationType();
  case 8:
    return this.instance.getPlacement().getGroupName();
  default:
    return null;
  }
}

代码示例来源:origin: airbnb/billow

this.subnet = instance.getSubnetId();
this.rootDeviceName = instance.getRootDeviceName();
this.rootDeviceType = instance.getRootDeviceType();
this.stateTransitionReason = instance.getStateTransitionReason();
this.spotInstanceRequest = instance.getSpotInstanceRequestId();

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

if (other.getRootDeviceName() != null && other.getRootDeviceName().equals(this.getRootDeviceName()) == false)
  return false;
if (other.getRootDeviceType() == null ^ this.getRootDeviceType() == null)
  return false;
if (other.getRootDeviceType() != null && other.getRootDeviceType().equals(this.getRootDeviceType()) == false)
  return false;
if (other.getSecurityGroups() == null ^ this.getSecurityGroups() == null)

相关文章

Instance类方法