Class ValidateRequestInner
java.lang.Object
com.azure.resourcemanager.appservice.fluent.models.ValidateRequestInner
- All Implemented Interfaces:
com.azure.json.JsonSerializable<ValidateRequestInner>
public final class ValidateRequestInner
extends Object
implements com.azure.json.JsonSerializable<ValidateRequestInner>
Resource validation request content.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the appServiceEnvironment property: App Service Environment Properties.capacity()Get the capacity property: Target capacity of the App Service plan (number of VMs).Get the containerImagePlatform property: Platform (windows or linux).Get the containerImageRepository property: Repository name (image name).Get the containerImageTag property: Image tag.Get the containerRegistryBaseUrl property: Base URL of the container registry.Get the containerRegistryPassword property: Password for to access the container registry.Get the containerRegistryUsername property: Username for to access the container registry.static ValidateRequestInnerfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of ValidateRequestInner from the JsonReader.Get the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be created.isSpot()Get the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.isXenon()Get the isXenon property: <code>true</code> if App Service plan is running as a windows container.location()Get the location property: Expected location of the resource.name()Get the name property: Resource name to verify.Get the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.Get the serverFarmId property: ARM resource ID of an App Service plan that would host the app.skuName()Get the skuName property: Name of the target SKU for the App Service plan.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) type()Get the type property: Resource type used for verification.voidvalidate()Validates the instance.withAppServiceEnvironment(AppServiceEnvironmentInner appServiceEnvironment) Set the appServiceEnvironment property: App Service Environment Properties.withCapacity(Integer capacity) Set the capacity property: Target capacity of the App Service plan (number of VMs).withContainerImagePlatform(String containerImagePlatform) Set the containerImagePlatform property: Platform (windows or linux).withContainerImageRepository(String containerImageRepository) Set the containerImageRepository property: Repository name (image name).withContainerImageTag(String containerImageTag) Set the containerImageTag property: Image tag.withContainerRegistryBaseUrl(String containerRegistryBaseUrl) Set the containerRegistryBaseUrl property: Base URL of the container registry.withContainerRegistryPassword(String containerRegistryPassword) Set the containerRegistryPassword property: Password for to access the container registry.withContainerRegistryUsername(String containerRegistryUsername) Set the containerRegistryUsername property: Username for to access the container registry.withHostingEnvironment(String hostingEnvironment) Set the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be created.withIsSpot(Boolean isSpot) Set the isSpot property: <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.withIsXenon(Boolean isXenon) Set the isXenon property: <code>true</code> if App Service plan is running as a windows container.withLocation(String location) Set the location property: Expected location of the resource.Set the name property: Resource name to verify.withNeedLinuxWorkers(Boolean needLinuxWorkers) Set the needLinuxWorkers property: <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.withServerFarmId(String serverFarmId) Set the serverFarmId property: ARM resource ID of an App Service plan that would host the app.withSkuName(String skuName) Set the skuName property: Name of the target SKU for the App Service plan.Set the type property: Resource type used for verification.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
ValidateRequestInner
public ValidateRequestInner()Creates an instance of ValidateRequestInner class.
-
-
Method Details
-
name
Get the name property: Resource name to verify.- Returns:
- the name value.
-
withName
Set the name property: Resource name to verify.- Parameters:
name- the name value to set.- Returns:
- the ValidateRequestInner object itself.
-
type
Get the type property: Resource type used for verification.- Returns:
- the type value.
-
withType
Set the type property: Resource type used for verification.- Parameters:
type- the type value to set.- Returns:
- the ValidateRequestInner object itself.
-
location
Get the location property: Expected location of the resource.- Returns:
- the location value.
-
withLocation
Set the location property: Expected location of the resource.- Parameters:
location- the location value to set.- Returns:
- the ValidateRequestInner object itself.
-
serverFarmId
Get the serverFarmId property: ARM resource ID of an App Service plan that would host the app.- Returns:
- the serverFarmId value.
-
withServerFarmId
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 ValidateRequestInner object itself.
-
skuName
Get the skuName property: Name of the target SKU for the App Service plan.- Returns:
- the skuName value.
-
withSkuName
Set the skuName property: Name of the target SKU for the App Service plan.- Parameters:
skuName- the skuName value to set.- Returns:
- the ValidateRequestInner object itself.
-
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
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 ValidateRequestInner object itself.
-
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
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 ValidateRequestInner object itself.
-
capacity
Get the capacity property: Target capacity of the App Service plan (number of VMs).- Returns:
- the capacity value.
-
withCapacity
Set the capacity property: Target capacity of the App Service plan (number of VMs).- Parameters:
capacity- the capacity value to set.- Returns:
- the ValidateRequestInner object itself.
-
hostingEnvironment
Get the hostingEnvironment property: Name of App Service Environment where app or App Service plan should be created.- Returns:
- the hostingEnvironment value.
-
withHostingEnvironment
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 ValidateRequestInner object itself.
-
isXenon
Get the isXenon property: <code>true</code> if App Service plan is running as a windows container.- Returns:
- the isXenon value.
-
withIsXenon
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 ValidateRequestInner object itself.
-
containerRegistryBaseUrl
Get the containerRegistryBaseUrl property: Base URL of the container registry.- Returns:
- the containerRegistryBaseUrl value.
-
withContainerRegistryBaseUrl
Set the containerRegistryBaseUrl property: Base URL of the container registry.- Parameters:
containerRegistryBaseUrl- the containerRegistryBaseUrl value to set.- Returns:
- the ValidateRequestInner object itself.
-
containerRegistryUsername
Get the containerRegistryUsername property: Username for to access the container registry.- Returns:
- the containerRegistryUsername value.
-
withContainerRegistryUsername
Set the containerRegistryUsername property: Username for to access the container registry.- Parameters:
containerRegistryUsername- the containerRegistryUsername value to set.- Returns:
- the ValidateRequestInner object itself.
-
containerRegistryPassword
Get the containerRegistryPassword property: Password for to access the container registry.- Returns:
- the containerRegistryPassword value.
-
withContainerRegistryPassword
Set the containerRegistryPassword property: Password for to access the container registry.- Parameters:
containerRegistryPassword- the containerRegistryPassword value to set.- Returns:
- the ValidateRequestInner object itself.
-
containerImageRepository
Get the containerImageRepository property: Repository name (image name).- Returns:
- the containerImageRepository value.
-
withContainerImageRepository
Set the containerImageRepository property: Repository name (image name).- Parameters:
containerImageRepository- the containerImageRepository value to set.- Returns:
- the ValidateRequestInner object itself.
-
containerImageTag
Get the containerImageTag property: Image tag.- Returns:
- the containerImageTag value.
-
withContainerImageTag
Set the containerImageTag property: Image tag.- Parameters:
containerImageTag- the containerImageTag value to set.- Returns:
- the ValidateRequestInner object itself.
-
containerImagePlatform
Get the containerImagePlatform property: Platform (windows or linux).- Returns:
- the containerImagePlatform value.
-
withContainerImagePlatform
Set the containerImagePlatform property: Platform (windows or linux).- Parameters:
containerImagePlatform- the containerImagePlatform value to set.- Returns:
- the ValidateRequestInner object itself.
-
appServiceEnvironment
Get the appServiceEnvironment property: App Service Environment Properties.- Returns:
- the appServiceEnvironment value.
-
withAppServiceEnvironment
public ValidateRequestInner withAppServiceEnvironment(AppServiceEnvironmentInner appServiceEnvironment) Set the appServiceEnvironment property: App Service Environment Properties.- Parameters:
appServiceEnvironment- the appServiceEnvironment value to set.- Returns:
- the ValidateRequestInner object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<ValidateRequestInner>- Throws:
IOException
-
fromJson
public static ValidateRequestInner fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of ValidateRequestInner from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of ValidateRequestInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException- If the deserialized JSON object was missing any required properties.IOException- If an error occurs while reading the ValidateRequestInner.
-