AgentPoolArtifactStreamingProfile Class

  • java.lang.Object
    • com.azure.resourcemanager.containerservice.models.AgentPoolArtifactStreamingProfile

Implements

public final class AgentPoolArtifactStreamingProfile
implements JsonSerializable<AgentPoolArtifactStreamingProfile>

Artifact streaming profile for the agent pool.

Constructor Summary

Constructor Description
AgentPoolArtifactStreamingProfile()

Creates an instance of AgentPoolArtifactStreamingProfile class.

Method Summary

Modifier and Type Method and Description
Boolean enabled()

Get the enabled property: Artifact streaming speeds up the cold-start of containers on a node through on-demand image loading.

static AgentPoolArtifactStreamingProfile fromJson(JsonReader jsonReader)

Reads an instance of AgentPoolArtifactStreamingProfile from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

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.

Methods inherited from java.lang.Object

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.

fromJson

public static AgentPoolArtifactStreamingProfile fromJson(JsonReader jsonReader)

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.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

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.

Applies to