Class ResourceAllocation.Builder

    • Constructor Detail

      • Builder

        public Builder()
        Constructor with parameters for the required properties of ResourceAllocation.
    • Method Detail

      • setLimit

        public ResourceAllocation.Builder setLimit​(java.lang.Double limit)
        The limit property specifies the maximum bandwidth allocation for a given traffic type and is expressed in percentage. The default value for this field is set to -1 which means the traffic is unbounded for the traffic type. All other negative values for this property is not supported and will be rejected by the API.
        Parameters:
        limit - New value for the property.
      • setReservation

        public ResourceAllocation.Builder setReservation​(java.lang.Double reservation)
        Minimum guaranteed bandwidth percentage
        Parameters:
        reservation - New value for the property.
      • setShares

        public ResourceAllocation.Builder setShares​(java.lang.Long shares)
        Shares format: int32
        Parameters:
        shares - New value for the property.