Class InspectExecProcess

java.lang.Object
io.github.alersrt.pod4j.openapi.model.InspectExecProcess

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2024-11-19T11:19:05.435500352+07:00[Asia/Barnaul]", comments="Generator version: 7.7.0") public class InspectExecProcess extends Object
InspectExecProcess contains information about the process in a given exec session.
  • Field Details

  • Constructor Details

    • InspectExecProcess

      public InspectExecProcess()
  • Method Details

    • arguments

      public InspectExecProcess arguments(List<String> arguments)
    • addArgumentsItem

      public InspectExecProcess addArgumentsItem(String argumentsItem)
    • getArguments

      @Nullable public List<String> getArguments()
      Arguments are the arguments to the entrypoint command of the exec session.
      Returns:
      arguments
    • setArguments

      public void setArguments(List<String> arguments)
    • entrypoint

      public InspectExecProcess entrypoint(String entrypoint)
    • getEntrypoint

      @Nullable public String getEntrypoint()
      Entrypoint is the entrypoint for the exec session (the command that will be executed in the container).
      Returns:
      entrypoint
    • setEntrypoint

      public void setEntrypoint(String entrypoint)
    • privileged

      public InspectExecProcess privileged(Boolean privileged)
    • getPrivileged

      @Nullable public Boolean getPrivileged()
      Privileged is whether the exec session will be started with elevated privileges.
      Returns:
      privileged
    • setPrivileged

      public void setPrivileged(Boolean privileged)
    • tty

      public InspectExecProcess tty(Boolean tty)
    • getTty

      @Nullable public Boolean getTty()
      Tty is whether the exec session created a terminal.
      Returns:
      tty
    • setTty

      public void setTty(Boolean tty)
    • user

      public InspectExecProcess user(String user)
    • getUser

      @Nullable public String getUser()
      User is the user the exec session was started as.
      Returns:
      user
    • setUser

      public void setUser(String user)
    • 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 InspectExecProcess
    • fromJson

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

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