All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.scm.outputs.IpsecTunnelAutoKeyProxyId Maven / Gradle / Ivy

// *** 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.scm.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.scm.outputs.IpsecTunnelAutoKeyProxyIdProtocol;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class IpsecTunnelAutoKeyProxyId {
    /**
     * @return The Local param.
     * 
     */
    private @Nullable String local;
    /**
     * @return The Name param.
     * 
     */
    private String name;
    /**
     * @return The Protocol param.
     * 
     */
    private @Nullable IpsecTunnelAutoKeyProxyIdProtocol protocol;
    /**
     * @return The Remote param.
     * 
     */
    private @Nullable String remote;

    private IpsecTunnelAutoKeyProxyId() {}
    /**
     * @return The Local param.
     * 
     */
    public Optional local() {
        return Optional.ofNullable(this.local);
    }
    /**
     * @return The Name param.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The Protocol param.
     * 
     */
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }
    /**
     * @return The Remote param.
     * 
     */
    public Optional remote() {
        return Optional.ofNullable(this.remote);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(IpsecTunnelAutoKeyProxyId defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String local;
        private String name;
        private @Nullable IpsecTunnelAutoKeyProxyIdProtocol protocol;
        private @Nullable String remote;
        public Builder() {}
        public Builder(IpsecTunnelAutoKeyProxyId defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.local = defaults.local;
    	      this.name = defaults.name;
    	      this.protocol = defaults.protocol;
    	      this.remote = defaults.remote;
        }

        @CustomType.Setter
        public Builder local(@Nullable String local) {

            this.local = local;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("IpsecTunnelAutoKeyProxyId", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder protocol(@Nullable IpsecTunnelAutoKeyProxyIdProtocol protocol) {

            this.protocol = protocol;
            return this;
        }
        @CustomType.Setter
        public Builder remote(@Nullable String remote) {

            this.remote = remote;
            return this;
        }
        public IpsecTunnelAutoKeyProxyId build() {
            final var _resultValue = new IpsecTunnelAutoKeyProxyId();
            _resultValue.local = local;
            _resultValue.name = name;
            _resultValue.protocol = protocol;
            _resultValue.remote = remote;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy