Class DpnTepInterfaceInfoBuilder


  • @Generated("org.immutables.processor.ProxyProcessor")
    public final class DpnTepInterfaceInfoBuilder
    extends java.lang.Object
    Builds instances of type DpnTepInterfaceInfo. Initialize attributes and then invoke the build() method to create an immutable instance.

    DpnTepInterfaceInfoBuilder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Constructor Detail

      • DpnTepInterfaceInfoBuilder

        public DpnTepInterfaceInfoBuilder()
        Creates a builder for DpnTepInterfaceInfo instances.
         new DpnTepInterfaceInfoBuilder()
            .setTunnelType(Class<? extends org.opendaylight.yang.gen.v1.urn.opendaylight.genius.interfacemanager.rev160406.TunnelTypeBase>) // required tunnelType
            .setTunnelName(String) // required tunnelName
            .setIsMonitoringEnabled(boolean) // required isMonitoringEnabled
            .setIsInternal(boolean) // required isInternal
            .setRemoteDPN(org.opendaylight.yangtools.yang.common.Uint64) // required remoteDPN
            .build();
         
    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final DpnTepInterfaceInfoBuilder from​(DpnTepInterfaceInfo instance)
        Fill a builder with attribute values from the provided DpnTepInterfaceInfo instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • setTunnelType

        @CanIgnoreReturnValue
        public final DpnTepInterfaceInfoBuilder setTunnelType​(java.lang.Class<? extends TunnelTypeBase> tunnelType)
        Initializes the value for the tunnelType attribute.
        Parameters:
        tunnelType - The value for tunnelType
        Returns:
        this builder for use in a chained invocation
      • setTunnelName

        @CanIgnoreReturnValue
        public final DpnTepInterfaceInfoBuilder setTunnelName​(java.lang.String tunnelName)
        Initializes the value for the tunnelName attribute.
        Parameters:
        tunnelName - The value for tunnelName
        Returns:
        this builder for use in a chained invocation
      • setIsMonitoringEnabled

        @CanIgnoreReturnValue
        public final DpnTepInterfaceInfoBuilder setIsMonitoringEnabled​(boolean isMonitoringEnabled)
        Initializes the value for the isMonitoringEnabled attribute.
        Parameters:
        isMonitoringEnabled - The value for isMonitoringEnabled
        Returns:
        this builder for use in a chained invocation
      • setIsInternal

        @CanIgnoreReturnValue
        public final DpnTepInterfaceInfoBuilder setIsInternal​(boolean isInternal)
        Initializes the value for the isInternal attribute.
        Parameters:
        isInternal - The value for isInternal
        Returns:
        this builder for use in a chained invocation
      • setRemoteDPN

        @CanIgnoreReturnValue
        public final DpnTepInterfaceInfoBuilder setRemoteDPN​(org.opendaylight.yangtools.yang.common.Uint64 remoteDPN)
        Initializes the value for the remoteDPN attribute.
        Parameters:
        remoteDPN - The value for remoteDPN
        Returns:
        this builder for use in a chained invocation
      • build

        public DpnTepInterfaceInfo build()
        Builds a new DpnTepInterfaceInfo.
        Returns:
        An immutable instance of DpnTepInterfaceInfo
        Throws:
        java.lang.IllegalStateException - if any required attributes are missing