public class StoreChannelCreateSpec extends Object implements AuditSpec<ChannelCreateRequest>
StoreChannel
entities.Constructor and Description |
---|
StoreChannelCreateSpec() |
Modifier and Type | Method and Description |
---|---|
ChannelCreateRequest |
asRequest() |
String |
getReason()
Returns the current audit log reason set on the spec.
|
StoreChannelCreateSpec |
setName(String name)
Sets the name for the created
StoreChannel . |
StoreChannelCreateSpec |
setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
Sets the permission overwrites for the created
StoreChannel . |
StoreChannelCreateSpec |
setPosition(int position)
Sets the position for the created
StoreChannel . |
StoreChannelCreateSpec |
setReason(String reason)
Sets the reason to show in the audit logs when the spec is built.
|
public StoreChannelCreateSpec setName(String name)
StoreChannel
.name
- The name of the category.public StoreChannelCreateSpec setPosition(int position)
StoreChannel
.position
- The raw position for the category.public StoreChannelCreateSpec setPermissionOverwrites(Set<? extends PermissionOverwrite> permissionOverwrites)
StoreChannel
.permissionOverwrites
- The Set<PermissionOverwrite>
which contains overwrites for the category.public StoreChannelCreateSpec setReason(@Nullable String reason)
AuditSpec
setReason
in interface AuditSpec<ChannelCreateRequest>
reason
- The audit log reason.@Nullable public String getReason()
AuditSpec
getReason
in interface AuditSpec<ChannelCreateRequest>
public ChannelCreateRequest asRequest()
asRequest
in interface Spec<ChannelCreateRequest>