/**
* 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.appservice.implementation;
import com.microsoft.azure.management.appservice.ValidateResourceTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;
/**
* Resource validation request content.
*/
@JsonFlatten
public class ValidateRequestInner {
/**
* Resource name to verify.
*/
@JsonProperty(value = "name", required = true)
private String name;
/**
* Resource type used for verification. Possible values include:
* 'ServerFarm', 'Site'.
*/
@JsonProperty(value = "type", required = true)
private ValidateResourceTypes type;
/**
* Expected location of the resource.
*/
@JsonProperty(value = "location", required = true)
private String location;
/**
* ARM resource ID of an App Service plan that would host the app.
*/
@JsonProperty(value = "properties.serverFarmId")
private String serverFarmId;
/**
* Name of the target SKU for the App Service plan.
*/
@JsonProperty(value = "properties.skuName")
private String skuName;
/**
* <code>true</code> if App Service plan is for Linux workers;
* otherwise, <code>false</code>.
*/
@JsonProperty(value = "properties.needLinuxWorkers")
private Boolean needLinuxWorkers;
/**
* Target capacity of the App Service plan (number of VM's).
*/
@JsonProperty(value = "properties.capacity")
private Integer capacity;
/**
* Name of App Service Environment where app or App Service plan should be
* created.
*/
@JsonProperty(value = "properties.hostingEnvironment")
private String hostingEnvironment;
/**
* Get the name value.
*
* @return the name value
*/
public String name() {
return this.name;
}
/**
* Set the name value.
*
* @param name the name value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withName(String name) {
this.name = name;
return this;
}
/**
* Get the type value.
*
* @return the type value
*/
public ValidateResourceTypes type() {
return this.type;
}
/**
* Set the type value.
*
* @param type the type value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withType(ValidateResourceTypes type) {
this.type = type;
return this;
}
/**
* Get the location value.
*
* @return the location value
*/
public String location() {
return this.location;
}
/**
* Set the location value.
*
* @param location the location value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withLocation(String location) {
this.location = location;
return this;
}
/**
* Get the serverFarmId value.
*
* @return the serverFarmId value
*/
public String serverFarmId() {
return this.serverFarmId;
}
/**
* Set the serverFarmId value.
*
* @param serverFarmId the serverFarmId value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withServerFarmId(String serverFarmId) {
this.serverFarmId = serverFarmId;
return this;
}
/**
* Get the skuName value.
*
* @return the skuName value
*/
public String skuName() {
return this.skuName;
}
/**
* Set the skuName value.
*
* @param skuName the skuName value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withSkuName(String skuName) {
this.skuName = skuName;
return this;
}
/**
* Get the needLinuxWorkers value.
*
* @return the needLinuxWorkers value
*/
public Boolean needLinuxWorkers() {
return this.needLinuxWorkers;
}
/**
* Set the needLinuxWorkers value.
*
* @param needLinuxWorkers the needLinuxWorkers value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withNeedLinuxWorkers(Boolean needLinuxWorkers) {
this.needLinuxWorkers = needLinuxWorkers;
return this;
}
/**
* Get the capacity value.
*
* @return the capacity value
*/
public Integer capacity() {
return this.capacity;
}
/**
* Set the capacity value.
*
* @param capacity the capacity value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withCapacity(Integer capacity) {
this.capacity = capacity;
return this;
}
/**
* Get the hostingEnvironment value.
*
* @return the hostingEnvironment value
*/
public String hostingEnvironment() {
return this.hostingEnvironment;
}
/**
* Set the hostingEnvironment value.
*
* @param hostingEnvironment the hostingEnvironment value to set
* @return the ValidateRequestInner object itself.
*/
public ValidateRequestInner withHostingEnvironment(String hostingEnvironment) {
this.hostingEnvironment = hostingEnvironment;
return this;
}
}