Class ReplicaContainer

java.lang.Object
com.azure.resourcemanager.appcontainers.models.ReplicaContainer
All Implemented Interfaces:
com.azure.json.JsonSerializable<ReplicaContainer>

public final class ReplicaContainer extends Object implements com.azure.json.JsonSerializable<ReplicaContainer>
Container object under Container App Revision Replica.
  • Constructor Details

    • ReplicaContainer

      public ReplicaContainer()
      Creates an instance of ReplicaContainer class.
  • Method Details

    • name

      public String name()
      Get the name property: The Name of the Container.
      Returns:
      the name value.
    • withName

      public ReplicaContainer withName(String name)
      Set the name property: The Name of the Container.
      Parameters:
      name - the name value to set.
      Returns:
      the ReplicaContainer object itself.
    • containerId

      public String containerId()
      Get the containerId property: The Id of the Container.
      Returns:
      the containerId value.
    • withContainerId

      public ReplicaContainer withContainerId(String containerId)
      Set the containerId property: The Id of the Container.
      Parameters:
      containerId - the containerId value to set.
      Returns:
      the ReplicaContainer object itself.
    • ready

      public Boolean ready()
      Get the ready property: The container ready status.
      Returns:
      the ready value.
    • withReady

      public ReplicaContainer withReady(Boolean ready)
      Set the ready property: The container ready status.
      Parameters:
      ready - the ready value to set.
      Returns:
      the ReplicaContainer object itself.
    • started

      public Boolean started()
      Get the started property: The container start status.
      Returns:
      the started value.
    • withStarted

      public ReplicaContainer withStarted(Boolean started)
      Set the started property: The container start status.
      Parameters:
      started - the started value to set.
      Returns:
      the ReplicaContainer object itself.
    • restartCount

      public Integer restartCount()
      Get the restartCount property: The container restart count.
      Returns:
      the restartCount value.
    • withRestartCount

      public ReplicaContainer withRestartCount(Integer restartCount)
      Set the restartCount property: The container restart count.
      Parameters:
      restartCount - the restartCount value to set.
      Returns:
      the ReplicaContainer object itself.
    • runningState

      public ContainerAppContainerRunningState runningState()
      Get the runningState property: Current running state of the container.
      Returns:
      the runningState value.
    • runningStateDetails

      public String runningStateDetails()
      Get the runningStateDetails property: The details of container current running state.
      Returns:
      the runningStateDetails value.
    • logStreamEndpoint

      public String logStreamEndpoint()
      Get the logStreamEndpoint property: Log Stream endpoint.
      Returns:
      the logStreamEndpoint value.
    • execEndpoint

      public String execEndpoint()
      Get the execEndpoint property: Container exec endpoint.
      Returns:
      the execEndpoint value.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<ReplicaContainer>
      Throws:
      IOException
    • fromJson

      public static ReplicaContainer fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of ReplicaContainer from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of ReplicaContainer if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IOException - If an error occurs while reading the ReplicaContainer.