Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.containerservice.implementation; import com.microsoft.azure.management.containerservice.OSType; import java.util.List; import com.microsoft.azure.management.containerservice.AgentPoolUpgradeProfilePropertiesUpgradesItem; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
The list of available upgrades for an agent pool.
/** * The list of available upgrades for an agent pool. */
@JsonFlatten public class AgentPoolUpgradeProfileInner {
Id of the agent pool upgrade profile.
/** * Id of the agent pool upgrade profile. */
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY) private String id;
Name of the agent pool upgrade profile.
/** * Name of the agent pool upgrade profile. */
@JsonProperty(value = "name", access = JsonProperty.Access.WRITE_ONLY) private String name;
Type of the agent pool upgrade profile.
/** * Type of the agent pool upgrade profile. */
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY) private String type;
Kubernetes version (major, minor, patch).
/** * Kubernetes version (major, minor, patch). */
@JsonProperty(value = "properties.kubernetesVersion", required = true) private String kubernetesVersion;
OsType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'.
/** * OsType to be used to specify os type. Choose from Linux and Windows. * Default to Linux. Possible values include: 'Linux', 'Windows'. */
@JsonProperty(value = "properties.osType", required = true) private OSType osType;
List of orchestrator types and versions available for upgrade.
/** * List of orchestrator types and versions available for upgrade. */
@JsonProperty(value = "properties.upgrades") private List<AgentPoolUpgradeProfilePropertiesUpgradesItem> upgrades;
LatestNodeImageVersion is the latest AKS supported node image version.
/** * LatestNodeImageVersion is the latest AKS supported node image version. */
@JsonProperty(value = "properties.latestNodeImageVersion") private String latestNodeImageVersion;
Get id of the agent pool upgrade profile.
Returns:the id value
/** * Get id of the agent pool upgrade profile. * * @return the id value */
public String id() { return this.id; }
Get name of the agent pool upgrade profile.
Returns:the name value
/** * Get name of the agent pool upgrade profile. * * @return the name value */
public String name() { return this.name; }
Get type of the agent pool upgrade profile.
Returns:the type value
/** * Get type of the agent pool upgrade profile. * * @return the type value */
public String type() { return this.type; }
Get kubernetes version (major, minor, patch).
Returns:the kubernetesVersion value
/** * Get kubernetes version (major, minor, patch). * * @return the kubernetesVersion value */
public String kubernetesVersion() { return this.kubernetesVersion; }
Set kubernetes version (major, minor, patch).
Params:
  • kubernetesVersion – the kubernetesVersion value to set
Returns:the AgentPoolUpgradeProfileInner object itself.
/** * Set kubernetes version (major, minor, patch). * * @param kubernetesVersion the kubernetesVersion value to set * @return the AgentPoolUpgradeProfileInner object itself. */
public AgentPoolUpgradeProfileInner withKubernetesVersion(String kubernetesVersion) { this.kubernetesVersion = kubernetesVersion; return this; }
Get osType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'.
Returns:the osType value
/** * Get osType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. * * @return the osType value */
public OSType osType() { return this.osType; }
Set osType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'.
Params:
  • osType – the osType value to set
Returns:the AgentPoolUpgradeProfileInner object itself.
/** * Set osType to be used to specify os type. Choose from Linux and Windows. Default to Linux. Possible values include: 'Linux', 'Windows'. * * @param osType the osType value to set * @return the AgentPoolUpgradeProfileInner object itself. */
public AgentPoolUpgradeProfileInner withOsType(OSType osType) { this.osType = osType; return this; }
Get list of orchestrator types and versions available for upgrade.
Returns:the upgrades value
/** * Get list of orchestrator types and versions available for upgrade. * * @return the upgrades value */
public List<AgentPoolUpgradeProfilePropertiesUpgradesItem> upgrades() { return this.upgrades; }
Set list of orchestrator types and versions available for upgrade.
Params:
  • upgrades – the upgrades value to set
Returns:the AgentPoolUpgradeProfileInner object itself.
/** * Set list of orchestrator types and versions available for upgrade. * * @param upgrades the upgrades value to set * @return the AgentPoolUpgradeProfileInner object itself. */
public AgentPoolUpgradeProfileInner withUpgrades(List<AgentPoolUpgradeProfilePropertiesUpgradesItem> upgrades) { this.upgrades = upgrades; return this; }
Get latestNodeImageVersion is the latest AKS supported node image version.
Returns:the latestNodeImageVersion value
/** * Get latestNodeImageVersion is the latest AKS supported node image version. * * @return the latestNodeImageVersion value */
public String latestNodeImageVersion() { return this.latestNodeImageVersion; }
Set latestNodeImageVersion is the latest AKS supported node image version.
Params:
  • latestNodeImageVersion – the latestNodeImageVersion value to set
Returns:the AgentPoolUpgradeProfileInner object itself.
/** * Set latestNodeImageVersion is the latest AKS supported node image version. * * @param latestNodeImageVersion the latestNodeImageVersion value to set * @return the AgentPoolUpgradeProfileInner object itself. */
public AgentPoolUpgradeProfileInner withLatestNodeImageVersion(String latestNodeImageVersion) { this.latestNodeImageVersion = latestNodeImageVersion; return this; } }