discord4j.discordjson.json.GuildScheduledEventModifyRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of discord-json Show documentation
Show all versions of discord-json Show documentation
Discord entity domain as immutable Jackson objects
package discord4j.discordjson.json;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import discord4j.discordjson.Id;
import discord4j.discordjson.possible.Possible;
import org.immutables.value.Value;
import java.time.Instant;
import java.util.Optional;
@Value.Immutable
@JsonSerialize(as = ImmutableGuildScheduledEventModifyRequest.class)
@JsonDeserialize(as = ImmutableGuildScheduledEventModifyRequest.class)
public interface GuildScheduledEventModifyRequest {
static ImmutableGuildScheduledEventModifyRequest.Builder builder() {
return ImmutableGuildScheduledEventModifyRequest.builder();
}
/* must be set to null if entity type is changed to external */
@JsonProperty("channel_id")
Possible> channelId();
/* Required (with location) if changing entity type to external */
@JsonProperty("entity_metadata")
Possible entityMetadata();
Possible name();
@JsonProperty("privacy_level")
Possible privacyLevel();
@JsonProperty("scheduled_start_time")
Possible scheduledStartTime();
/* Required if changing entity type to external */
@JsonProperty("scheduled_end_time")
Possible scheduledEndTime();
Possible description();
@JsonProperty("entity_type")
Possible entityType();
Possible status();
Possible image();
}