Package org.jclouds.softlayer.domain

Examples of org.jclouds.softlayer.domain.SoftwareLicense


   protected Logger logger = Logger.NULL;

   @Override
   public Image apply(OperatingSystem operatingSystem) {
      checkNotNull(operatingSystem, "operatingSystem");
      final SoftwareLicense defaultSoftwareLicense = SoftwareLicense.builder().softwareDescription(SoftwareDescription.builder().build()).build();
      SoftwareLicense softwareLicense = fromNullable(operatingSystem.getSoftwareLicense()).or(defaultSoftwareLicense);
      Optional<String> optOSReferenceCode = fromNullable(softwareLicense.getSoftwareDescription().getReferenceCode());
      Optional<String> optVersion = fromNullable(softwareLicense.getSoftwareDescription().getVersion());
      Optional<String> optLongDescription = fromNullable(softwareLicense.getSoftwareDescription().getLongDescription());
      OsFamily osFamily = OsFamily.UNRECOGNIZED;
      String osVersion = UNRECOGNIZED;
      Integer bits = null;
      if (optOSReferenceCode.isPresent()) {
         String operatingSystemReferenceCode = optOSReferenceCode.get();
View Full Code Here

TOP

Related Classes of org.jclouds.softlayer.domain.SoftwareLicense

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.