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

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

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

Instance.getStateReason介绍

[英]The reason for the most recent state transition.
[中]最近状态转换的原因。

代码示例

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

if (getSriovNetSupport() != null)
  sb.append("SriovNetSupport: ").append(getSriovNetSupport()).append(",");
if (getStateReason() != null)
  sb.append("StateReason: ").append(getStateReason()).append(",");
if (getTags() != null)
  sb.append("Tags: ").append(getTags()).append(",");

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

hashCode = prime * hashCode + ((getSpotInstanceRequestId() == null) ? 0 : getSpotInstanceRequestId().hashCode());
hashCode = prime * hashCode + ((getSriovNetSupport() == null) ? 0 : getSriovNetSupport().hashCode());
hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getVirtualizationType() == null) ? 0 : getVirtualizationType().hashCode());

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

if (other.getSriovNetSupport() != null && other.getSriovNetSupport().equals(this.getSriovNetSupport()) == false)
  return false;
if (other.getStateReason() == null ^ this.getStateReason() == null)
  return false;
if (other.getStateReason() != null && other.getStateReason().equals(this.getStateReason()) == false)
  return false;
if (other.getTags() == null ^ this.getTags() == null)

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

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

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

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

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

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

代码示例来源:origin: UrbanCode/terraform

if (instance != null) {
  state = instance.getState().getName();
  if (instance.getStateReason() != null &&
      "Server.InternalError".equals(instance.getStateReason().getCode())) {
    throw new RemoteException(instance.getStateReason().getMessage());

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

if (getSriovNetSupport() != null)
  sb.append("SriovNetSupport: ").append(getSriovNetSupport()).append(",");
if (getStateReason() != null)
  sb.append("StateReason: ").append(getStateReason()).append(",");
if (getTags() != null)
  sb.append("Tags: ").append(getTags()).append(",");

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

hashCode = prime * hashCode + ((getSpotInstanceRequestId() == null) ? 0 : getSpotInstanceRequestId().hashCode());
hashCode = prime * hashCode + ((getSriovNetSupport() == null) ? 0 : getSriovNetSupport().hashCode());
hashCode = prime * hashCode + ((getStateReason() == null) ? 0 : getStateReason().hashCode());
hashCode = prime * hashCode + ((getTags() == null) ? 0 : getTags().hashCode());
hashCode = prime * hashCode + ((getVirtualizationType() == null) ? 0 : getVirtualizationType().hashCode());

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

final StateReason stateReason = instance.getStateReason();
if (stateReason != null)
  this.stateReason = stateReason.getMessage();

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

if (other.getSriovNetSupport() != null && other.getSriovNetSupport().equals(this.getSriovNetSupport()) == false)
  return false;
if (other.getStateReason() == null ^ this.getStateReason() == null)
  return false;
if (other.getStateReason() != null && other.getStateReason().equals(this.getStateReason()) == false)
  return false;
if (other.getTags() == null ^ this.getTags() == null)

相关文章

Instance类方法