com.pulumi.azurenative.networkcloud.outputs.EndpointDependencyResponse 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.networkcloud.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Double;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class EndpointDependencyResponse {
/**
* @return The domain name of the dependency.
*
*/
private String domainName;
/**
* @return The port of this endpoint.
*
*/
private @Nullable Double port;
private EndpointDependencyResponse() {}
/**
* @return The domain name of the dependency.
*
*/
public String domainName() {
return this.domainName;
}
/**
* @return The port of this endpoint.
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(EndpointDependencyResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String domainName;
private @Nullable Double port;
public Builder() {}
public Builder(EndpointDependencyResponse defaults) {
Objects.requireNonNull(defaults);
this.domainName = defaults.domainName;
this.port = defaults.port;
}
@CustomType.Setter
public Builder domainName(String domainName) {
if (domainName == null) {
throw new MissingRequiredPropertyException("EndpointDependencyResponse", "domainName");
}
this.domainName = domainName;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Double port) {
this.port = port;
return this;
}
public EndpointDependencyResponse build() {
final var _resultValue = new EndpointDependencyResponse();
_resultValue.domainName = domainName;
_resultValue.port = port;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy