com.pulumi.azurenative.cdn.outputs.GetAFDOriginResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.cdn.outputs;
import com.pulumi.azurenative.cdn.outputs.ResourceReferenceResponse;
import com.pulumi.azurenative.cdn.outputs.SharedPrivateLinkResourcePropertiesResponse;
import com.pulumi.azurenative.cdn.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetAFDOriginResult {
/**
* @return Resource reference to the Azure origin resource.
*
*/
private @Nullable ResourceReferenceResponse azureOrigin;
private String deploymentStatus;
/**
* @return Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.
*
*/
private @Nullable String enabledState;
/**
* @return Whether to enable certificate name check at origin level
*
*/
private @Nullable Boolean enforceCertificateNameCheck;
/**
* @return The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.
*
*/
private String hostName;
/**
* @return The value of the HTTP port. Must be between 1 and 65535.
*
*/
private @Nullable Integer httpPort;
/**
* @return The value of the HTTPS port. Must be between 1 and 65535.
*
*/
private @Nullable Integer httpsPort;
/**
* @return Resource ID.
*
*/
private String id;
/**
* @return Resource name.
*
*/
private String name;
/**
* @return The name of the origin group which contains this origin.
*
*/
private String originGroupName;
/**
* @return The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint
*
*/
private @Nullable String originHostHeader;
/**
* @return Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5
*
*/
private @Nullable Integer priority;
/**
* @return Provisioning status
*
*/
private String provisioningState;
/**
* @return The properties of the private link resource for private origin.
*
*/
private @Nullable SharedPrivateLinkResourcePropertiesResponse sharedPrivateLinkResource;
/**
* @return Read only system data
*
*/
private SystemDataResponse systemData;
/**
* @return Resource type.
*
*/
private String type;
/**
* @return Weight of the origin in given origin group for load balancing. Must be between 1 and 1000
*
*/
private @Nullable Integer weight;
private GetAFDOriginResult() {}
/**
* @return Resource reference to the Azure origin resource.
*
*/
public Optional azureOrigin() {
return Optional.ofNullable(this.azureOrigin);
}
public String deploymentStatus() {
return this.deploymentStatus;
}
/**
* @return Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.
*
*/
public Optional enabledState() {
return Optional.ofNullable(this.enabledState);
}
/**
* @return Whether to enable certificate name check at origin level
*
*/
public Optional enforceCertificateNameCheck() {
return Optional.ofNullable(this.enforceCertificateNameCheck);
}
/**
* @return The address of the origin. Domain names, IPv4 addresses, and IPv6 addresses are supported.This should be unique across all origins in an endpoint.
*
*/
public String hostName() {
return this.hostName;
}
/**
* @return The value of the HTTP port. Must be between 1 and 65535.
*
*/
public Optional httpPort() {
return Optional.ofNullable(this.httpPort);
}
/**
* @return The value of the HTTPS port. Must be between 1 and 65535.
*
*/
public Optional httpsPort() {
return Optional.ofNullable(this.httpsPort);
}
/**
* @return Resource ID.
*
*/
public String id() {
return this.id;
}
/**
* @return Resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return The name of the origin group which contains this origin.
*
*/
public String originGroupName() {
return this.originGroupName;
}
/**
* @return The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint
*
*/
public Optional originHostHeader() {
return Optional.ofNullable(this.originHostHeader);
}
/**
* @return Priority of origin in given origin group for load balancing. Higher priorities will not be used for load balancing if any lower priority origin is healthy.Must be between 1 and 5
*
*/
public Optional priority() {
return Optional.ofNullable(this.priority);
}
/**
* @return Provisioning status
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return The properties of the private link resource for private origin.
*
*/
public Optional sharedPrivateLinkResource() {
return Optional.ofNullable(this.sharedPrivateLinkResource);
}
/**
* @return Read only system data
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return Weight of the origin in given origin group for load balancing. Must be between 1 and 1000
*
*/
public Optional weight() {
return Optional.ofNullable(this.weight);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetAFDOriginResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable ResourceReferenceResponse azureOrigin;
private String deploymentStatus;
private @Nullable String enabledState;
private @Nullable Boolean enforceCertificateNameCheck;
private String hostName;
private @Nullable Integer httpPort;
private @Nullable Integer httpsPort;
private String id;
private String name;
private String originGroupName;
private @Nullable String originHostHeader;
private @Nullable Integer priority;
private String provisioningState;
private @Nullable SharedPrivateLinkResourcePropertiesResponse sharedPrivateLinkResource;
private SystemDataResponse systemData;
private String type;
private @Nullable Integer weight;
public Builder() {}
public Builder(GetAFDOriginResult defaults) {
Objects.requireNonNull(defaults);
this.azureOrigin = defaults.azureOrigin;
this.deploymentStatus = defaults.deploymentStatus;
this.enabledState = defaults.enabledState;
this.enforceCertificateNameCheck = defaults.enforceCertificateNameCheck;
this.hostName = defaults.hostName;
this.httpPort = defaults.httpPort;
this.httpsPort = defaults.httpsPort;
this.id = defaults.id;
this.name = defaults.name;
this.originGroupName = defaults.originGroupName;
this.originHostHeader = defaults.originHostHeader;
this.priority = defaults.priority;
this.provisioningState = defaults.provisioningState;
this.sharedPrivateLinkResource = defaults.sharedPrivateLinkResource;
this.systemData = defaults.systemData;
this.type = defaults.type;
this.weight = defaults.weight;
}
@CustomType.Setter
public Builder azureOrigin(@Nullable ResourceReferenceResponse azureOrigin) {
this.azureOrigin = azureOrigin;
return this;
}
@CustomType.Setter
public Builder deploymentStatus(String deploymentStatus) {
if (deploymentStatus == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "deploymentStatus");
}
this.deploymentStatus = deploymentStatus;
return this;
}
@CustomType.Setter
public Builder enabledState(@Nullable String enabledState) {
this.enabledState = enabledState;
return this;
}
@CustomType.Setter
public Builder enforceCertificateNameCheck(@Nullable Boolean enforceCertificateNameCheck) {
this.enforceCertificateNameCheck = enforceCertificateNameCheck;
return this;
}
@CustomType.Setter
public Builder hostName(String hostName) {
if (hostName == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "hostName");
}
this.hostName = hostName;
return this;
}
@CustomType.Setter
public Builder httpPort(@Nullable Integer httpPort) {
this.httpPort = httpPort;
return this;
}
@CustomType.Setter
public Builder httpsPort(@Nullable Integer httpsPort) {
this.httpsPort = httpsPort;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder originGroupName(String originGroupName) {
if (originGroupName == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "originGroupName");
}
this.originGroupName = originGroupName;
return this;
}
@CustomType.Setter
public Builder originHostHeader(@Nullable String originHostHeader) {
this.originHostHeader = originHostHeader;
return this;
}
@CustomType.Setter
public Builder priority(@Nullable Integer priority) {
this.priority = priority;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder sharedPrivateLinkResource(@Nullable SharedPrivateLinkResourcePropertiesResponse sharedPrivateLinkResource) {
this.sharedPrivateLinkResource = sharedPrivateLinkResource;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetAFDOriginResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder weight(@Nullable Integer weight) {
this.weight = weight;
return this;
}
public GetAFDOriginResult build() {
final var _resultValue = new GetAFDOriginResult();
_resultValue.azureOrigin = azureOrigin;
_resultValue.deploymentStatus = deploymentStatus;
_resultValue.enabledState = enabledState;
_resultValue.enforceCertificateNameCheck = enforceCertificateNameCheck;
_resultValue.hostName = hostName;
_resultValue.httpPort = httpPort;
_resultValue.httpsPort = httpsPort;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.originGroupName = originGroupName;
_resultValue.originHostHeader = originHostHeader;
_resultValue.priority = priority;
_resultValue.provisioningState = provisioningState;
_resultValue.sharedPrivateLinkResource = sharedPrivateLinkResource;
_resultValue.systemData = systemData;
_resultValue.type = type;
_resultValue.weight = weight;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy