Class ValidateProperties
- java.lang.Object
-
- com.azure.resourcemanager.appservice.fluent.models.ValidateProperties
-
public final class ValidateProperties extends Object
App properties used for validation.
-
-
Constructor Summary
Constructors Constructor Description ValidateProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AppServiceEnvironmentappServiceEnvironment()Get the appServiceEnvironment property: App Service Environment Properties.Integercapacity()Get the capacity property: Target capacity of the App Service plan (number of VMs).StringcontainerImagePlatform()Get the containerImagePlatform property: Platform (windows or linux).StringcontainerImageRepository()Get the containerImageRepository property: Repository name (image name).StringcontainerImageTag()Get the containerImageTag property: Image tag.StringcontainerRegistryBaseUrl()Get the containerRegistryBaseUrl property: Base URL of the container registry.StringcontainerRegistryPassword()Get the containerRegistryPassword property: Password for to access the container registry.StringcontainerRegistryUsername()Get the containerRegistryUsername property: Username for to access the container registry.StringhostingEnvironment()Get the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be created.BooleanisSpot()Get the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.BooleanisXenon()Get the isXenon property: <code>true</code> if App Service plan is running as a windows container.BooleanneedLinuxWorkers()Get the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.StringserverFarmId()Get the serverFarmId property: ARM resource ID of an App Service plan that would host the app.StringskuName()Get the skuName property: Name of the target SKU for the App Service plan.voidvalidate()Validates the instance.ValidatePropertieswithAppServiceEnvironment(AppServiceEnvironment appServiceEnvironment)Set the appServiceEnvironment property: App Service Environment Properties.ValidatePropertieswithCapacity(Integer capacity)Set the capacity property: Target capacity of the App Service plan (number of VMs).ValidatePropertieswithContainerImagePlatform(String containerImagePlatform)Set the containerImagePlatform property: Platform (windows or linux).ValidatePropertieswithContainerImageRepository(String containerImageRepository)Set the containerImageRepository property: Repository name (image name).ValidatePropertieswithContainerImageTag(String containerImageTag)Set the containerImageTag property: Image tag.ValidatePropertieswithContainerRegistryBaseUrl(String containerRegistryBaseUrl)Set the containerRegistryBaseUrl property: Base URL of the container registry.ValidatePropertieswithContainerRegistryPassword(String containerRegistryPassword)Set the containerRegistryPassword property: Password for to access the container registry.ValidatePropertieswithContainerRegistryUsername(String containerRegistryUsername)Set the containerRegistryUsername property: Username for to access the container registry.ValidatePropertieswithHostingEnvironment(String hostingEnvironment)Set the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be created.ValidatePropertieswithIsSpot(Boolean isSpot)Set the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.ValidatePropertieswithIsXenon(Boolean isXenon)Set the isXenon property: <code>true</code> if App Service plan is running as a windows container.ValidatePropertieswithNeedLinuxWorkers(Boolean needLinuxWorkers)Set the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.ValidatePropertieswithServerFarmId(String serverFarmId)Set the serverFarmId property: ARM resource ID of an App Service plan that would host the app.ValidatePropertieswithSkuName(String skuName)Set the skuName property: Name of the target SKU for the App Service plan.
-
-
-
Method Detail
-
serverFarmId
public String serverFarmId()
Get the serverFarmId property: ARM resource ID of an App Service plan that would host the app.- Returns:
- the serverFarmId value.
-
withServerFarmId
public ValidateProperties withServerFarmId(String serverFarmId)
Set the serverFarmId property: ARM resource ID of an App Service plan that would host the app.- Parameters:
serverFarmId- the serverFarmId value to set.- Returns:
- the ValidateProperties object itself.
-
skuName
public String skuName()
Get the skuName property: Name of the target SKU for the App Service plan.- Returns:
- the skuName value.
-
withSkuName
public ValidateProperties withSkuName(String skuName)
Set the skuName property: Name of the target SKU for the App Service plan.- Parameters:
skuName- the skuName value to set.- Returns:
- the ValidateProperties object itself.
-
needLinuxWorkers
public Boolean needLinuxWorkers()
Get the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.- Returns:
- the needLinuxWorkers value.
-
withNeedLinuxWorkers
public ValidateProperties withNeedLinuxWorkers(Boolean needLinuxWorkers)
Set the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.- Parameters:
needLinuxWorkers- the needLinuxWorkers value to set.- Returns:
- the ValidateProperties object itself.
-
isSpot
public Boolean isSpot()
Get the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.- Returns:
- the isSpot value.
-
withIsSpot
public ValidateProperties withIsSpot(Boolean isSpot)
Set the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.- Parameters:
isSpot- the isSpot value to set.- Returns:
- the ValidateProperties object itself.
-
capacity
public Integer capacity()
Get the capacity property: Target capacity of the App Service plan (number of VMs).- Returns:
- the capacity value.
-
withCapacity
public ValidateProperties withCapacity(Integer capacity)
Set the capacity property: Target capacity of the App Service plan (number of VMs).- Parameters:
capacity- the capacity value to set.- Returns:
- the ValidateProperties object itself.
-
hostingEnvironment
public String hostingEnvironment()
Get the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be created.- Returns:
- the hostingEnvironment value.
-
withHostingEnvironment
public ValidateProperties withHostingEnvironment(String hostingEnvironment)
Set the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be created.- Parameters:
hostingEnvironment- the hostingEnvironment value to set.- Returns:
- the ValidateProperties object itself.
-
isXenon
public Boolean isXenon()
Get the isXenon property: <code>true</code> if App Service plan is running as a windows container.- Returns:
- the isXenon value.
-
withIsXenon
public ValidateProperties withIsXenon(Boolean isXenon)
Set the isXenon property: <code>true</code> if App Service plan is running as a windows container.- Parameters:
isXenon- the isXenon value to set.- Returns:
- the ValidateProperties object itself.
-
containerRegistryBaseUrl
public String containerRegistryBaseUrl()
Get the containerRegistryBaseUrl property: Base URL of the container registry.- Returns:
- the containerRegistryBaseUrl value.
-
withContainerRegistryBaseUrl
public ValidateProperties withContainerRegistryBaseUrl(String containerRegistryBaseUrl)
Set the containerRegistryBaseUrl property: Base URL of the container registry.- Parameters:
containerRegistryBaseUrl- the containerRegistryBaseUrl value to set.- Returns:
- the ValidateProperties object itself.
-
containerRegistryUsername
public String containerRegistryUsername()
Get the containerRegistryUsername property: Username for to access the container registry.- Returns:
- the containerRegistryUsername value.
-
withContainerRegistryUsername
public ValidateProperties withContainerRegistryUsername(String containerRegistryUsername)
Set the containerRegistryUsername property: Username for to access the container registry.- Parameters:
containerRegistryUsername- the containerRegistryUsername value to set.- Returns:
- the ValidateProperties object itself.
-
containerRegistryPassword
public String containerRegistryPassword()
Get the containerRegistryPassword property: Password for to access the container registry.- Returns:
- the containerRegistryPassword value.
-
withContainerRegistryPassword
public ValidateProperties withContainerRegistryPassword(String containerRegistryPassword)
Set the containerRegistryPassword property: Password for to access the container registry.- Parameters:
containerRegistryPassword- the containerRegistryPassword value to set.- Returns:
- the ValidateProperties object itself.
-
containerImageRepository
public String containerImageRepository()
Get the containerImageRepository property: Repository name (image name).- Returns:
- the containerImageRepository value.
-
withContainerImageRepository
public ValidateProperties withContainerImageRepository(String containerImageRepository)
Set the containerImageRepository property: Repository name (image name).- Parameters:
containerImageRepository- the containerImageRepository value to set.- Returns:
- the ValidateProperties object itself.
-
containerImageTag
public String containerImageTag()
Get the containerImageTag property: Image tag.- Returns:
- the containerImageTag value.
-
withContainerImageTag
public ValidateProperties withContainerImageTag(String containerImageTag)
Set the containerImageTag property: Image tag.- Parameters:
containerImageTag- the containerImageTag value to set.- Returns:
- the ValidateProperties object itself.
-
containerImagePlatform
public String containerImagePlatform()
Get the containerImagePlatform property: Platform (windows or linux).- Returns:
- the containerImagePlatform value.
-
withContainerImagePlatform
public ValidateProperties withContainerImagePlatform(String containerImagePlatform)
Set the containerImagePlatform property: Platform (windows or linux).- Parameters:
containerImagePlatform- the containerImagePlatform value to set.- Returns:
- the ValidateProperties object itself.
-
appServiceEnvironment
public AppServiceEnvironment appServiceEnvironment()
Get the appServiceEnvironment property: App Service Environment Properties.- Returns:
- the appServiceEnvironment value.
-
withAppServiceEnvironment
public ValidateProperties withAppServiceEnvironment(AppServiceEnvironment appServiceEnvironment)
Set the appServiceEnvironment property: App Service Environment Properties.- Parameters:
appServiceEnvironment- the appServiceEnvironment value to set.- Returns:
- the ValidateProperties object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-