/**
* 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.compute.implementation;
import com.microsoft.azure.management.compute.ContainerServiceOrchestratorProfile;
import com.microsoft.azure.management.compute.ContainerServiceCustomProfile;
import com.microsoft.azure.management.compute.ContainerServiceServicePrincipalProfile;
import com.microsoft.azure.management.compute.ContainerServiceMasterProfile;
import java.util.List;
import com.microsoft.azure.management.compute.ContainerServiceAgentPoolProfile;
import com.microsoft.azure.management.compute.ContainerServiceWindowsProfile;
import com.microsoft.azure.management.compute.ContainerServiceLinuxProfile;
import com.microsoft.azure.management.compute.ContainerServiceDiagnosticsProfile;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
import com.microsoft.azure.Resource;
/**
* Container service.
*/
@JsonFlatten
public class ContainerServiceInner extends Resource {
/**
* the current deployment or provisioning state, which only appears in the
* response.
*/
@JsonProperty(value = "properties.provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private String provisioningState;
/**
* Properties of the orchestrator.
*/
@JsonProperty(value = "properties.orchestratorProfile")
private ContainerServiceOrchestratorProfile orchestratorProfile;
/**
* Properties for custom clusters.
*/
@JsonProperty(value = "properties.customProfile")
private ContainerServiceCustomProfile customProfile;
/**
* Properties for cluster service principals.
*/
@JsonProperty(value = "properties.servicePrincipalProfile")
private ContainerServiceServicePrincipalProfile servicePrincipalProfile;
/**
* Properties of master agents.
*/
@JsonProperty(value = "properties.masterProfile", required = true)
private ContainerServiceMasterProfile masterProfile;
/**
* Properties of the agent pool.
*/
@JsonProperty(value = "properties.agentPoolProfiles", required = true)
private List<ContainerServiceAgentPoolProfile> agentPoolProfiles;
/**
* Properties of Windows VMs.
*/
@JsonProperty(value = "properties.windowsProfile")
private ContainerServiceWindowsProfile windowsProfile;
/**
* Properties of Linux VMs.
*/
@JsonProperty(value = "properties.linuxProfile", required = true)
private ContainerServiceLinuxProfile linuxProfile;
/**
* Properties of the diagnostic agent.
*/
@JsonProperty(value = "properties.diagnosticsProfile")
private ContainerServiceDiagnosticsProfile diagnosticsProfile;
/**
* Get the provisioningState value.
*
* @return the provisioningState value
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* Get the orchestratorProfile value.
*
* @return the orchestratorProfile value
*/
public ContainerServiceOrchestratorProfile orchestratorProfile() {
return this.orchestratorProfile;
}
/**
* Set the orchestratorProfile value.
*
* @param orchestratorProfile the orchestratorProfile value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withOrchestratorProfile(ContainerServiceOrchestratorProfile orchestratorProfile) {
this.orchestratorProfile = orchestratorProfile;
return this;
}
/**
* Get the customProfile value.
*
* @return the customProfile value
*/
public ContainerServiceCustomProfile customProfile() {
return this.customProfile;
}
/**
* Set the customProfile value.
*
* @param customProfile the customProfile value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withCustomProfile(ContainerServiceCustomProfile customProfile) {
this.customProfile = customProfile;
return this;
}
/**
* Get the servicePrincipalProfile value.
*
* @return the servicePrincipalProfile value
*/
public ContainerServiceServicePrincipalProfile servicePrincipalProfile() {
return this.servicePrincipalProfile;
}
/**
* Set the servicePrincipalProfile value.
*
* @param servicePrincipalProfile the servicePrincipalProfile value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withServicePrincipalProfile(ContainerServiceServicePrincipalProfile servicePrincipalProfile) {
this.servicePrincipalProfile = servicePrincipalProfile;
return this;
}
/**
* Get the masterProfile value.
*
* @return the masterProfile value
*/
public ContainerServiceMasterProfile masterProfile() {
return this.masterProfile;
}
/**
* Set the masterProfile value.
*
* @param masterProfile the masterProfile value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withMasterProfile(ContainerServiceMasterProfile masterProfile) {
this.masterProfile = masterProfile;
return this;
}
/**
* Get the agentPoolProfiles value.
*
* @return the agentPoolProfiles value
*/
public List<ContainerServiceAgentPoolProfile> agentPoolProfiles() {
return this.agentPoolProfiles;
}
/**
* Set the agentPoolProfiles value.
*
* @param agentPoolProfiles the agentPoolProfiles value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withAgentPoolProfiles(List<ContainerServiceAgentPoolProfile> agentPoolProfiles) {
this.agentPoolProfiles = agentPoolProfiles;
return this;
}
/**
* Get the windowsProfile value.
*
* @return the windowsProfile value
*/
public ContainerServiceWindowsProfile windowsProfile() {
return this.windowsProfile;
}
/**
* Set the windowsProfile value.
*
* @param windowsProfile the windowsProfile value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withWindowsProfile(ContainerServiceWindowsProfile windowsProfile) {
this.windowsProfile = windowsProfile;
return this;
}
/**
* Get the linuxProfile value.
*
* @return the linuxProfile value
*/
public ContainerServiceLinuxProfile linuxProfile() {
return this.linuxProfile;
}
/**
* Set the linuxProfile value.
*
* @param linuxProfile the linuxProfile value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withLinuxProfile(ContainerServiceLinuxProfile linuxProfile) {
this.linuxProfile = linuxProfile;
return this;
}
/**
* Get the diagnosticsProfile value.
*
* @return the diagnosticsProfile value
*/
public ContainerServiceDiagnosticsProfile diagnosticsProfile() {
return this.diagnosticsProfile;
}
/**
* Set the diagnosticsProfile value.
*
* @param diagnosticsProfile the diagnosticsProfile value to set
* @return the ContainerServiceInner object itself.
*/
public ContainerServiceInner withDiagnosticsProfile(ContainerServiceDiagnosticsProfile diagnosticsProfile) {
this.diagnosticsProfile = diagnosticsProfile;
return this;
}
}