示例#1
0
 public Builder fromCustomizationSection(CustomizationSection in) {
   return fromSectionType(in)
       .customizeOnInstantiate(in.isCustomizeOnInstantiate())
       .links(in.getLinks())
       .href(in.getHref())
       .type(in.getType());
 }
示例#2
0
文件: Checks.java 项目: doo/jclouds
  public static void checkCustomizationSection(CustomizationSection val) {
    assertNotNull(val, String.format(NOT_NULL_OBJECT_FMT, "CustomizationSection", ""));

    // Check optional fields
    if (val.getLinks() != null) {
      for (Link link : val.getLinks()) {
        checkLink(link);
      }
    }
    if (val.getType() != null) {
      checkType(val.getType());
    }
    if (val.getHref() != null) {
      checkHref(val.getHref());
    }

    checkOvfSectionType(val);
  }