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

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

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

Instance.getInstanceLifecycle介绍

[英]Indicates whether this is a Spot Instance or a Scheduled Instance.
[中]指示这是Spot实例还是计划实例。

代码示例

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

if (getIamInstanceProfile() != null)
  sb.append("IamInstanceProfile: ").append(getIamInstanceProfile()).append(",");
if (getInstanceLifecycle() != null)
  sb.append("InstanceLifecycle: ").append(getInstanceLifecycle()).append(",");
if (getElasticGpuAssociations() != null)
  sb.append("ElasticGpuAssociations: ").append(getElasticGpuAssociations()).append(",");

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

hashCode = prime * hashCode + ((getHypervisor() == null) ? 0 : getHypervisor().hashCode());
hashCode = prime * hashCode + ((getIamInstanceProfile() == null) ? 0 : getIamInstanceProfile().hashCode());
hashCode = prime * hashCode + ((getInstanceLifecycle() == null) ? 0 : getInstanceLifecycle().hashCode());
hashCode = prime * hashCode + ((getElasticGpuAssociations() == null) ? 0 : getElasticGpuAssociations().hashCode());
hashCode = prime * hashCode + ((getElasticInferenceAcceleratorAssociations() == null) ? 0 : getElasticInferenceAcceleratorAssociations().hashCode());

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

if (other.getIamInstanceProfile() != null && other.getIamInstanceProfile().equals(this.getIamInstanceProfile()) == false)
  return false;
if (other.getInstanceLifecycle() == null ^ this.getInstanceLifecycle() == null)
  return false;
if (other.getInstanceLifecycle() != null && other.getInstanceLifecycle().equals(this.getInstanceLifecycle()) == false)
  return false;
if (other.getElasticGpuAssociations() == null ^ this.getElasticGpuAssociations() == null)

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

if (getBlockDeviceMappings() != null) sb.append("BlockDeviceMappings: " + getBlockDeviceMappings() + ",");
if (getVirtualizationType() != null) sb.append("VirtualizationType: " + getVirtualizationType() + ",");
if (getInstanceLifecycle() != null) sb.append("InstanceLifecycle: " + getInstanceLifecycle() + ",");
if (getSpotInstanceRequestId() != null) sb.append("SpotInstanceRequestId: " + getSpotInstanceRequestId() + ",");
if (getClientToken() != null) sb.append("ClientToken: " + getClientToken() + ",");

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

hashCode = prime * hashCode + ((getBlockDeviceMappings() == null) ? 0 : getBlockDeviceMappings().hashCode()); 
hashCode = prime * hashCode + ((getVirtualizationType() == null) ? 0 : getVirtualizationType().hashCode()); 
hashCode = prime * hashCode + ((getInstanceLifecycle() == null) ? 0 : getInstanceLifecycle().hashCode()); 
hashCode = prime * hashCode + ((getSpotInstanceRequestId() == null) ? 0 : getSpotInstanceRequestId().hashCode()); 
hashCode = prime * hashCode + ((getClientToken() == null) ? 0 : getClientToken().hashCode());

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

if (other.getVirtualizationType() == null ^ this.getVirtualizationType() == null) return false;
if (other.getVirtualizationType() != null && other.getVirtualizationType().equals(this.getVirtualizationType()) == false) return false; 
if (other.getInstanceLifecycle() == null ^ this.getInstanceLifecycle() == null) return false;
if (other.getInstanceLifecycle() != null && other.getInstanceLifecycle().equals(this.getInstanceLifecycle()) == false) return false; 
if (other.getSpotInstanceRequestId() == null ^ this.getSpotInstanceRequestId() == null) return false;
if (other.getSpotInstanceRequestId() != null && other.getSpotInstanceRequestId().equals(this.getSpotInstanceRequestId()) == false) return false;

代码示例来源:origin: pinterest/soundwave

instance.getInstanceLifecycle(), InstanceLifecycleType.Spot.toString());

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

if (getIamInstanceProfile() != null)
  sb.append("IamInstanceProfile: ").append(getIamInstanceProfile()).append(",");
if (getInstanceLifecycle() != null)
  sb.append("InstanceLifecycle: ").append(getInstanceLifecycle()).append(",");
if (getElasticGpuAssociations() != null)
  sb.append("ElasticGpuAssociations: ").append(getElasticGpuAssociations()).append(",");

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

hashCode = prime * hashCode + ((getHypervisor() == null) ? 0 : getHypervisor().hashCode());
hashCode = prime * hashCode + ((getIamInstanceProfile() == null) ? 0 : getIamInstanceProfile().hashCode());
hashCode = prime * hashCode + ((getInstanceLifecycle() == null) ? 0 : getInstanceLifecycle().hashCode());
hashCode = prime * hashCode + ((getElasticGpuAssociations() == null) ? 0 : getElasticGpuAssociations().hashCode());
hashCode = prime * hashCode + ((getElasticInferenceAcceleratorAssociations() == null) ? 0 : getElasticInferenceAcceleratorAssociations().hashCode());

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

public EC2Instance(Instance instance) {
  this.id = instance.getInstanceId();
  this.type = instance.getInstanceType();
  this.lifecycle = instance.getInstanceLifecycle();
  this.hypervisor = instance.getHypervisor();
  this.az = instance.getPlacement().getAvailabilityZone();

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

if (other.getIamInstanceProfile() != null && other.getIamInstanceProfile().equals(this.getIamInstanceProfile()) == false)
  return false;
if (other.getInstanceLifecycle() == null ^ this.getInstanceLifecycle() == null)
  return false;
if (other.getInstanceLifecycle() != null && other.getInstanceLifecycle().equals(this.getInstanceLifecycle()) == false)
  return false;
if (other.getElasticGpuAssociations() == null ^ this.getElasticGpuAssociations() == null)

相关文章

Instance类方法