Class AgentPoolArtifactStreamingProfile

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

public final class AgentPoolArtifactStreamingProfile extends Object implements com.azure.json.JsonSerializable<AgentPoolArtifactStreamingProfile>
Artifact streaming profile for the agent pool.
  • Constructor Details

    • AgentPoolArtifactStreamingProfile

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

    • enabled

      public Boolean enabled()
      Get the enabled property: Artifact streaming speeds up the cold-start of containers on a node through on-demand image loading. To use this feature, container images must also enable artifact streaming on ACR. If not specified, the default is false.
      Returns:
      the enabled value.
    • withEnabled

      public AgentPoolArtifactStreamingProfile withEnabled(Boolean enabled)
      Set the enabled property: Artifact streaming speeds up the cold-start of containers on a node through on-demand image loading. To use this feature, container images must also enable artifact streaming on ACR. If not specified, the default is false.
      Parameters:
      enabled - the enabled value to set.
      Returns:
      the AgentPoolArtifactStreamingProfile object itself.
    • 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<AgentPoolArtifactStreamingProfile>
      Throws:
      IOException
    • fromJson

      public static AgentPoolArtifactStreamingProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of AgentPoolArtifactStreamingProfile from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of AgentPoolArtifactStreamingProfile 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 AgentPoolArtifactStreamingProfile.