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

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

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

Instance.getStateTransitionReason介绍

[英]The reason for the most recent state transition. This might be an empty string.
[中]最近状态转换的原因。这可能是一个空字符串。

代码示例

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

if (getState() != null)
  sb.append("State: ").append(getState()).append(",");
if (getStateTransitionReason() != null)
  sb.append("StateTransitionReason: ").append(getStateTransitionReason()).append(",");
if (getSubnetId() != null)
  sb.append("SubnetId: ").append(getSubnetId()).append(",");

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

hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStateTransitionReason() == null) ? 0 : getStateTransitionReason().hashCode());
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());

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

if (other.getState() != null && other.getState().equals(this.getState()) == false)
  return false;
if (other.getStateTransitionReason() == null ^ this.getStateTransitionReason() == null)
  return false;
if (other.getStateTransitionReason() != null && other.getStateTransitionReason().equals(this.getStateTransitionReason()) == false)
  return false;
if (other.getSubnetId() == null ^ this.getSubnetId() == null)

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

if (getPrivateDnsName() != null) sb.append("PrivateDnsName: " + getPrivateDnsName() + ",");
if (getPublicDnsName() != null) sb.append("PublicDnsName: " + getPublicDnsName() + ",");
if (getStateTransitionReason() != null) sb.append("StateTransitionReason: " + getStateTransitionReason() + ",");
if (getKeyName() != null) sb.append("KeyName: " + getKeyName() + ",");
if (getAmiLaunchIndex() != null) sb.append("AmiLaunchIndex: " + getAmiLaunchIndex() + ",");

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

hashCode = prime * hashCode + ((getPrivateDnsName() == null) ? 0 : getPrivateDnsName().hashCode()); 
hashCode = prime * hashCode + ((getPublicDnsName() == null) ? 0 : getPublicDnsName().hashCode()); 
hashCode = prime * hashCode + ((getStateTransitionReason() == null) ? 0 : getStateTransitionReason().hashCode()); 
hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode()); 
hashCode = prime * hashCode + ((getAmiLaunchIndex() == null) ? 0 : getAmiLaunchIndex().hashCode());

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

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

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

if (getState() != null)
  sb.append("State: ").append(getState()).append(",");
if (getStateTransitionReason() != null)
  sb.append("StateTransitionReason: ").append(getStateTransitionReason()).append(",");
if (getSubnetId() != null)
  sb.append("SubnetId: ").append(getSubnetId()).append(",");

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

hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode + ((getState() == null) ? 0 : getState().hashCode());
hashCode = prime * hashCode + ((getStateTransitionReason() == null) ? 0 : getStateTransitionReason().hashCode());
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());

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

this.rootDeviceName = instance.getRootDeviceName();
this.rootDeviceType = instance.getRootDeviceType();
this.stateTransitionReason = instance.getStateTransitionReason();
this.spotInstanceRequest = instance.getSpotInstanceRequestId();
this.virtualizationType = instance.getVirtualizationType();

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

if (other.getState() != null && other.getState().equals(this.getState()) == false)
  return false;
if (other.getStateTransitionReason() == null ^ this.getStateTransitionReason() == null)
  return false;
if (other.getStateTransitionReason() != null && other.getStateTransitionReason().equals(this.getStateTransitionReason()) == false)
  return false;
if (other.getSubnetId() == null ^ this.getSubnetId() == null)

相关文章

Instance类方法