Class AdminConversationsSetCustomRetentionRequest
java.lang.Object
com.slack.api.methods.request.admin.conversations.AdminConversationsSetCustomRetentionRequest
- All Implemented Interfaces:
SlackApiRequest
public class AdminConversationsSetCustomRetentionRequest extends java.lang.Object implements SlackApiRequest
https://api.slack.com/methods/admin.conversations.setCustomRetention
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAdminConversationsSetCustomRetentionRequest.AdminConversationsSetCustomRetentionRequestBuilder -
Method Summary
Modifier and Type Method Description static AdminConversationsSetCustomRetentionRequest.AdminConversationsSetCustomRetentionRequestBuilderbuilder()protected booleancanEqual(java.lang.Object other)booleanequals(java.lang.Object o)java.lang.StringgetChannelId()The channel to set the retention policy for.java.lang.IntegergetDurationDays()The message retention duration in days to set for this channeljava.lang.StringgetToken()Authentication token bearing required scopes.inthashCode()voidsetChannelId(java.lang.String channelId)The channel to set the retention policy for.voidsetDurationDays(java.lang.Integer durationDays)The message retention duration in days to set for this channelvoidsetToken(java.lang.String token)Authentication token bearing required scopes.java.lang.StringtoString()
-
Method Details
-
builder
public static AdminConversationsSetCustomRetentionRequest.AdminConversationsSetCustomRetentionRequestBuilder builder() -
getToken
public java.lang.String getToken()Authentication token bearing required scopes.- Specified by:
getTokenin interfaceSlackApiRequest
-
getChannelId
public java.lang.String getChannelId()The channel to set the retention policy for. -
getDurationDays
public java.lang.Integer getDurationDays()The message retention duration in days to set for this channel -
setToken
public void setToken(java.lang.String token)Authentication token bearing required scopes. -
setChannelId
public void setChannelId(java.lang.String channelId)The channel to set the retention policy for. -
setDurationDays
public void setDurationDays(java.lang.Integer durationDays)The message retention duration in days to set for this channel -
equals
public boolean equals(java.lang.Object o)- Overrides:
equalsin classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other) -
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-
toString
public java.lang.String toString()- Overrides:
toStringin classjava.lang.Object
-