Copyright (c) Microsoft Corporation. All rights reserved. Licensed under the MIT License. See License.txt in the project root for license information. Code generated by Microsoft (R) AutoRest Code Generator.
/** * Copyright (c) Microsoft Corporation. All rights reserved. * Licensed under the MIT License. See License.txt in the project root for * license information. * * Code generated by Microsoft (R) AutoRest Code Generator. */
package com.microsoft.azure.management.appservice; import com.fasterxml.jackson.annotation.JsonProperty; import com.microsoft.rest.serializer.JsonFlatten;
Resource validation request content.
/** * Resource validation request content. */
@JsonFlatten public class ValidateRequest {
Resource name to verify.
/** * Resource name to verify. */
@JsonProperty(value = "name", required = true) private String name;
Resource type used for verification. Possible values include: 'ServerFarm', 'Site'.
/** * Resource type used for verification. Possible values include: * 'ServerFarm', 'Site'. */
@JsonProperty(value = "type", required = true) private ValidateResourceTypes type;
Expected location of the resource.
/** * Expected location of the resource. */
@JsonProperty(value = "location", required = true) private String location;
ARM resource ID of an App Service plan that would host the app.
/** * ARM resource ID of an App Service plan that would host the app. */
@JsonProperty(value = "properties.serverFarmId") private String serverFarmId;
Name of the target SKU for the App Service plan.
/** * Name of the target SKU for the App Service plan. */
@JsonProperty(value = "properties.skuName") private String skuName;
<code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.
/** * &lt;code&gt;true&lt;/code&gt; if App Service plan is for Linux workers; * otherwise, &lt;code&gt;false&lt;/code&gt;. */
@JsonProperty(value = "properties.needLinuxWorkers") private Boolean needLinuxWorkers;
<code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.
/** * &lt;code&gt;true&lt;/code&gt; if App Service plan is for Spot instances; * otherwise, &lt;code&gt;false&lt;/code&gt;. */
@JsonProperty(value = "properties.isSpot") private Boolean isSpot;
Target capacity of the App Service plan (number of VMs).
/** * Target capacity of the App Service plan (number of VMs). */
@JsonProperty(value = "properties.capacity") private Integer capacity;
Name of App Service Environment where app or App Service plan should be created.
/** * Name of App Service Environment where app or App Service plan should be * created. */
@JsonProperty(value = "properties.hostingEnvironment") private String hostingEnvironment;
<code>true</code> if App Service plan is running as a windows container.
/** * &lt;code&gt;true&lt;/code&gt; if App Service plan is running as a * windows container. */
@JsonProperty(value = "properties.isXenon") private Boolean isXenon;
Base URL of the container registry.
/** * Base URL of the container registry. */
@JsonProperty(value = "properties.containerRegistryBaseUrl") private String containerRegistryBaseUrl;
Username for to access the container registry.
/** * Username for to access the container registry. */
@JsonProperty(value = "properties.containerRegistryUsername") private String containerRegistryUsername;
Password for to access the container registry.
/** * Password for to access the container registry. */
@JsonProperty(value = "properties.containerRegistryPassword") private String containerRegistryPassword;
Repository name (image name).
/** * Repository name (image name). */
@JsonProperty(value = "properties.containerImageRepository") private String containerImageRepository;
Image tag.
/** * Image tag. */
@JsonProperty(value = "properties.containerImageTag") private String containerImageTag;
Platform (windows or linux).
/** * Platform (windows or linux). */
@JsonProperty(value = "properties.containerImagePlatform") private String containerImagePlatform;
Get resource name to verify.
Returns:the name value
/** * Get resource name to verify. * * @return the name value */
public String name() { return this.name; }
Set resource name to verify.
Params:
  • name – the name value to set
Returns:the ValidateRequest object itself.
/** * Set resource name to verify. * * @param name the name value to set * @return the ValidateRequest object itself. */
public ValidateRequest withName(String name) { this.name = name; return this; }
Get resource type used for verification. Possible values include: 'ServerFarm', 'Site'.
Returns:the type value
/** * Get resource type used for verification. Possible values include: 'ServerFarm', 'Site'. * * @return the type value */
public ValidateResourceTypes type() { return this.type; }
Set resource type used for verification. Possible values include: 'ServerFarm', 'Site'.
Params:
  • type – the type value to set
Returns:the ValidateRequest object itself.
/** * Set resource type used for verification. Possible values include: 'ServerFarm', 'Site'. * * @param type the type value to set * @return the ValidateRequest object itself. */
public ValidateRequest withType(ValidateResourceTypes type) { this.type = type; return this; }
Get expected location of the resource.
Returns:the location value
/** * Get expected location of the resource. * * @return the location value */
public String location() { return this.location; }
Set expected location of the resource.
Params:
  • location – the location value to set
Returns:the ValidateRequest object itself.
/** * Set expected location of the resource. * * @param location the location value to set * @return the ValidateRequest object itself. */
public ValidateRequest withLocation(String location) { this.location = location; return this; }
Get aRM resource ID of an App Service plan that would host the app.
Returns:the serverFarmId value
/** * Get aRM resource ID of an App Service plan that would host the app. * * @return the serverFarmId value */
public String serverFarmId() { return this.serverFarmId; }
Set aRM resource ID of an App Service plan that would host the app.
Params:
  • serverFarmId – the serverFarmId value to set
Returns:the ValidateRequest object itself.
/** * Set aRM resource ID of an App Service plan that would host the app. * * @param serverFarmId the serverFarmId value to set * @return the ValidateRequest object itself. */
public ValidateRequest withServerFarmId(String serverFarmId) { this.serverFarmId = serverFarmId; return this; }
Get name of the target SKU for the App Service plan.
Returns:the skuName value
/** * Get name of the target SKU for the App Service plan. * * @return the skuName value */
public String skuName() { return this.skuName; }
Set name of the target SKU for the App Service plan.
Params:
  • skuName – the skuName value to set
Returns:the ValidateRequest object itself.
/** * Set name of the target SKU for the App Service plan. * * @param skuName the skuName value to set * @return the ValidateRequest object itself. */
public ValidateRequest withSkuName(String skuName) { this.skuName = skuName; return this; }
Get <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.
Returns:the needLinuxWorkers value
/** * Get &lt;code&gt;true&lt;/code&gt; if App Service plan is for Linux workers; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @return the needLinuxWorkers value */
public Boolean needLinuxWorkers() { return this.needLinuxWorkers; }
Set <code>true</code> if App Service plan is for Linux workers; otherwise, <code>false</code>.
Params:
  • needLinuxWorkers – the needLinuxWorkers value to set
Returns:the ValidateRequest object itself.
/** * Set &lt;code&gt;true&lt;/code&gt; if App Service plan is for Linux workers; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @param needLinuxWorkers the needLinuxWorkers value to set * @return the ValidateRequest object itself. */
public ValidateRequest withNeedLinuxWorkers(Boolean needLinuxWorkers) { this.needLinuxWorkers = needLinuxWorkers; return this; }
Get <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.
Returns:the isSpot value
/** * Get &lt;code&gt;true&lt;/code&gt; if App Service plan is for Spot instances; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @return the isSpot value */
public Boolean isSpot() { return this.isSpot; }
Set <code>true</code> if App Service plan is for Spot instances; otherwise, <code>false</code>.
Params:
  • isSpot – the isSpot value to set
Returns:the ValidateRequest object itself.
/** * Set &lt;code&gt;true&lt;/code&gt; if App Service plan is for Spot instances; otherwise, &lt;code&gt;false&lt;/code&gt;. * * @param isSpot the isSpot value to set * @return the ValidateRequest object itself. */
public ValidateRequest withIsSpot(Boolean isSpot) { this.isSpot = isSpot; return this; }
Get target capacity of the App Service plan (number of VMs).
Returns:the capacity value
/** * Get target capacity of the App Service plan (number of VMs). * * @return the capacity value */
public Integer capacity() { return this.capacity; }
Set target capacity of the App Service plan (number of VMs).
Params:
  • capacity – the capacity value to set
Returns:the ValidateRequest object itself.
/** * Set target capacity of the App Service plan (number of VMs). * * @param capacity the capacity value to set * @return the ValidateRequest object itself. */
public ValidateRequest withCapacity(Integer capacity) { this.capacity = capacity; return this; }
Get name of App Service Environment where app or App Service plan should be created.
Returns:the hostingEnvironment value
/** * Get name of App Service Environment where app or App Service plan should be created. * * @return the hostingEnvironment value */
public String hostingEnvironment() { return this.hostingEnvironment; }
Set name of App Service Environment where app or App Service plan should be created.
Params:
  • hostingEnvironment – the hostingEnvironment value to set
Returns:the ValidateRequest object itself.
/** * Set name of App Service Environment where app or App Service plan should be created. * * @param hostingEnvironment the hostingEnvironment value to set * @return the ValidateRequest object itself. */
public ValidateRequest withHostingEnvironment(String hostingEnvironment) { this.hostingEnvironment = hostingEnvironment; return this; }
Get <code>true</code> if App Service plan is running as a windows container.
Returns:the isXenon value
/** * Get &lt;code&gt;true&lt;/code&gt; if App Service plan is running as a windows container. * * @return the isXenon value */
public Boolean isXenon() { return this.isXenon; }
Set <code>true</code> if App Service plan is running as a windows container.
Params:
  • isXenon – the isXenon value to set
Returns:the ValidateRequest object itself.
/** * Set &lt;code&gt;true&lt;/code&gt; if App Service plan is running as a windows container. * * @param isXenon the isXenon value to set * @return the ValidateRequest object itself. */
public ValidateRequest withIsXenon(Boolean isXenon) { this.isXenon = isXenon; return this; }
Get base URL of the container registry.
Returns:the containerRegistryBaseUrl value
/** * Get base URL of the container registry. * * @return the containerRegistryBaseUrl value */
public String containerRegistryBaseUrl() { return this.containerRegistryBaseUrl; }
Set base URL of the container registry.
Params:
  • containerRegistryBaseUrl – the containerRegistryBaseUrl value to set
Returns:the ValidateRequest object itself.
/** * Set base URL of the container registry. * * @param containerRegistryBaseUrl the containerRegistryBaseUrl value to set * @return the ValidateRequest object itself. */
public ValidateRequest withContainerRegistryBaseUrl(String containerRegistryBaseUrl) { this.containerRegistryBaseUrl = containerRegistryBaseUrl; return this; }
Get username for to access the container registry.
Returns:the containerRegistryUsername value
/** * Get username for to access the container registry. * * @return the containerRegistryUsername value */
public String containerRegistryUsername() { return this.containerRegistryUsername; }
Set username for to access the container registry.
Params:
  • containerRegistryUsername – the containerRegistryUsername value to set
Returns:the ValidateRequest object itself.
/** * Set username for to access the container registry. * * @param containerRegistryUsername the containerRegistryUsername value to set * @return the ValidateRequest object itself. */
public ValidateRequest withContainerRegistryUsername(String containerRegistryUsername) { this.containerRegistryUsername = containerRegistryUsername; return this; }
Get password for to access the container registry.
Returns:the containerRegistryPassword value
/** * Get password for to access the container registry. * * @return the containerRegistryPassword value */
public String containerRegistryPassword() { return this.containerRegistryPassword; }
Set password for to access the container registry.
Params:
  • containerRegistryPassword – the containerRegistryPassword value to set
Returns:the ValidateRequest object itself.
/** * Set password for to access the container registry. * * @param containerRegistryPassword the containerRegistryPassword value to set * @return the ValidateRequest object itself. */
public ValidateRequest withContainerRegistryPassword(String containerRegistryPassword) { this.containerRegistryPassword = containerRegistryPassword; return this; }
Get repository name (image name).
Returns:the containerImageRepository value
/** * Get repository name (image name). * * @return the containerImageRepository value */
public String containerImageRepository() { return this.containerImageRepository; }
Set repository name (image name).
Params:
  • containerImageRepository – the containerImageRepository value to set
Returns:the ValidateRequest object itself.
/** * Set repository name (image name). * * @param containerImageRepository the containerImageRepository value to set * @return the ValidateRequest object itself. */
public ValidateRequest withContainerImageRepository(String containerImageRepository) { this.containerImageRepository = containerImageRepository; return this; }
Get image tag.
Returns:the containerImageTag value
/** * Get image tag. * * @return the containerImageTag value */
public String containerImageTag() { return this.containerImageTag; }
Set image tag.
Params:
  • containerImageTag – the containerImageTag value to set
Returns:the ValidateRequest object itself.
/** * Set image tag. * * @param containerImageTag the containerImageTag value to set * @return the ValidateRequest object itself. */
public ValidateRequest withContainerImageTag(String containerImageTag) { this.containerImageTag = containerImageTag; return this; }
Get platform (windows or linux).
Returns:the containerImagePlatform value
/** * Get platform (windows or linux). * * @return the containerImagePlatform value */
public String containerImagePlatform() { return this.containerImagePlatform; }
Set platform (windows or linux).
Params:
  • containerImagePlatform – the containerImagePlatform value to set
Returns:the ValidateRequest object itself.
/** * Set platform (windows or linux). * * @param containerImagePlatform the containerImagePlatform value to set * @return the ValidateRequest object itself. */
public ValidateRequest withContainerImagePlatform(String containerImagePlatform) { this.containerImagePlatform = containerImagePlatform; return this; } }