本文整理汇总了Java中com.amazonaws.services.ec2.model.AssociateRouteTableResult类的典型用法代码示例。如果您正苦于以下问题:Java AssociateRouteTableResult类的具体用法?Java AssociateRouteTableResult怎么用?Java AssociateRouteTableResult使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
AssociateRouteTableResult类属于com.amazonaws.services.ec2.model包,在下文中一共展示了AssociateRouteTableResult类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: associateSubnetToRouteTable
import com.amazonaws.services.ec2.model.AssociateRouteTableResult; //导入依赖的package包/类
/**
* Associate a subnet to an existing route table
*/
public DeferredResult<Void> associateSubnetToRouteTable(String routeTableId,
String subnetId) {
AssociateRouteTableRequest req = new AssociateRouteTableRequest()
.withSubnetId(subnetId)
.withRouteTableId(routeTableId);
String message = "Associate AWS Subnet [" + subnetId + "] to route table [" +
routeTableId + "].";
AWSDeferredResultAsyncHandler<AssociateRouteTableRequest, AssociateRouteTableResult> handler
= new AWSDeferredResultAsyncHandler<>(this.service, message);
this.client.associateRouteTableAsync(req, handler);
return handler.toDeferredResult()
.thenAccept(ignore -> { });
}
示例2: associateWithSubnet
import com.amazonaws.services.ec2.model.AssociateRouteTableResult; //导入依赖的package包/类
@Override
public RouteTableAssociation associateWithSubnet(AssociateRouteTableRequest
request, ResultCapture<AssociateRouteTableResult> extractor) {
ActionResult result = resource.performAction("AssociateWithSubnet",
request, extractor);
if (result == null) return null;
return new RouteTableAssociationImpl(result.getResource());
}
示例3: associateRouteTable
import com.amazonaws.services.ec2.model.AssociateRouteTableResult; //导入依赖的package包/类
@Override
public AssociateRouteTableResult associateRouteTable(AssociateRouteTableRequest associateRouteTableRequest) throws AmazonServiceException, AmazonClientException {
throw new UnsupportedOperationException("Not supported in mock");
}
示例4: associateWithSubnet
import com.amazonaws.services.ec2.model.AssociateRouteTableResult; //导入依赖的package包/类
/**
* Performs the <code>AssociateWithSubnet</code> action and use a
* ResultCapture to retrieve the low-level client response.
*
* <p>
* The following request parameters will be populated from the data of this
* <code>RouteTable</code> resource, and any conflicting parameter value set
* in the request will be overridden:
* <ul>
* <li>
* <b><code>RouteTableId</code></b>
* - mapped from the <code>Id</code> identifier.
* </li>
* </ul>
*
* <p>
*
* @return The <code>RouteTableAssociation</code> resource object associated
* with the result of this action.
* @see AssociateRouteTableRequest
*/
RouteTableAssociation associateWithSubnet(AssociateRouteTableRequest request
, ResultCapture<AssociateRouteTableResult> extractor);