public Builder fromCustomizationSection(CustomizationSection in) { return fromSectionType(in) .customizeOnInstantiate(in.isCustomizeOnInstantiate()) .links(in.getLinks()) .href(in.getHref()) .type(in.getType()); }
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); }