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

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

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

Instance.setPublicDnsName介绍

[英](IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters the running state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your VPC.
[中](仅限IPv4)分配给实例的公共DNS名称。在实例进入running状态之前,此名称不可用。对于EC2-VPC,此名称仅在为VPC启用DNS主机名时可用。

代码示例

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

/**
 * <p>
 * (IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters
 * the <code>running</code> state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your
 * VPC.
 * </p>
 * 
 * @param publicDnsName
 *        (IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance
 *        enters the <code>running</code> state. For EC2-VPC, this name is only available if you've enabled DNS
 *        hostnames for your VPC.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Instance withPublicDnsName(String publicDnsName) {
  setPublicDnsName(publicDnsName);
  return this;
}

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

instance.setPublicDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;

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

/**
 * <p>
 * (IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance enters
 * the <code>running</code> state. For EC2-VPC, this name is only available if you've enabled DNS hostnames for your
 * VPC.
 * </p>
 * 
 * @param publicDnsName
 *        (IPv4 only) The public DNS name assigned to the instance. This name is not available until the instance
 *        enters the <code>running</code> state. For EC2-VPC, this name is only available if you've enabled DNS
 *        hostnames for your VPC.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Instance withPublicDnsName(String publicDnsName) {
  setPublicDnsName(publicDnsName);
  return this;
}

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

instance.setPublicDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;

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

instance.setPublicDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;

相关文章

Instance类方法