From d8924519c78a07cdca114645a19bb81b97617098 Mon Sep 17 00:00:00 2001 From: danikov Date: Thu, 23 Feb 2012 13:41:17 +0000 Subject: [PATCH] fix domain object inhertance --- .../v1_5/domain/InstantiateVAppParamsType.java | 12 +++++++++--- .../vcloud/director/v1_5/domain/ParamsType.java | 4 ++-- .../director/v1_5/domain/VAppCreationParamsType.java | 10 ++++++---- 3 files changed, 17 insertions(+), 9 deletions(-) diff --git a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/InstantiateVAppParamsType.java b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/InstantiateVAppParamsType.java index 0660a06a87..4f35618a76 100644 --- a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/InstantiateVAppParamsType.java +++ b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/InstantiateVAppParamsType.java @@ -80,9 +80,9 @@ public class InstantiateVAppParamsType> public static class Builder> extends VAppCreationParamsType.Builder { - private Reference source; - private Boolean isSourceDelete; - private Boolean linkedClone; + protected Reference source; + protected Boolean isSourceDelete; + protected Boolean linkedClone; /** * @see InstantiateVAppParamsType#getSource() @@ -114,6 +114,12 @@ public class InstantiateVAppParamsType> instantiateVAppParams.setSource(source); instantiateVAppParams.setIsSourceDelete(isSourceDelete); instantiateVAppParams.setLinkedClone(linkedClone); + instantiateVAppParams.setVAppParent(vAppParent); + instantiateVAppParams.setInstantiationParams(instantiationParams); + instantiateVAppParams.setDeploy(deploy); + instantiateVAppParams.setPowerOn(powerOn); + instantiateVAppParams.setDescription(description); + instantiateVAppParams.setName(name); return instantiateVAppParams; } diff --git a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/ParamsType.java b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/ParamsType.java index 83542c3017..a2f8d4e7ce 100644 --- a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/ParamsType.java +++ b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/ParamsType.java @@ -81,8 +81,8 @@ public class ParamsType> { public static class Builder>{ - private String description; - private String name; + protected String description; + protected String name; /** * @see ParamsType#getDescription() diff --git a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/VAppCreationParamsType.java b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/VAppCreationParamsType.java index 1fc316b172..2488b79dc7 100644 --- a/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/VAppCreationParamsType.java +++ b/labs/vcloud-director/src/main/java/org/jclouds/vcloud/director/v1_5/domain/VAppCreationParamsType.java @@ -83,10 +83,10 @@ public class VAppCreationParamsType> public static class Builder> extends ParamsType.Builder { - private Reference vAppParent; - private InstantiationParams instantiationParams; - private Boolean deploy; - private Boolean powerOn; + protected Reference vAppParent; + protected InstantiationParams instantiationParams; + protected Boolean deploy; + protected Boolean powerOn; /** * @see VAppCreationParamsType#getVAppParent() @@ -127,6 +127,8 @@ public class VAppCreationParamsType> vAppCreationParams.setInstantiationParams(instantiationParams); vAppCreationParams.setDeploy(deploy); vAppCreationParams.setPowerOn(powerOn); + vAppCreationParams.setDescription(description); + vAppCreationParams.setName(name); return vAppCreationParams; }