Class GetKillswitchResponse

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

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

  • Constructor Details

    • GetKillswitchResponse

      public GetKillswitchResponse()
  • Method Details

    • id

      public GetKillswitchResponse id(@Nonnull String id)
    • getId

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

      public void setId(@Nonnull String id)
    • name

      public GetKillswitchResponse name(@Nonnull String name)
    • getName

      @Nonnull public String getName()
      Stable config key in `folder.name` form (two lowercase segments separated by a dot, e.g. `pricing.tiers`). Used by SDKs as `Shipeasy.getConfig('<name>')`. Immutable after create.
      Returns:
      name
    • setName

      public void setName(@Nonnull String name)
    • description

      public GetKillswitchResponse description(@Nullable String description)
    • getDescription

      @Nullable public String getDescription()
      Free-form description or `null`.
      Returns:
      description
    • setDescription

      public void setDescription(@Nullable String description)
    • updatedAt

      public GetKillswitchResponse updatedAt(@Nonnull String updatedAt)
    • getUpdatedAt

      @Nonnull public String getUpdatedAt()
      ISO-8601 timestamp of last mutation.
      Returns:
      updatedAt
    • setUpdatedAt

      public void setUpdatedAt(@Nonnull String updatedAt)
    • envs

    • putEnvsItem

    • getEnvs

      Per-env latest value, switches, version, and publish timestamp.
      Returns:
      envs
    • setEnvs

      public void setEnvs(@Nonnull Map<String,ListKillswitchesResponseDataInnerEnvsValue> envs)
    • putAdditionalProperty

      public GetKillswitchResponse 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 GetKillswitchResponse 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 GetKillswitchResponse
    • fromJson

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

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