Class OfferControlBody
- java.lang.Object
-
- com.zendesk.sunshine_conversations_client.model.OfferControlBody
-
public class OfferControlBody extends java.lang.ObjectOfferControlBody
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringJSON_PROPERTY_METADATAstatic java.lang.StringJSON_PROPERTY_SWITCHBOARD_INTEGRATION
-
Constructor Summary
Constructors Constructor Description OfferControlBody()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object o)java.lang.ObjectgetMetadata()Flat object containing custom properties.java.lang.StringgetSwitchboardIntegration()The id or the name of the switchboard integration that will become pending.inthashCode()OfferControlBodymetadata(java.lang.Object metadata)voidsetMetadata(java.lang.Object metadata)voidsetSwitchboardIntegration(java.lang.String switchboardIntegration)OfferControlBodyswitchboardIntegration(java.lang.String switchboardIntegration)java.lang.StringtoString()
-
-
-
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
-
-
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)
-
metadata
public OfferControlBody metadata(java.lang.Object metadata)
-
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:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-