예제 #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);
  }