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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the containerId property: The Id of the Container.Get the execEndpoint property: Container exec endpoint.static ReplicaContainer
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of ReplicaContainer from the JsonReader.Get the logStreamEndpoint property: Log Stream endpoint.name()
Get the name property: The Name of the Container.ready()
Get the ready property: The container ready status.Get the restartCount property: The container restart count.Get the runningState property: Current running state of the container.Get the runningStateDetails property: The details of container current running state.started()
Get the started property: The container start status.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withContainerId
(String containerId) Set the containerId property: The Id of the Container.Set the name property: The Name of the Container.Set the ready property: The container ready status.withRestartCount
(Integer restartCount) Set the restartCount property: The container restart count.withStarted
(Boolean started) Set the started property: The container start status.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ReplicaContainer
public ReplicaContainer()Creates an instance of ReplicaContainer class.
-
-
Method Details
-
name
Get the name property: The Name of the Container.- Returns:
- the name value.
-
withName
Set the name property: The Name of the Container.- Parameters:
name
- the name value to set.- Returns:
- the ReplicaContainer object itself.
-
containerId
Get the containerId property: The Id of the Container.- Returns:
- the containerId value.
-
withContainerId
Set the containerId property: The Id of the Container.- Parameters:
containerId
- the containerId value to set.- Returns:
- the ReplicaContainer object itself.
-
ready
Get the ready property: The container ready status.- Returns:
- the ready value.
-
withReady
Set the ready property: The container ready status.- Parameters:
ready
- the ready value to set.- Returns:
- the ReplicaContainer object itself.
-
started
Get the started property: The container start status.- Returns:
- the started value.
-
withStarted
Set the started property: The container start status.- Parameters:
started
- the started value to set.- Returns:
- the ReplicaContainer object itself.
-
restartCount
Get the restartCount property: The container restart count.- Returns:
- the restartCount value.
-
withRestartCount
Set the restartCount property: The container restart count.- Parameters:
restartCount
- the restartCount value to set.- Returns:
- the ReplicaContainer object itself.
-
runningState
Get the runningState property: Current running state of the container.- Returns:
- the runningState value.
-
runningStateDetails
Get the runningStateDetails property: The details of container current running state.- Returns:
- the runningStateDetails value.
-
logStreamEndpoint
Get the logStreamEndpoint property: Log Stream endpoint.- Returns:
- the logStreamEndpoint value.
-
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
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<ReplicaContainer>
- Throws:
IOException
-
fromJson
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.
-