ContainerServiceLinuxProfile Class

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

Implements

public final class ContainerServiceLinuxProfile
implements JsonSerializable<ContainerServiceLinuxProfile>

Profile for Linux VMs in the container service cluster.

Constructor Summary

Constructor Description
ContainerServiceLinuxProfile()

Creates an instance of ContainerServiceLinuxProfile class.

Method Summary

Modifier and Type Method and Description
String adminUsername()

Get the adminUsername property: The administrator username to use for Linux VMs.

static ContainerServiceLinuxProfile fromJson(JsonReader jsonReader)

Reads an instance of ContainerServiceLinuxProfile from the JsonReader.

ContainerServiceSshConfiguration ssh()

Get the ssh property: The SSH configuration for Linux-based VMs running on Azure.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

ContainerServiceLinuxProfile withAdminUsername(String adminUsername)

Set the adminUsername property: The administrator username to use for Linux VMs.

ContainerServiceLinuxProfile withSsh(ContainerServiceSshConfiguration ssh)

Set the ssh property: The SSH configuration for Linux-based VMs running on Azure.

Methods inherited from java.lang.Object

Constructor Details

ContainerServiceLinuxProfile

public ContainerServiceLinuxProfile()

Creates an instance of ContainerServiceLinuxProfile class.

Method Details

adminUsername

public String adminUsername()

Get the adminUsername property: The administrator username to use for Linux VMs.

Returns:

the adminUsername value.

fromJson

public static ContainerServiceLinuxProfile fromJson(JsonReader jsonReader)

Reads an instance of ContainerServiceLinuxProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of ContainerServiceLinuxProfile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

ssh

public ContainerServiceSshConfiguration ssh()

Get the ssh property: The SSH configuration for Linux-based VMs running on Azure.

Returns:

the ssh value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAdminUsername

public ContainerServiceLinuxProfile withAdminUsername(String adminUsername)

Set the adminUsername property: The administrator username to use for Linux VMs.

Parameters:

adminUsername - the adminUsername value to set.

Returns:

the ContainerServiceLinuxProfile object itself.

withSsh

public ContainerServiceLinuxProfile withSsh(ContainerServiceSshConfiguration ssh)

Set the ssh property: The SSH configuration for Linux-based VMs running on Azure.

Parameters:

ssh - the ssh value to set.

Returns:

the ContainerServiceLinuxProfile object itself.

Applies to