public final class ValidateRequest extends Object
| Constructor and Description |
|---|
ValidateRequest() |
| Modifier and Type | Method and Description |
|---|---|
AppServiceEnvironment |
appServiceEnvironment()
Get the appServiceEnvironment property: App Service Environment Properties.
|
Integer |
capacity()
Get the capacity property: Target capacity of the App Service plan (number of VMs).
|
String |
containerImagePlatform()
Get the containerImagePlatform property: Platform (windows or linux).
|
String |
containerImageRepository()
Get the containerImageRepository property: Repository name (image name).
|
String |
containerImageTag()
Get the containerImageTag property: Image tag.
|
String |
containerRegistryBaseUrl()
Get the containerRegistryBaseUrl property: Base URL of the container registry.
|
String |
containerRegistryPassword()
Get the containerRegistryPassword property: Password for to access the container registry.
|
String |
containerRegistryUsername()
Get the containerRegistryUsername property: Username for to access the container registry.
|
String |
hostingEnvironment()
Get the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be
created.
|
Boolean |
isSpot()
Get the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise,
<code>false</code>.
|
Boolean |
isXenon()
Get the isXenon property: <code>true</code> if App Service plan is running as a windows container.
|
String |
location()
Get the location property: Expected location of the resource.
|
String |
name()
Get the name property: Resource name to verify.
|
Boolean |
needLinuxWorkers()
Get the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers;
otherwise, <code>false</code>.
|
String |
serverFarmId()
Get the serverFarmId property: ARM resource ID of an App Service plan that would host the app.
|
String |
skuName()
Get the skuName property: Name of the target SKU for the App Service plan.
|
ValidateResourceTypes |
type()
Get the type property: Resource type used for verification.
|
void |
validate()
Validates the instance.
|
ValidateRequest |
withAppServiceEnvironment(AppServiceEnvironment appServiceEnvironment)
Set the appServiceEnvironment property: App Service Environment Properties.
|
ValidateRequest |
withCapacity(Integer capacity)
Set the capacity property: Target capacity of the App Service plan (number of VMs).
|
ValidateRequest |
withContainerImagePlatform(String containerImagePlatform)
Set the containerImagePlatform property: Platform (windows or linux).
|
ValidateRequest |
withContainerImageRepository(String containerImageRepository)
Set the containerImageRepository property: Repository name (image name).
|
ValidateRequest |
withContainerImageTag(String containerImageTag)
Set the containerImageTag property: Image tag.
|
ValidateRequest |
withContainerRegistryBaseUrl(String containerRegistryBaseUrl)
Set the containerRegistryBaseUrl property: Base URL of the container registry.
|
ValidateRequest |
withContainerRegistryPassword(String containerRegistryPassword)
Set the containerRegistryPassword property: Password for to access the container registry.
|
ValidateRequest |
withContainerRegistryUsername(String containerRegistryUsername)
Set the containerRegistryUsername property: Username for to access the container registry.
|
ValidateRequest |
withHostingEnvironment(String hostingEnvironment)
Set the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be
created.
|
ValidateRequest |
withIsSpot(Boolean isSpot)
Set the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise,
<code>false</code>.
|
ValidateRequest |
withIsXenon(Boolean isXenon)
Set the isXenon property: <code>true</code> if App Service plan is running as a windows container.
|
ValidateRequest |
withLocation(String location)
Set the location property: Expected location of the resource.
|
ValidateRequest |
withName(String name)
Set the name property: Resource name to verify.
|
ValidateRequest |
withNeedLinuxWorkers(Boolean needLinuxWorkers)
Set the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers;
otherwise, <code>false</code>.
|
ValidateRequest |
withServerFarmId(String serverFarmId)
Set the serverFarmId property: ARM resource ID of an App Service plan that would host the app.
|
ValidateRequest |
withSkuName(String skuName)
Set the skuName property: Name of the target SKU for the App Service plan.
|
ValidateRequest |
withType(ValidateResourceTypes type)
Set the type property: Resource type used for verification.
|
public String name()
public ValidateRequest withName(String name)
name - the name value to set.public ValidateResourceTypes type()
public ValidateRequest withType(ValidateResourceTypes type)
type - the type value to set.public String location()
public ValidateRequest withLocation(String location)
location - the location value to set.public String serverFarmId()
public ValidateRequest withServerFarmId(String serverFarmId)
serverFarmId - the serverFarmId value to set.public String skuName()
public ValidateRequest withSkuName(String skuName)
skuName - the skuName value to set.public Boolean needLinuxWorkers()
public ValidateRequest withNeedLinuxWorkers(Boolean needLinuxWorkers)
needLinuxWorkers - the needLinuxWorkers value to set.public Boolean isSpot()
public ValidateRequest withIsSpot(Boolean isSpot)
isSpot - the isSpot value to set.public Integer capacity()
public ValidateRequest withCapacity(Integer capacity)
capacity - the capacity value to set.public String hostingEnvironment()
public ValidateRequest withHostingEnvironment(String hostingEnvironment)
hostingEnvironment - the hostingEnvironment value to set.public Boolean isXenon()
public ValidateRequest withIsXenon(Boolean isXenon)
isXenon - the isXenon value to set.public String containerRegistryBaseUrl()
public ValidateRequest withContainerRegistryBaseUrl(String containerRegistryBaseUrl)
containerRegistryBaseUrl - the containerRegistryBaseUrl value to set.public String containerRegistryUsername()
public ValidateRequest withContainerRegistryUsername(String containerRegistryUsername)
containerRegistryUsername - the containerRegistryUsername value to set.public String containerRegistryPassword()
public ValidateRequest withContainerRegistryPassword(String containerRegistryPassword)
containerRegistryPassword - the containerRegistryPassword value to set.public String containerImageRepository()
public ValidateRequest withContainerImageRepository(String containerImageRepository)
containerImageRepository - the containerImageRepository value to set.public String containerImageTag()
public ValidateRequest withContainerImageTag(String containerImageTag)
containerImageTag - the containerImageTag value to set.public String containerImagePlatform()
public ValidateRequest withContainerImagePlatform(String containerImagePlatform)
containerImagePlatform - the containerImagePlatform value to set.public AppServiceEnvironment appServiceEnvironment()
public ValidateRequest withAppServiceEnvironment(AppServiceEnvironment appServiceEnvironment)
appServiceEnvironment - the appServiceEnvironment value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Visit the Azure for Java Developers site for more Java documentation, including quick starts, tutorials, and code samples.