Package org.jclouds.cloudstack.domain

Examples of org.jclouds.cloudstack.domain.ResourceLimit


   @SuppressWarnings("unchecked")
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
      checkArgument(input instanceof ResourceLimit, "this binder is only valid for ResourceLimit");
      ResourceLimit limit = (ResourceLimit) input;
      Builder<String, String> builder = ImmutableMultimap.<String, String> builder();
      builder.put("resourcetype", limit.getResourceType().getCode() + "");
      builder.put("account", limit.getAccount());
      builder.put("domainid", limit.getDomainId());
      builder.put("max", limit.getMax() + "");
      return (R) request.toBuilder().replaceQueryParams(builder.build()).build();
   }
View Full Code Here


   @SuppressWarnings("unchecked")
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
      checkArgument(input instanceof ResourceLimit, "this binder is only valid for ResourceLimit");
      ResourceLimit limit = (ResourceLimit) input;
      Builder<String, String> builder = ImmutableMultimap.<String, String> builder();
      builder.put("resourcetype", limit.getResourceType().getCode() + "");
      builder.put("account", limit.getAccount());
      builder.put("domainid", limit.getDomainId());
      builder.put("max", limit.getMax() + "");
      return (R) request.toBuilder().replaceQueryParams(builder.build()).build();
   }
View Full Code Here

   @SuppressWarnings("unchecked")
   @Override
   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
      checkArgument(input instanceof ResourceLimit, "this binder is only valid for ResourceLimit");
      ResourceLimit limit = (ResourceLimit) input;
      Builder<String, String> builder = ImmutableMultimap.<String, String> builder();
      builder.put("resourcetype", limit.getResourceType().getCode() + "");
      builder.put("account", limit.getAccount());
      builder.put("domainid", limit.getDomainId());
      builder.put("max", limit.getMax() + "");
      return (R) request.toBuilder().replaceQueryParams(builder.build()).build();
   }
View Full Code Here

TOP

Related Classes of org.jclouds.cloudstack.domain.ResourceLimit

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.