java.lang.Object
com.azure.resourcemanager.containerregistry.models.AgentProperties

public final class AgentProperties extends Object
The properties that determine the run agent configuration.
  • Constructor Details

    • AgentProperties

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

    • cpu

      public Integer cpu()
      Get the cpu property: The CPU configuration in terms of number of cores required for the run.
      Returns:
      the cpu value.
    • withCpu

      public AgentProperties withCpu(Integer cpu)
      Set the cpu property: The CPU configuration in terms of number of cores required for the run.
      Parameters:
      cpu - the cpu value to set.
      Returns:
      the AgentProperties object itself.
    • validate

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