Class ChannelBase.BuilderBase

  • Direct Known Subclasses:
    Channel.Builder
    Enclosing class:
    ChannelBase

    public abstract static class ChannelBase.BuilderBase
    extends java.lang.Object
    Class implements builder to create a new instance of class Channel. As the class has read only attributes or associations instances can not be created directly. Instead this builder class has to be used.
    • Constructor Detail

      • BuilderBase

        protected BuilderBase()
        Use {@link Channel.builder()} instead of protected constructor to create new builder.
      • BuilderBase

        protected BuilderBase​(ChannelBase pObject)
        Use {@link Channel.builder(Channel)} instead of protected constructor to create new builder.
    • Method Detail

      • build

        public Channel build()
        Method creates a new instance of class Channel. The object will be initialized with the values of the builder.
        Returns:
        Channel Created object. The method never returns null.
      • buildValidated

        public Channel buildValidated()
                               throws javax.validation.ConstraintViolationException
        Method creates a new validated instance of class Channel. The object will be initialized with the values of the builder and validated afterwards.
        Returns:
        Channel Created and validated object. The method never returns null.
        Throws:
        javax.validation.ConstraintViolationException - in case that one or more validations for the created object failed.