discord4j.discordjson.json.InviteCreateRequest 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.possible.Possible;
import org.immutables.value.Value;
@Value.Immutable
@JsonSerialize(as = ImmutableInviteCreateRequest.class)
@JsonDeserialize(as = ImmutableInviteCreateRequest.class)
public interface InviteCreateRequest {
static ImmutableInviteCreateRequest.Builder builder() {
return ImmutableInviteCreateRequest.builder();
}
@JsonProperty("max_age")
Possible maxAge();
@JsonProperty("max_uses")
Possible maxUses();
Possible temporary();
Possible unique();
@JsonProperty("target_type")
Possible targetType();
@JsonProperty("target_user_id")
Possible targetUserId();
@JsonProperty("target_application_id")
Possible targetApplicationId();
}