com.pulumi.azurenative.cdn.outputs.TargetEndpointResponse 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.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class TargetEndpointResponse {
/**
* @return The Ports to be allowed for the FQDN.
*
*/
private @Nullable List ports;
/**
* @return The FQDN for traffic endpoint.
*
*/
private @Nullable String targetFqdn;
private TargetEndpointResponse() {}
/**
* @return The Ports to be allowed for the FQDN.
*
*/
public List ports() {
return this.ports == null ? List.of() : this.ports;
}
/**
* @return The FQDN for traffic endpoint.
*
*/
public Optional targetFqdn() {
return Optional.ofNullable(this.targetFqdn);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TargetEndpointResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable List ports;
private @Nullable String targetFqdn;
public Builder() {}
public Builder(TargetEndpointResponse defaults) {
Objects.requireNonNull(defaults);
this.ports = defaults.ports;
this.targetFqdn = defaults.targetFqdn;
}
@CustomType.Setter
public Builder ports(@Nullable List ports) {
this.ports = ports;
return this;
}
public Builder ports(Integer... ports) {
return ports(List.of(ports));
}
@CustomType.Setter
public Builder targetFqdn(@Nullable String targetFqdn) {
this.targetFqdn = targetFqdn;
return this;
}
public TargetEndpointResponse build() {
final var _resultValue = new TargetEndpointResponse();
_resultValue.ports = ports;
_resultValue.targetFqdn = targetFqdn;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy