package com.muse.dto; import java.net.URI; import java.util.Objects; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; import com.fasterxml.jackson.annotation.JsonTypeName; import com.fasterxml.jackson.annotation.JsonValue; import org.springframework.lang.Nullable; import java.io.Serializable; import java.time.OffsetDateTime; import jakarta.validation.Valid; import jakarta.validation.constraints.*; import io.swagger.v3.oas.annotations.media.Schema; import java.util.*; import jakarta.annotation.Generated; /** * StyleCheckResultSuggestionsInner */ @JsonTypeName("StyleCheckResult_suggestions_inner") @Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2026-05-24T15:05:54.603829+08:00[Asia/Shanghai]", comments = "Generator version: 7.22.0") public class StyleCheckResultSuggestionsInner implements Serializable { private static final long serialVersionUID = 1L; /** * Gets or Sets suggestionType */ public enum SuggestionTypeEnum { REWRITE("rewrite"), ADJUST("adjust"), REVIEW("review"); private final String value; SuggestionTypeEnum(String value) { this.value = value; } @JsonValue public String getValue() { return value; } @Override public String toString() { return String.valueOf(value); } @JsonCreator public static SuggestionTypeEnum fromValue(String value) { for (SuggestionTypeEnum b : SuggestionTypeEnum.values()) { if (b.value.equals(value)) { return b; } } throw new IllegalArgumentException("Unexpected value '" + value + "'"); } } private @Nullable SuggestionTypeEnum suggestionType; private @Nullable String targetSectionKey; private @Nullable String description; public StyleCheckResultSuggestionsInner suggestionType(@Nullable SuggestionTypeEnum suggestionType) { this.suggestionType = suggestionType; return this; } /** * Get suggestionType * @return suggestionType */ @Schema(name = "suggestionType", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("suggestionType") public @Nullable SuggestionTypeEnum getSuggestionType() { return suggestionType; } @JsonProperty("suggestionType") public void setSuggestionType(@Nullable SuggestionTypeEnum suggestionType) { this.suggestionType = suggestionType; } public StyleCheckResultSuggestionsInner targetSectionKey(@Nullable String targetSectionKey) { this.targetSectionKey = targetSectionKey; return this; } /** * Get targetSectionKey * @return targetSectionKey */ @Schema(name = "targetSectionKey", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("targetSectionKey") public @Nullable String getTargetSectionKey() { return targetSectionKey; } @JsonProperty("targetSectionKey") public void setTargetSectionKey(@Nullable String targetSectionKey) { this.targetSectionKey = targetSectionKey; } public StyleCheckResultSuggestionsInner description(@Nullable String description) { this.description = description; return this; } /** * Get description * @return description */ @Schema(name = "description", requiredMode = Schema.RequiredMode.NOT_REQUIRED) @JsonProperty("description") public @Nullable String getDescription() { return description; } @JsonProperty("description") public void setDescription(@Nullable String description) { this.description = description; } @Override public boolean equals(Object o) { if (this == o) { return true; } if (o == null || getClass() != o.getClass()) { return false; } StyleCheckResultSuggestionsInner styleCheckResultSuggestionsInner = (StyleCheckResultSuggestionsInner) o; return Objects.equals(this.suggestionType, styleCheckResultSuggestionsInner.suggestionType) && Objects.equals(this.targetSectionKey, styleCheckResultSuggestionsInner.targetSectionKey) && Objects.equals(this.description, styleCheckResultSuggestionsInner.description); } @Override public int hashCode() { return Objects.hash(suggestionType, targetSectionKey, description); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class StyleCheckResultSuggestionsInner {\n"); sb.append(" suggestionType: ").append(toIndentedString(suggestionType)).append("\n"); sb.append(" targetSectionKey: ").append(toIndentedString(targetSectionKey)).append("\n"); sb.append(" description: ").append(toIndentedString(description)).append("\n"); sb.append("}"); return sb.toString(); } /** * Convert the given object to string with each line indented by 4 spaces * (except the first line). */ private String toIndentedString(@Nullable Object o) { return o == null ? "null" : o.toString().replace("\n", "\n "); } }