Class Source


  • @Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
               comments="Generator version: 7.4.0")
    public class Source
    extends Object
    Source of the entity, for example, \"en-US\" for US English.
    • Constructor Detail

      • Source

        public Source()
    • Method Detail

      • getLocale

        @Nonnull
        public String getLocale()
        A single value that represents content locale, for example, English.
        Returns:
        locale
      • setLocale

        public void setLocale​(String locale)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • validateJsonElement

        public static void validateJsonElement​(com.google.gson.JsonElement jsonElement)
                                        throws IOException
        Validates the JSON Element and throws an exception if issues found
        Parameters:
        jsonElement - JSON Element
        Throws:
        IOException - if the JSON Element is invalid with respect to Source
      • fromJson

        public static Source fromJson​(String jsonString)
                               throws IOException
        Create an instance of Source given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of Source
        Throws:
        IOException - if the JSON string is invalid with respect to Source
      • toJson

        public String toJson()
        Convert an instance of Source to an JSON string
        Returns:
        JSON string