Class OfferControlBody


  • public class OfferControlBody
    extends java.lang.Object
    OfferControlBody
    • Field Detail

      • JSON_PROPERTY_SWITCHBOARD_INTEGRATION

        public static final java.lang.String JSON_PROPERTY_SWITCHBOARD_INTEGRATION
        See Also:
        Constant Field Values
      • JSON_PROPERTY_METADATA

        public static final java.lang.String JSON_PROPERTY_METADATA
        See Also:
        Constant Field Values
    • Constructor Detail

      • OfferControlBody

        public OfferControlBody()
    • Method Detail

      • switchboardIntegration

        public OfferControlBody switchboardIntegration​(java.lang.String switchboardIntegration)
      • getSwitchboardIntegration

        public java.lang.String getSwitchboardIntegration()
        The id or the name of the switchboard integration that will become pending. Also supports the `next` keyword to offer control to the next switchboard integration designated in the switchboard hierarchy configuration. This cannot match the active switchboard integration.
        Returns:
        switchboardIntegration
      • setSwitchboardIntegration

        public void setSwitchboardIntegration​(java.lang.String switchboardIntegration)
      • getMetadata

        @Nullable
        public java.lang.Object getMetadata()
        Flat object containing custom properties. Strings, numbers and booleans are the only supported format that can be passed to metadata. The metadata is limited to 4KB in size. The metadata object will be included in the `switchboard:offerControl` and `switchboard:offerControl:failure` webhooks.
        Returns:
        metadata
      • setMetadata

        public void setMetadata​(java.lang.Object metadata)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object