Class SimplifiedContractCounterOffer.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • validAfter

        public SimplifiedContractCounterOffer.Builder validAfter​(java.time.Instant validAfter)
        Sets instant after which the created counter-offer becomes acceptable.
        Parameters:
        validAfter - Instant after which the created counter-offer becomes acceptable.
        Returns:
        This builder.
      • validUntil

        public SimplifiedContractCounterOffer.Builder validUntil​(java.time.Instant validUntil)
        Sets instant after which the created counter-offer can no longer be accepted or rejected. Must be specified.
        Parameters:
        validUntil - Instant after which the created counter-offer can no longer be accepted or rejected.
        Returns:
        This builder.
      • contracts

        public SimplifiedContractCounterOffer.Builder contracts​(java.util.List<se.arkalix.core.plugin.cp.TrustedContractDto> contracts)
        Sets offered contracts. At least one must be specified.
        Parameters:
        contracts - Offered contracts.
        Returns:
        This builder.
      • contracts

        public SimplifiedContractCounterOffer.Builder contracts​(se.arkalix.core.plugin.cp.TrustedContractDto... contracts)
        Sets offered contracts. At least one must be specified.
        Parameters:
        contracts - Offered contracts.
        Returns:
        This builder.