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

x33g5p2x  于2022-01-26 转载在 其他  
字(9.0k)|赞(0)|评价(0)|浏览(94)

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

Placement.getHostId介绍

[英]The ID of the Dedicated Host on which the instance resides. This parameter is not supported for the ImportInstance command.
[中]实例所在的专用主机的ID。ImportInstance命令不支持此参数。

代码示例

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

/**
 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
 * redacted from this string using a placeholder value.
 *
 * @return A string representation of this object.
 *
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("{");
  if (getAvailabilityZone() != null)
    sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
  if (getAffinity() != null)
    sb.append("Affinity: ").append(getAffinity()).append(",");
  if (getGroupName() != null)
    sb.append("GroupName: ").append(getGroupName()).append(",");
  if (getPartitionNumber() != null)
    sb.append("PartitionNumber: ").append(getPartitionNumber()).append(",");
  if (getHostId() != null)
    sb.append("HostId: ").append(getHostId()).append(",");
  if (getTenancy() != null)
    sb.append("Tenancy: ").append(getTenancy()).append(",");
  if (getSpreadDomain() != null)
    sb.append("SpreadDomain: ").append(getSpreadDomain());
  sb.append("}");
  return sb.toString();
}

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

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
  hashCode = prime * hashCode + ((getAffinity() == null) ? 0 : getAffinity().hashCode());
  hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode());
  hashCode = prime * hashCode + ((getPartitionNumber() == null) ? 0 : getPartitionNumber().hashCode());
  hashCode = prime * hashCode + ((getHostId() == null) ? 0 : getHostId().hashCode());
  hashCode = prime * hashCode + ((getTenancy() == null) ? 0 : getTenancy().hashCode());
  hashCode = prime * hashCode + ((getSpreadDomain() == null) ? 0 : getSpreadDomain().hashCode());
  return hashCode;
}

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

if (other.getPartitionNumber() != null && other.getPartitionNumber().equals(this.getPartitionNumber()) == false)
  return false;
if (other.getHostId() == null ^ this.getHostId() == null)
  return false;
if (other.getHostId() != null && other.getHostId().equals(this.getHostId()) == false)
  return false;
if (other.getTenancy() == null ^ this.getTenancy() == null)

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

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  
  hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); 
  hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode()); 
  hashCode = prime * hashCode + ((getTenancy() == null) ? 0 : getTenancy().hashCode()); 
  hashCode = prime * hashCode + ((getHostId() == null) ? 0 : getHostId().hashCode()); 
  hashCode = prime * hashCode + ((getAffinity() == null) ? 0 : getAffinity().hashCode()); 
  return hashCode;
}

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

/**
 * Returns a string representation of this object; useful for testing and
 * debugging.
 *
 * @return A string representation of this object.
 *
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("{");
  if (getAvailabilityZone() != null) sb.append("AvailabilityZone: " + getAvailabilityZone() + ",");
  if (getGroupName() != null) sb.append("GroupName: " + getGroupName() + ",");
  if (getTenancy() != null) sb.append("Tenancy: " + getTenancy() + ",");
  if (getHostId() != null) sb.append("HostId: " + getHostId() + ",");
  if (getAffinity() != null) sb.append("Affinity: " + getAffinity() );
  sb.append("}");
  return sb.toString();
}

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

@Override
public boolean equals(Object obj) {
  if (this == obj) return true;
  if (obj == null) return false;
  if (obj instanceof Placement == false) return false;
  Placement other = (Placement)obj;
  
  if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false;
  if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false) return false; 
  if (other.getGroupName() == null ^ this.getGroupName() == null) return false;
  if (other.getGroupName() != null && other.getGroupName().equals(this.getGroupName()) == false) return false; 
  if (other.getTenancy() == null ^ this.getTenancy() == null) return false;
  if (other.getTenancy() != null && other.getTenancy().equals(this.getTenancy()) == false) return false; 
  if (other.getHostId() == null ^ this.getHostId() == null) return false;
  if (other.getHostId() != null && other.getHostId().equals(this.getHostId()) == false) return false; 
  if (other.getAffinity() == null ^ this.getAffinity() == null) return false;
  if (other.getAffinity() != null && other.getAffinity().equals(this.getAffinity()) == false) return false; 
  return true;
}

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

if (placement.getHostId() != null) {
  request.addParameter("LaunchSpecification.Placement.HostId", StringUtils.fromString(placement.getHostId()));

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

if (placement.getHostId() != null) {
  request.addParameter("LaunchTemplateConfigs." + launchTemplateConfigsListIndex + ".Overrides." + overridesListIndex
      + ".Placement.HostId", StringUtils.fromString(placement.getHostId()));

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

if (placement.getHostId() != null) {
  request.addParameter("Placement.HostId", StringUtils.fromString(placement.getHostId()));

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

/**
 * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
 * redacted from this string using a placeholder value.
 *
 * @return A string representation of this object.
 *
 * @see java.lang.Object#toString()
 */
@Override
public String toString() {
  StringBuilder sb = new StringBuilder();
  sb.append("{");
  if (getAvailabilityZone() != null)
    sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(",");
  if (getAffinity() != null)
    sb.append("Affinity: ").append(getAffinity()).append(",");
  if (getGroupName() != null)
    sb.append("GroupName: ").append(getGroupName()).append(",");
  if (getPartitionNumber() != null)
    sb.append("PartitionNumber: ").append(getPartitionNumber()).append(",");
  if (getHostId() != null)
    sb.append("HostId: ").append(getHostId()).append(",");
  if (getTenancy() != null)
    sb.append("Tenancy: ").append(getTenancy()).append(",");
  if (getSpreadDomain() != null)
    sb.append("SpreadDomain: ").append(getSpreadDomain());
  sb.append("}");
  return sb.toString();
}

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

@Override
public int hashCode() {
  final int prime = 31;
  int hashCode = 1;
  hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode());
  hashCode = prime * hashCode + ((getAffinity() == null) ? 0 : getAffinity().hashCode());
  hashCode = prime * hashCode + ((getGroupName() == null) ? 0 : getGroupName().hashCode());
  hashCode = prime * hashCode + ((getPartitionNumber() == null) ? 0 : getPartitionNumber().hashCode());
  hashCode = prime * hashCode + ((getHostId() == null) ? 0 : getHostId().hashCode());
  hashCode = prime * hashCode + ((getTenancy() == null) ? 0 : getTenancy().hashCode());
  hashCode = prime * hashCode + ((getSpreadDomain() == null) ? 0 : getSpreadDomain().hashCode());
  return hashCode;
}

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

if (other.getPartitionNumber() != null && other.getPartitionNumber().equals(this.getPartitionNumber()) == false)
  return false;
if (other.getHostId() == null ^ this.getHostId() == null)
  return false;
if (other.getHostId() != null && other.getHostId().equals(this.getHostId()) == false)
  return false;
if (other.getTenancy() == null ^ this.getTenancy() == null)

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

request.addParameter("LaunchSpecification.Placement.Tenancy", StringUtils.fromString(placementPlacement.getTenancy()));
if (placementPlacement.getHostId() != null) {
  request.addParameter("LaunchSpecification.Placement.HostId", StringUtils.fromString(placementPlacement.getHostId()));

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

request.addParameter("Placement.Tenancy", StringUtils.fromString(placementPlacement.getTenancy()));
if (placementPlacement.getHostId() != null) {
  request.addParameter("Placement.HostId", StringUtils.fromString(placementPlacement.getHostId()));

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

if (placement.getHostId() != null) {
  request.addParameter("LaunchSpecification.Placement.HostId", StringUtils.fromString(placement.getHostId()));

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

if (placement.getHostId() != null) {
  request.addParameter("LaunchTemplateConfigs." + launchTemplateConfigsListIndex + ".Overrides." + overridesListIndex
      + ".Placement.HostId", StringUtils.fromString(placement.getHostId()));

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

if (placement.getHostId() != null) {
  request.addParameter("Placement.HostId", StringUtils.fromString(placement.getHostId()));

相关文章