EMMA Coverage Report (generated Wed Jun 22 19:47:49 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 *
3 * Copyright (C) 2011 Cloud Conscious, LLC. <info@cloudconscious.com>
4 *
5 * ====================================================================
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * 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, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 * ====================================================================
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