Class ReplicaContainer
- java.lang.Object
-
- com.azure.resourcemanager.appcontainers.models.ReplicaContainer
-
public final class ReplicaContainer extends Object
Container object under Container App Revision Replica.
-
-
Constructor Summary
Constructors Constructor Description ReplicaContainer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
containerId()
Get the containerId property: The Id of the Container.String
name()
Get the name property: The Name of the Container.Boolean
ready()
Get the ready property: The container ready status.Integer
restartCount()
Get the restartCount property: The container restart count.Boolean
started()
Get the started property: The container start status.void
validate()
Validates the instance.ReplicaContainer
withContainerId(String containerId)
Set the containerId property: The Id of the Container.ReplicaContainer
withName(String name)
Set the name property: The Name of the Container.ReplicaContainer
withReady(Boolean ready)
Set the ready property: The container ready status.ReplicaContainer
withRestartCount(Integer restartCount)
Set the restartCount property: The container restart count.ReplicaContainer
withStarted(Boolean started)
Set the started property: The container start status.
-
-
-
Method Detail
-
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.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
-