本文整理了Java中com.amazonaws.services.ec2.model.Instance.getMonitoring()
方法的一些代码示例,展示了Instance.getMonitoring()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.getMonitoring()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Instance
类名称:Instance
方法名:getMonitoring
[英]The monitoring for the instance.
[中]实例的监视。
代码示例来源:origin: aws/aws-sdk-java
if (getLaunchTime() != null)
sb.append("LaunchTime: ").append(getLaunchTime()).append(",");
if (getMonitoring() != null)
sb.append("Monitoring: ").append(getMonitoring()).append(",");
if (getPlacement() != null)
sb.append("Placement: ").append(getPlacement()).append(",");
代码示例来源:origin: aws/aws-sdk-java
hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode());
hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode());
hashCode = prime * hashCode + ((getMonitoring() == null) ? 0 : getMonitoring().hashCode());
hashCode = prime * hashCode + ((getPlacement() == null) ? 0 : getPlacement().hashCode());
hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
代码示例来源:origin: awsdocs/aws-doc-sdk-examples
instance.getInstanceType(),
instance.getState().getName(),
instance.getMonitoring().getState());
代码示例来源:origin: aws/aws-sdk-java
if (other.getLaunchTime() != null && other.getLaunchTime().equals(this.getLaunchTime()) == false)
return false;
if (other.getMonitoring() == null ^ this.getMonitoring() == null)
return false;
if (other.getMonitoring() != null && other.getMonitoring().equals(this.getMonitoring()) == false)
return false;
if (other.getPlacement() == null ^ this.getPlacement() == null)
代码示例来源:origin: aws-amplify/aws-sdk-android
if (getRamdiskId() != null) sb.append("RamdiskId: " + getRamdiskId() + ",");
if (getPlatform() != null) sb.append("Platform: " + getPlatform() + ",");
if (getMonitoring() != null) sb.append("Monitoring: " + getMonitoring() + ",");
if (getSubnetId() != null) sb.append("SubnetId: " + getSubnetId() + ",");
if (getVpcId() != null) sb.append("VpcId: " + getVpcId() + ",");
代码示例来源:origin: aws-amplify/aws-sdk-android
hashCode = prime * hashCode + ((getRamdiskId() == null) ? 0 : getRamdiskId().hashCode());
hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().hashCode());
hashCode = prime * hashCode + ((getMonitoring() == null) ? 0 : getMonitoring().hashCode());
hashCode = prime * hashCode + ((getSubnetId() == null) ? 0 : getSubnetId().hashCode());
hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode());
代码示例来源:origin: aws-amplify/aws-sdk-android
if (other.getPlatform() == null ^ this.getPlatform() == null) return false;
if (other.getPlatform() != null && other.getPlatform().equals(this.getPlatform()) == false) return false;
if (other.getMonitoring() == null ^ this.getMonitoring() == null) return false;
if (other.getMonitoring() != null && other.getMonitoring().equals(this.getMonitoring()) == false) return false;
if (other.getSubnetId() == null ^ this.getSubnetId() == null) return false;
if (other.getSubnetId() != null && other.getSubnetId().equals(this.getSubnetId()) == false) return false;
代码示例来源:origin: pinterest/soundwave
protected HashMap getAwsInstanceProperties(Instance awsInstance) throws Exception {
HashMap map = mapper.readValue(mapper.writeValueAsString(awsInstance), HashMap.class);
if (awsInstance.getMonitoring() != null && awsInstance.getMonitoring().getState() != null) {
//Have to comply with the current AWS_V1 schema
map.put("monitoring", awsInstance.getMonitoring().getState().toString());
}
if (awsInstance.getPlacement() != null
&& awsInstance.getPlacement().getAvailabilityZone() != null) {
//Be backward compatible for tools
Map placement = (Map) map.get("placement");
if (placement != null) {
placement.put("availability_zone", awsInstance.getPlacement().getAvailabilityZone());
}
}
return map;
}
}
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
if (getLaunchTime() != null)
sb.append("LaunchTime: ").append(getLaunchTime()).append(",");
if (getMonitoring() != null)
sb.append("Monitoring: ").append(getMonitoring()).append(",");
if (getPlacement() != null)
sb.append("Placement: ").append(getPlacement()).append(",");
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
hashCode = prime * hashCode + ((getKeyName() == null) ? 0 : getKeyName().hashCode());
hashCode = prime * hashCode + ((getLaunchTime() == null) ? 0 : getLaunchTime().hashCode());
hashCode = prime * hashCode + ((getMonitoring() == null) ? 0 : getMonitoring().hashCode());
hashCode = prime * hashCode + ((getPlacement() == null) ? 0 : getPlacement().hashCode());
hashCode = prime * hashCode + ((getPlatform() == null) ? 0 : getPlatform().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: com.amazonaws/aws-java-sdk-ec2
if (other.getLaunchTime() != null && other.getLaunchTime().equals(this.getLaunchTime()) == false)
return false;
if (other.getMonitoring() == null ^ this.getMonitoring() == null)
return false;
if (other.getMonitoring() != null && other.getMonitoring().equals(this.getMonitoring()) == false)
return false;
if (other.getPlacement() == null ^ this.getPlacement() == null)
内容来源于网络,如有侵权,请联系作者删除!