Class ValidateRequest
- java.lang.Object
-
- com.microsoft.azure.management.appservice.ValidateRequest
-
public class ValidateRequest extends Object
Resource validation request content.
-
-
Constructor Summary
Constructors Constructor Description ValidateRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integercapacity()Get target capacity of the App Service plan (number of VMs).StringhostingEnvironment()Get name of App Service Environment where app or App Service plan should be created.BooleanisSpot()Get <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.BooleanisXenon()Get <code>true</code> if App Service plan is running as a windows container.Stringlocation()Get expected location of the resource.Stringname()Get resource name to verify.BooleanneedLinuxWorkers()Get <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.StringserverFarmId()Get aRM resource ID of an App Service plan that would host the app.StringskuName()Get name of the target SKU for the App Service plan.ValidateResourceTypestype()Get resource type used for verification.ValidateRequestwithCapacity(Integer capacity)Set target capacity of the App Service plan (number of VMs).ValidateRequestwithHostingEnvironment(String hostingEnvironment)Set name of App Service Environment where app or App Service plan should be created.ValidateRequestwithIsSpot(Boolean isSpot)Set <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.ValidateRequestwithIsXenon(Boolean isXenon)Set <code>true</code> if App Service plan is running as a windows container.ValidateRequestwithLocation(String location)Set expected location of the resource.ValidateRequestwithName(String name)Set resource name to verify.ValidateRequestwithNeedLinuxWorkers(Boolean needLinuxWorkers)Set <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.ValidateRequestwithServerFarmId(String serverFarmId)Set aRM resource ID of an App Service plan that would host the app.ValidateRequestwithSkuName(String skuName)Set name of the target SKU for the App Service plan.ValidateRequestwithType(ValidateResourceTypes type)Set resource type used for verification.
-
-
-
Method Detail
-
name
public String name()
Get resource name to verify.- Returns:
- the name value
-
withName
public ValidateRequest withName(String name)
Set resource name to verify.- Parameters:
name- the name value to set- Returns:
- the ValidateRequest object itself.
-
type
public ValidateResourceTypes type()
Get resource type used for verification. Possible values include: 'ServerFarm', 'Site'.- Returns:
- the type value
-
withType
public ValidateRequest withType(ValidateResourceTypes type)
Set resource type used for verification. Possible values include: 'ServerFarm', 'Site'.- Parameters:
type- the type value to set- Returns:
- the ValidateRequest object itself.
-
location
public String location()
Get expected location of the resource.- Returns:
- the location value
-
withLocation
public ValidateRequest withLocation(String location)
Set expected location of the resource.- Parameters:
location- the location value to set- Returns:
- the ValidateRequest object itself.
-
serverFarmId
public String serverFarmId()
Get aRM resource ID of an App Service plan that would host the app.- Returns:
- the serverFarmId value
-
withServerFarmId
public ValidateRequest withServerFarmId(String serverFarmId)
Set aRM resource ID of an App Service plan that would host the app.- Parameters:
serverFarmId- the serverFarmId value to set- Returns:
- the ValidateRequest object itself.
-
skuName
public String skuName()
Get name of the target SKU for the App Service plan.- Returns:
- the skuName value
-
withSkuName
public ValidateRequest withSkuName(String skuName)
Set name of the target SKU for the App Service plan.- Parameters:
skuName- the skuName value to set- Returns:
- the ValidateRequest object itself.
-
needLinuxWorkers
public Boolean needLinuxWorkers()
Get <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.- Returns:
- the needLinuxWorkers value
-
withNeedLinuxWorkers
public ValidateRequest withNeedLinuxWorkers(Boolean needLinuxWorkers)
Set <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.- Parameters:
needLinuxWorkers- the needLinuxWorkers value to set- Returns:
- the ValidateRequest object itself.
-
isSpot
public Boolean isSpot()
Get <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.- Returns:
- the isSpot value
-
withIsSpot
public ValidateRequest withIsSpot(Boolean isSpot)
Set <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.- Parameters:
isSpot- the isSpot value to set- Returns:
- the ValidateRequest object itself.
-
capacity
public Integer capacity()
Get target capacity of the App Service plan (number of VMs).- Returns:
- the capacity value
-
withCapacity
public ValidateRequest withCapacity(Integer capacity)
Set target capacity of the App Service plan (number of VMs).- Parameters:
capacity- the capacity value to set- Returns:
- the ValidateRequest object itself.
-
hostingEnvironment
public String hostingEnvironment()
Get name of App Service Environment where app or App Service plan should be created.- Returns:
- the hostingEnvironment value
-
withHostingEnvironment
public ValidateRequest withHostingEnvironment(String hostingEnvironment)
Set name of App Service Environment where app or App Service plan should be created.- Parameters:
hostingEnvironment- the hostingEnvironment value to set- Returns:
- the ValidateRequest object itself.
-
isXenon
public Boolean isXenon()
Get <code>true</code> if App Service plan is running as a windows container.- Returns:
- the isXenon value
-
withIsXenon
public ValidateRequest withIsXenon(Boolean isXenon)
Set <code>true</code> if App Service plan is running as a windows container.- Parameters:
isXenon- the isXenon value to set- Returns:
- the ValidateRequest object itself.
-
-