本文整理了Java中com.amazonaws.services.ec2.model.Instance.setPrivateDnsName()
方法的一些代码示例,展示了Instance.setPrivateDnsName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Instance.setPrivateDnsName()
方法的具体详情如下:
包路径:com.amazonaws.services.ec2.model.Instance
类名称:Instance
方法名:setPrivateDnsName
[英](IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the Amazon EC2 network. This name is not available until the instance enters the running
state.
[EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your custom domain name servers must resolve the hostname as appropriate.
[中](仅限IPv4)分配给实例的专用DNS主机名。此DNS主机名只能在Amazon EC2网络内使用。在实例进入running
状态之前,此名称不可用。
[EC2-VPC]如果您在VPC中启用了DNS解析和DNS主机名,亚马逊提供的DNS服务器将解析亚马逊提供的私有DNS主机名。如果您没有在VPC中使用亚马逊提供的DNS服务器,您的自定义域名服务器必须根据需要解析主机名。
代码示例来源:origin: aws/aws-sdk-java
/**
* <p>
* (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the
* Amazon EC2 network. This name is not available until the instance enters the <code>running</code> state.
* </p>
* <p>
* [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS
* resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your
* custom domain name servers must resolve the hostname as appropriate.
* </p>
*
* @param privateDnsName
* (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used
* inside the Amazon EC2 network. This name is not available until the instance enters the
* <code>running</code> state. </p>
* <p>
* [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled
* DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your
* VPC, your custom domain name servers must resolve the hostname as appropriate.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withPrivateDnsName(String privateDnsName) {
setPrivateDnsName(privateDnsName);
return this;
}
代码示例来源:origin: aws/aws-sdk-java
instance.setPrivateDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
/**
* <p>
* (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used inside the
* Amazon EC2 network. This name is not available until the instance enters the <code>running</code> state.
* </p>
* <p>
* [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled DNS
* resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your VPC, your
* custom domain name servers must resolve the hostname as appropriate.
* </p>
*
* @param privateDnsName
* (IPv4 only) The private DNS hostname name assigned to the instance. This DNS hostname can only be used
* inside the Amazon EC2 network. This name is not available until the instance enters the
* <code>running</code> state. </p>
* <p>
* [EC2-VPC] The Amazon-provided DNS server resolves Amazon-provided private DNS hostnames if you've enabled
* DNS resolution and DNS hostnames in your VPC. If you are not using the Amazon-provided DNS server in your
* VPC, your custom domain name servers must resolve the hostname as appropriate.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public Instance withPrivateDnsName(String privateDnsName) {
setPrivateDnsName(privateDnsName);
return this;
}
代码示例来源:origin: aws-amplify/aws-sdk-android
instance.setPrivateDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
代码示例来源:origin: com.amazonaws/aws-java-sdk-ec2
instance.setPrivateDnsName(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;
内容来源于网络,如有侵权,请联系作者删除!