public final class ValidateProperties extends Object
| Constructor and Description |
|---|
ValidateProperties() |
| 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.
|
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.
|
void |
validate()
Validates the instance.
|
ValidateProperties |
withAppServiceEnvironment(AppServiceEnvironment appServiceEnvironment)
Set the appServiceEnvironment property: App Service Environment Properties.
|
ValidateProperties |
withCapacity(Integer capacity)
Set the capacity property: Target capacity of the App Service plan (number of VMs).
|
ValidateProperties |
withContainerImagePlatform(String containerImagePlatform)
Set the containerImagePlatform property: Platform (windows or linux).
|
ValidateProperties |
withContainerImageRepository(String containerImageRepository)
Set the containerImageRepository property: Repository name (image name).
|
ValidateProperties |
withContainerImageTag(String containerImageTag)
Set the containerImageTag property: Image tag.
|
ValidateProperties |
withContainerRegistryBaseUrl(String containerRegistryBaseUrl)
Set the containerRegistryBaseUrl property: Base URL of the container registry.
|
ValidateProperties |
withContainerRegistryPassword(String containerRegistryPassword)
Set the containerRegistryPassword property: Password for to access the container registry.
|
ValidateProperties |
withContainerRegistryUsername(String containerRegistryUsername)
Set the containerRegistryUsername property: Username for to access the container registry.
|
ValidateProperties |
withHostingEnvironment(String hostingEnvironment)
Set the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be
created.
|
ValidateProperties |
withIsSpot(Boolean isSpot)
Set the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise,
<code>false</code>.
|
ValidateProperties |
withIsXenon(Boolean isXenon)
Set the isXenon property: <code>true</code> if App Service plan is running as a windows container.
|
ValidateProperties |
withNeedLinuxWorkers(Boolean needLinuxWorkers)
Set the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers;
otherwise, <code>false</code>.
|
ValidateProperties |
withServerFarmId(String serverFarmId)
Set the serverFarmId property: ARM resource ID of an App Service plan that would host the app.
|
ValidateProperties |
withSkuName(String skuName)
Set the skuName property: Name of the target SKU for the App Service plan.
|
public String serverFarmId()
public ValidateProperties withServerFarmId(String serverFarmId)
serverFarmId - the serverFarmId value to set.public String skuName()
public ValidateProperties withSkuName(String skuName)
skuName - the skuName value to set.public Boolean needLinuxWorkers()
public ValidateProperties withNeedLinuxWorkers(Boolean needLinuxWorkers)
needLinuxWorkers - the needLinuxWorkers value to set.public Boolean isSpot()
public ValidateProperties withIsSpot(Boolean isSpot)
isSpot - the isSpot value to set.public Integer capacity()
public ValidateProperties withCapacity(Integer capacity)
capacity - the capacity value to set.public String hostingEnvironment()
public ValidateProperties withHostingEnvironment(String hostingEnvironment)
hostingEnvironment - the hostingEnvironment value to set.public Boolean isXenon()
public ValidateProperties withIsXenon(Boolean isXenon)
isXenon - the isXenon value to set.public String containerRegistryBaseUrl()
public ValidateProperties withContainerRegistryBaseUrl(String containerRegistryBaseUrl)
containerRegistryBaseUrl - the containerRegistryBaseUrl value to set.public String containerRegistryUsername()
public ValidateProperties withContainerRegistryUsername(String containerRegistryUsername)
containerRegistryUsername - the containerRegistryUsername value to set.public String containerRegistryPassword()
public ValidateProperties withContainerRegistryPassword(String containerRegistryPassword)
containerRegistryPassword - the containerRegistryPassword value to set.public String containerImageRepository()
public ValidateProperties withContainerImageRepository(String containerImageRepository)
containerImageRepository - the containerImageRepository value to set.public String containerImageTag()
public ValidateProperties withContainerImageTag(String containerImageTag)
containerImageTag - the containerImageTag value to set.public String containerImagePlatform()
public ValidateProperties withContainerImagePlatform(String containerImagePlatform)
containerImagePlatform - the containerImagePlatform value to set.public AppServiceEnvironment appServiceEnvironment()
public ValidateProperties 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.