com.pulumi.kubernetes.apiregistration.v1.outputs.ServiceReference Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kubernetes Show documentation
Show all versions of kubernetes Show documentation
A Pulumi package for creating and managing Kubernetes 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.kubernetes.apiregistration.v1.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ServiceReference {
/**
* @return Name is the name of the service
*
*/
private @Nullable String name;
/**
* @return Namespace is the namespace of the service
*
*/
private @Nullable String namespace;
/**
* @return If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
*
*/
private @Nullable Integer port;
private ServiceReference() {}
/**
* @return Name is the name of the service
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Namespace is the namespace of the service
*
*/
public Optional namespace() {
return Optional.ofNullable(this.namespace);
}
/**
* @return If specified, the port on the service that hosting webhook. Default to 443 for backward compatibility. `port` should be a valid port number (1-65535, inclusive).
*
*/
public Optional port() {
return Optional.ofNullable(this.port);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ServiceReference defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String name;
private @Nullable String namespace;
private @Nullable Integer port;
public Builder() {}
public Builder(ServiceReference defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.namespace = defaults.namespace;
this.port = defaults.port;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder namespace(@Nullable String namespace) {
this.namespace = namespace;
return this;
}
@CustomType.Setter
public Builder port(@Nullable Integer port) {
this.port = port;
return this;
}
public ServiceReference build() {
final var _resultValue = new ServiceReference();
_resultValue.name = name;
_resultValue.namespace = namespace;
_resultValue.port = port;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy