All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.huaweicloud.sdk.cloudide.v2.model.PropertiesSchema Maven / Gradle / Ivy

There is a newer version: 3.1.114
Show newest version
package com.huaweicloud.sdk.cloudide.v2.model;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.Objects;

/**
 * PropertiesSchema
 */
public class PropertiesSchema {

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "context")

    private String context;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "docstring")

    private String docstring;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "ide_type")

    private String ideType;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "ide_version")

    private String ideVersion;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "language")

    private String language;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "plugin_version")

    private String pluginVersion;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "signature")

    private String signature;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "above_text")

    private String aboveText;

    @JsonInclude(JsonInclude.Include.NON_NULL)
    @JsonProperty(value = "following_text")

    private String followingText;

    public PropertiesSchema withContext(String context) {
        this.context = context;
        return this;
    }

    /**
     * context
     * @return context
     */
    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public PropertiesSchema withDocstring(String docstring) {
        this.docstring = docstring;
        return this;
    }

    /**
     * docstring
     * @return docstring
     */
    public String getDocstring() {
        return docstring;
    }

    public void setDocstring(String docstring) {
        this.docstring = docstring;
    }

    public PropertiesSchema withIdeType(String ideType) {
        this.ideType = ideType;
        return this;
    }

    /**
     * the type of ide
     * @return ideType
     */
    public String getIdeType() {
        return ideType;
    }

    public void setIdeType(String ideType) {
        this.ideType = ideType;
    }

    public PropertiesSchema withIdeVersion(String ideVersion) {
        this.ideVersion = ideVersion;
        return this;
    }

    /**
     * the version of ide
     * @return ideVersion
     */
    public String getIdeVersion() {
        return ideVersion;
    }

    public void setIdeVersion(String ideVersion) {
        this.ideVersion = ideVersion;
    }

    public PropertiesSchema withLanguage(String language) {
        this.language = language;
        return this;
    }

    /**
     * code language
     * @return language
     */
    public String getLanguage() {
        return language;
    }

    public void setLanguage(String language) {
        this.language = language;
    }

    public PropertiesSchema withPluginVersion(String pluginVersion) {
        this.pluginVersion = pluginVersion;
        return this;
    }

    /**
     * the version of plugin
     * @return pluginVersion
     */
    public String getPluginVersion() {
        return pluginVersion;
    }

    public void setPluginVersion(String pluginVersion) {
        this.pluginVersion = pluginVersion;
    }

    public PropertiesSchema withSignature(String signature) {
        this.signature = signature;
        return this;
    }

    /**
     * signature
     * @return signature
     */
    public String getSignature() {
        return signature;
    }

    public void setSignature(String signature) {
        this.signature = signature;
    }

    public PropertiesSchema withAboveText(String aboveText) {
        this.aboveText = aboveText;
        return this;
    }

    /**
     * the text above the cursor
     * @return aboveText
     */
    public String getAboveText() {
        return aboveText;
    }

    public void setAboveText(String aboveText) {
        this.aboveText = aboveText;
    }

    public PropertiesSchema withFollowingText(String followingText) {
        this.followingText = followingText;
        return this;
    }

    /**
     * the text following the cursor
     * @return followingText
     */
    public String getFollowingText() {
        return followingText;
    }

    public void setFollowingText(String followingText) {
        this.followingText = followingText;
    }

    @Override
    public boolean equals(java.lang.Object obj) {
        if (this == obj) {
            return true;
        }
        if (obj == null || getClass() != obj.getClass()) {
            return false;
        }
        PropertiesSchema that = (PropertiesSchema) obj;
        return Objects.equals(this.context, that.context) && Objects.equals(this.docstring, that.docstring)
            && Objects.equals(this.ideType, that.ideType) && Objects.equals(this.ideVersion, that.ideVersion)
            && Objects.equals(this.language, that.language) && Objects.equals(this.pluginVersion, that.pluginVersion)
            && Objects.equals(this.signature, that.signature) && Objects.equals(this.aboveText, that.aboveText)
            && Objects.equals(this.followingText, that.followingText);
    }

    @Override
    public int hashCode() {
        return Objects.hash(context,
            docstring,
            ideType,
            ideVersion,
            language,
            pluginVersion,
            signature,
            aboveText,
            followingText);
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class PropertiesSchema {\n");
        sb.append("    context: ").append(toIndentedString(context)).append("\n");
        sb.append("    docstring: ").append(toIndentedString(docstring)).append("\n");
        sb.append("    ideType: ").append(toIndentedString(ideType)).append("\n");
        sb.append("    ideVersion: ").append(toIndentedString(ideVersion)).append("\n");
        sb.append("    language: ").append(toIndentedString(language)).append("\n");
        sb.append("    pluginVersion: ").append(toIndentedString(pluginVersion)).append("\n");
        sb.append("    signature: ").append(toIndentedString(signature)).append("\n");
        sb.append("    aboveText: ").append(toIndentedString(aboveText)).append("\n");
        sb.append("    followingText: ").append(toIndentedString(followingText)).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(java.lang.Object o) {
        if (o == null) {
            return "null";
        }
        return o.toString().replace("\n", "\n    ");
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy