Class GetAttributeResponse

java.lang.Object
ai.shipeasy.admin.model.GetAttributeResponse

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", comments="Generator version: 7.23.0") public class GetAttributeResponse extends Object
One targeting attribute row.
  • Field Details

  • Constructor Details

    • GetAttributeResponse

      public GetAttributeResponse()
  • Method Details

    • id

      public GetAttributeResponse id(@Nonnull String id)
    • getId

      @Nonnull public String getId()
      Stable opaque attribute id.
      Returns:
      id
    • setId

      public void setId(@Nonnull String id)
    • name

      public GetAttributeResponse name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Attribute key.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • type

      public GetAttributeResponse type(@Nonnull AttributeType type)
    • getType

      @Nonnull public AttributeType getType()
      Get type
      Returns:
      type
    • setType

      public void setType(@Nonnull AttributeType type)
    • enumValues

      public GetAttributeResponse enumValues(@Nullable List<String> enumValues)
    • addEnumValuesItem

      public GetAttributeResponse addEnumValuesItem(String enumValuesItem)
    • getEnumValues

      @Nullable public List<String> getEnumValues()
      Allowed values for `enum` attributes, else `null`.
      Returns:
      enumValues
    • setEnumValues

      public void setEnumValues(@Nullable List<String> enumValues)
    • required

      public GetAttributeResponse required(@Nullable GetAttributeResponse.RequiredEnum required)
    • getRequired

      @Nullable public GetAttributeResponse.RequiredEnum getRequired()
      Whether the attribute is required (D1 stores the flag as `0`/`1`).
      Returns:
      required
    • setRequired

      public void setRequired(@Nullable GetAttributeResponse.RequiredEnum required)
    • description

      public GetAttributeResponse description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Human note, or `null`.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • sdkPath

      public GetAttributeResponse sdkPath(@Nullable String sdkPath)
    • getSdkPath

      @Nullable public String getSdkPath()
      Dotted SDK path, or `null`.
      Returns:
      sdkPath
    • setSdkPath

      public void setSdkPath(@Nullable String sdkPath)
    • createdAt

      public GetAttributeResponse createdAt(@Nullable String createdAt)
    • getCreatedAt

      @Nullable public String getCreatedAt()
      ISO-8601 creation timestamp.
      Returns:
      createdAt
    • setCreatedAt

      public void setCreatedAt(@Nullable String createdAt)
    • putAdditionalProperty

      public GetAttributeResponse putAdditionalProperty(String key, Object value)
      Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.
      Parameters:
      key - name of the property
      value - value of the property
      Returns:
      the GetAttributeResponse instance itself
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      a map of objects
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      Return the additional (undeclared) property with the specified name.
      Parameters:
      key - name of the property
      Returns:
      an object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

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

      public String toString()
      Overrides:
      toString 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 GetAttributeResponse
    • fromJson

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

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