Class Resource

  • All Implemented Interfaces:
    com.ibm.cloud.sdk.core.service.model.ObjectModel

    public class Resource
    extends com.ibm.cloud.sdk.core.service.model.GenericModel
    Resource requirements.
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Resource.Builder
      Builder.
      static interface  Resource.Type
      Type of requirement.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Resource.Builder newBuilder()
      New builder.
      java.lang.String type()
      Gets the type.
      java.lang.Object value()
      Gets the value.
      • Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Method Detail

      • newBuilder

        public Resource.Builder newBuilder()
        New builder.
        Returns:
        a Resource builder
      • type

        public java.lang.String type()
        Gets the type. Type of requirement.
        Returns:
        the type
      • value

        public java.lang.Object value()
        Gets the value. mem, disk, cores, and nodes can be parsed as an int. targetVersion will be a semver range value.
        Returns:
        the value