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

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

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

Placement.setTenancy介绍

[英]The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of dedicated runs on single-tenant hardware. The host tenancy is not supported for the ImportInstance command.
[中]实例的租约(如果实例在VPC中运行)。租约为dedicated的实例在单租户硬件上运行。ImportInstance命令不支持host租赁。

代码示例

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

/**
 * <p>
 * The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
 * <code>dedicated</code> runs on single-tenant hardware. The <code>host</code> tenancy is not supported for the
 * <a>ImportInstance</a> command.
 * </p>
 * 
 * @param tenancy
 *        The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
 *        <code>dedicated</code> runs on single-tenant hardware. The <code>host</code> tenancy is not supported for
 *        the <a>ImportInstance</a> command.
 * @return Returns a reference to this object so that method calls can be chained together.
 * @see Tenancy
 */
public Placement withTenancy(String tenancy) {
  setTenancy(tenancy);
  return this;
}

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

placement.setTenancy(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;

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

/**
 * <p>
 * The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
 * <code>dedicated</code> runs on single-tenant hardware. The <code>host</code> tenancy is not supported for the
 * <a>ImportInstance</a> command.
 * </p>
 * 
 * @param tenancy
 *        The tenancy of the instance (if the instance is running in a VPC). An instance with a tenancy of
 *        <code>dedicated</code> runs on single-tenant hardware. The <code>host</code> tenancy is not supported for
 *        the <a>ImportInstance</a> command.
 * @return Returns a reference to this object so that method calls can be chained together.
 * @see Tenancy
 */
public Placement withTenancy(String tenancy) {
  setTenancy(tenancy);
  return this;
}

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

placement.setTenancy(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;

代码示例来源:origin: org.jenkins-ci.plugins/ec2

Placement placement = new Placement(getZone());
if (getUseDedicatedTenancy()) {
  placement.setTenancy("dedicated");

代码示例来源:origin: jenkinsci/ec2-plugin

Placement placement = new Placement(getZone());
if (getUseDedicatedTenancy()) {
  placement.setTenancy("dedicated");

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

placement.setTenancy(StringStaxUnmarshaller.getInstance().unmarshall(context));
continue;

相关文章