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

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

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

Instance.setSourceDestCheck介绍

[英]Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether source/destination checking is enabled on the instance. A value of true means that checking is enabled, and false means that checking is disabled. The value must be false for the instance to perform NAT. For more information, see NAT Instances in the Amazon Virtual Private Cloud User Guide.
[中]指定是否启用VPC中启动的实例执行NAT。这控制是否在实例上启用源/目标检查。true表示启用检查,false表示禁用检查。该值必须为false,实例才能执行NAT。有关更多信息,请参阅Amazon虚拟私有云用户指南中的NAT Instances

代码示例

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

/**
 * <p>
 * Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
 * source/destination checking is enabled on the instance. A value of <code>true</code> means that checking is
 * enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the
 * instance to perform NAT. For more information, see <a
 * href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html">NAT Instances</a> in the
 * <i>Amazon Virtual Private Cloud User Guide</i>.
 * </p>
 * 
 * @param sourceDestCheck
 *        Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
 *        source/destination checking is enabled on the instance. A value of <code>true</code> means that checking
 *        is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code>
 *        for the instance to perform NAT. For more information, see <a
 *        href="http://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html">NAT Instances</a> in
 *        the <i>Amazon Virtual Private Cloud User Guide</i>.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Instance withSourceDestCheck(Boolean sourceDestCheck) {
  setSourceDestCheck(sourceDestCheck);
  return this;
}

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

instance.setSourceDestCheck(BooleanStaxUnmarshaller.getInstance().unmarshall(context));
continue;

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

/**
 * <p>
 * Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
 * source/destination checking is enabled on the instance. A value of <code>true</code> means that checking is
 * enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code> for the
 * instance to perform NAT. For more information, see <a
 * href="https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html">NAT Instances</a> in the
 * <i>Amazon Virtual Private Cloud User Guide</i>.
 * </p>
 * 
 * @param sourceDestCheck
 *        Specifies whether to enable an instance launched in a VPC to perform NAT. This controls whether
 *        source/destination checking is enabled on the instance. A value of <code>true</code> means that checking
 *        is enabled, and <code>false</code> means that checking is disabled. The value must be <code>false</code>
 *        for the instance to perform NAT. For more information, see <a
 *        href="https://docs.aws.amazon.com/AmazonVPC/latest/UserGuide/VPC_NAT_Instance.html">NAT Instances</a> in
 *        the <i>Amazon Virtual Private Cloud User Guide</i>.
 * @return Returns a reference to this object so that method calls can be chained together.
 */
public Instance withSourceDestCheck(Boolean sourceDestCheck) {
  setSourceDestCheck(sourceDestCheck);
  return this;
}

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

instance.setSourceDestCheck(BooleanStaxUnmarshaller.getInstance().unmarshall(context));
continue;

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

instance.setSourceDestCheck(BooleanStaxUnmarshaller.getInstance().unmarshall(context));
continue;

相关文章

Instance类方法