com.azure.resourcemanager.appplatform.models.AppResourceProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-resourcemanager-appplatform Show documentation
Show all versions of azure-resourcemanager-appplatform Show documentation
This package contains Microsoft Azure App Platform Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.appplatform.models;
import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import java.util.Map;
/** App resource properties payload. */
@Fluent
public final class AppResourceProperties {
/*
* Indicates whether the App exposes public endpoint
*/
@JsonProperty(value = "public")
private Boolean publicProperty;
/*
* URL of the App
*/
@JsonProperty(value = "url", access = JsonProperty.Access.WRITE_ONLY)
private String url;
/*
* Collection of addons
*/
@JsonProperty(value = "addonConfigs")
@JsonInclude(value = JsonInclude.Include.NON_NULL, content = JsonInclude.Include.ALWAYS)
private Map> addonConfigs;
/*
* Provisioning state of the App
*/
@JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
private AppResourceProvisioningState provisioningState;
/*
* Fully qualified dns Name.
*/
@JsonProperty(value = "fqdn")
private String fqdn;
/*
* Indicate if only https is allowed.
*/
@JsonProperty(value = "httpsOnly")
private Boolean httpsOnly;
/*
* Temporary disk settings
*/
@JsonProperty(value = "temporaryDisk")
private TemporaryDisk temporaryDisk;
/*
* Persistent disk settings
*/
@JsonProperty(value = "persistentDisk")
private PersistentDisk persistentDisk;
/*
* Indicate if end to end TLS is enabled.
*/
@JsonProperty(value = "enableEndToEndTLS")
private Boolean enableEndToEndTls;
/*
* Collection of loaded certificates
*/
@JsonProperty(value = "loadedCertificates")
private List loadedCertificates;
/**
* Get the publicProperty property: Indicates whether the App exposes public endpoint.
*
* @return the publicProperty value.
*/
public Boolean publicProperty() {
return this.publicProperty;
}
/**
* Set the publicProperty property: Indicates whether the App exposes public endpoint.
*
* @param publicProperty the publicProperty value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withPublicProperty(Boolean publicProperty) {
this.publicProperty = publicProperty;
return this;
}
/**
* Get the url property: URL of the App.
*
* @return the url value.
*/
public String url() {
return this.url;
}
/**
* Get the addonConfigs property: Collection of addons.
*
* @return the addonConfigs value.
*/
public Map> addonConfigs() {
return this.addonConfigs;
}
/**
* Set the addonConfigs property: Collection of addons.
*
* @param addonConfigs the addonConfigs value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withAddonConfigs(Map> addonConfigs) {
this.addonConfigs = addonConfigs;
return this;
}
/**
* Get the provisioningState property: Provisioning state of the App.
*
* @return the provisioningState value.
*/
public AppResourceProvisioningState provisioningState() {
return this.provisioningState;
}
/**
* Get the fqdn property: Fully qualified dns Name.
*
* @return the fqdn value.
*/
public String fqdn() {
return this.fqdn;
}
/**
* Set the fqdn property: Fully qualified dns Name.
*
* @param fqdn the fqdn value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withFqdn(String fqdn) {
this.fqdn = fqdn;
return this;
}
/**
* Get the httpsOnly property: Indicate if only https is allowed.
*
* @return the httpsOnly value.
*/
public Boolean httpsOnly() {
return this.httpsOnly;
}
/**
* Set the httpsOnly property: Indicate if only https is allowed.
*
* @param httpsOnly the httpsOnly value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withHttpsOnly(Boolean httpsOnly) {
this.httpsOnly = httpsOnly;
return this;
}
/**
* Get the temporaryDisk property: Temporary disk settings.
*
* @return the temporaryDisk value.
*/
public TemporaryDisk temporaryDisk() {
return this.temporaryDisk;
}
/**
* Set the temporaryDisk property: Temporary disk settings.
*
* @param temporaryDisk the temporaryDisk value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withTemporaryDisk(TemporaryDisk temporaryDisk) {
this.temporaryDisk = temporaryDisk;
return this;
}
/**
* Get the persistentDisk property: Persistent disk settings.
*
* @return the persistentDisk value.
*/
public PersistentDisk persistentDisk() {
return this.persistentDisk;
}
/**
* Set the persistentDisk property: Persistent disk settings.
*
* @param persistentDisk the persistentDisk value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withPersistentDisk(PersistentDisk persistentDisk) {
this.persistentDisk = persistentDisk;
return this;
}
/**
* Get the enableEndToEndTls property: Indicate if end to end TLS is enabled.
*
* @return the enableEndToEndTls value.
*/
public Boolean enableEndToEndTls() {
return this.enableEndToEndTls;
}
/**
* Set the enableEndToEndTls property: Indicate if end to end TLS is enabled.
*
* @param enableEndToEndTls the enableEndToEndTls value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withEnableEndToEndTls(Boolean enableEndToEndTls) {
this.enableEndToEndTls = enableEndToEndTls;
return this;
}
/**
* Get the loadedCertificates property: Collection of loaded certificates.
*
* @return the loadedCertificates value.
*/
public List loadedCertificates() {
return this.loadedCertificates;
}
/**
* Set the loadedCertificates property: Collection of loaded certificates.
*
* @param loadedCertificates the loadedCertificates value to set.
* @return the AppResourceProperties object itself.
*/
public AppResourceProperties withLoadedCertificates(List loadedCertificates) {
this.loadedCertificates = loadedCertificates;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (temporaryDisk() != null) {
temporaryDisk().validate();
}
if (persistentDisk() != null) {
persistentDisk().validate();
}
if (loadedCertificates() != null) {
loadedCertificates().forEach(e -> e.validate());
}
}
}