EMMA Coverage Report (generated Mon Oct 17 05:41:20 EDT 2011)
[all classes][org.jclouds.savvis.vpdc.options]

COVERAGE SUMMARY FOR SOURCE FILE [GetVMOptions.java]

nameclass, %method, %block, %line, %
GetVMOptions.java100% (2/2)83%  (5/6)88%  (23/26)94%  (7.5/8)

COVERAGE BREAKDOWN BY CLASS AND METHOD

nameclass, %method, %block, %line, %
     
class GetVMOptions$Builder100% (1/1)50%  (1/2)70%  (7/10)67%  (2/3)
GetVMOptions$Builder (): void 0%   (0/1)0%   (0/3)0%   (0/1)
withPowerState (): GetVMOptions 100% (1/1)100% (7/7)100% (2/2)
     
class GetVMOptions100% (1/1)100% (4/4)100% (16/16)100% (6/6)
<static initializer> 100% (1/1)100% (5/5)100% (1/1)
GetVMOptions (): void 100% (1/1)100% (3/3)100% (2/2)
isWithPowerState (): boolean 100% (1/1)100% (3/3)100% (1/1)
withPowerState (): GetVMOptions 100% (1/1)100% (5/5)100% (2/2)

1/**
2 * Licensed to jclouds, Inc. (jclouds) under one or more
3 * contributor license agreements.  See the NOTICE file
4 * distributed with this work for additional information
5 * regarding copyright ownership.  jclouds licenses this file
6 * to you under the Apache License, Version 2.0 (the
7 * "License"); you may not use this file except in compliance
8 * with the License.  You may obtain a copy of the License at
9 *
10 *   http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied.  See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19package org.jclouds.savvis.vpdc.options;
20 
21 
22/**
23 * Contains options supported for the GetVApp operation. <h2>
24 * Usage</h2> The recommended way to instantiate a GetVAppOptions object is to statically import
25 * GetVAppOptions.Builder.* and invoke a static creation method followed by an instance mutator (if
26 * needed):
27 * <p/>
28 * <code>
29 * import static org.jclouds.savvis.vpdc.options.GetVAppOptions.Builder.*
30 * <p/>
31 * 
32 * vApp = context.getApi().getBrowsingClient().getVAppInVDC(orgId, vdcId, vAppId, withPowerState());
33 * <code>
34 * 
35 * @author Adrian Cole
36 * @see <a href= "https://api.sandbox.symphonyvpdc.savvis.net/doc/spec/api/getVAppPowerState.html"
37 *      />
38 */
39public class GetVMOptions {
40   public static final GetVMOptions NONE = new GetVMOptions();
41   private boolean withPowerState;
42 
43   /**
44    * The VM State is the real time state.
45    */
46   public GetVMOptions withPowerState() {
47      this.withPowerState = true;
48      return this;
49   }
50 
51   public boolean isWithPowerState() {
52      return withPowerState;
53   }
54 
55   public static class Builder {
56 
57      /**
58       * @see GetVMOptions#withPowerState()
59       */
60      public static GetVMOptions withPowerState() {
61         GetVMOptions options = new GetVMOptions();
62         return options.withPowerState();
63      }
64 
65   }
66}

[all classes][org.jclouds.savvis.vpdc.options]
EMMA 2.0.5312 (C) Vladimir Roubtsov