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

com.pulumi.azurenative.awsconnector.outputs.PortResponse Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** 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.awsconnector.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 PortResponse {
    /**
     * @return Access Direction for Protocol of the Instance(inbound/outbound).
     * 
     */
    private @Nullable String accessDirection;
    /**
     * @return Access From Protocol of the Instance.
     * 
     */
    private @Nullable String accessFrom;
    /**
     * @return Access Type Protocol of the Instance.
     * 
     */
    private @Nullable String accessType;
    /**
     * @return cidr List Aliases
     * 
     */
    private @Nullable List cidrListAliases;
    /**
     * @return Property cidrs
     * 
     */
    private @Nullable List cidrs;
    /**
     * @return CommonName for Protocol of the Instance.
     * 
     */
    private @Nullable String commonName;
    /**
     * @return From Port of the Instance.
     * 
     */
    private @Nullable Integer fromPort;
    /**
     * @return IPv6 Cidrs
     * 
     */
    private @Nullable List ipv6Cidrs;
    /**
     * @return Port Protocol of the Instance.
     * 
     */
    private @Nullable String protocol;
    /**
     * @return To Port of the Instance.
     * 
     */
    private @Nullable Integer toPort;

    private PortResponse() {}
    /**
     * @return Access Direction for Protocol of the Instance(inbound/outbound).
     * 
     */
    public Optional accessDirection() {
        return Optional.ofNullable(this.accessDirection);
    }
    /**
     * @return Access From Protocol of the Instance.
     * 
     */
    public Optional accessFrom() {
        return Optional.ofNullable(this.accessFrom);
    }
    /**
     * @return Access Type Protocol of the Instance.
     * 
     */
    public Optional accessType() {
        return Optional.ofNullable(this.accessType);
    }
    /**
     * @return cidr List Aliases
     * 
     */
    public List cidrListAliases() {
        return this.cidrListAliases == null ? List.of() : this.cidrListAliases;
    }
    /**
     * @return Property cidrs
     * 
     */
    public List cidrs() {
        return this.cidrs == null ? List.of() : this.cidrs;
    }
    /**
     * @return CommonName for Protocol of the Instance.
     * 
     */
    public Optional commonName() {
        return Optional.ofNullable(this.commonName);
    }
    /**
     * @return From Port of the Instance.
     * 
     */
    public Optional fromPort() {
        return Optional.ofNullable(this.fromPort);
    }
    /**
     * @return IPv6 Cidrs
     * 
     */
    public List ipv6Cidrs() {
        return this.ipv6Cidrs == null ? List.of() : this.ipv6Cidrs;
    }
    /**
     * @return Port Protocol of the Instance.
     * 
     */
    public Optional protocol() {
        return Optional.ofNullable(this.protocol);
    }
    /**
     * @return To Port of the Instance.
     * 
     */
    public Optional toPort() {
        return Optional.ofNullable(this.toPort);
    }

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

    public static Builder builder(PortResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String accessDirection;
        private @Nullable String accessFrom;
        private @Nullable String accessType;
        private @Nullable List cidrListAliases;
        private @Nullable List cidrs;
        private @Nullable String commonName;
        private @Nullable Integer fromPort;
        private @Nullable List ipv6Cidrs;
        private @Nullable String protocol;
        private @Nullable Integer toPort;
        public Builder() {}
        public Builder(PortResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.accessDirection = defaults.accessDirection;
    	      this.accessFrom = defaults.accessFrom;
    	      this.accessType = defaults.accessType;
    	      this.cidrListAliases = defaults.cidrListAliases;
    	      this.cidrs = defaults.cidrs;
    	      this.commonName = defaults.commonName;
    	      this.fromPort = defaults.fromPort;
    	      this.ipv6Cidrs = defaults.ipv6Cidrs;
    	      this.protocol = defaults.protocol;
    	      this.toPort = defaults.toPort;
        }

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

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

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

            this.accessType = accessType;
            return this;
        }
        @CustomType.Setter
        public Builder cidrListAliases(@Nullable List cidrListAliases) {

            this.cidrListAliases = cidrListAliases;
            return this;
        }
        public Builder cidrListAliases(String... cidrListAliases) {
            return cidrListAliases(List.of(cidrListAliases));
        }
        @CustomType.Setter
        public Builder cidrs(@Nullable List cidrs) {

            this.cidrs = cidrs;
            return this;
        }
        public Builder cidrs(String... cidrs) {
            return cidrs(List.of(cidrs));
        }
        @CustomType.Setter
        public Builder commonName(@Nullable String commonName) {

            this.commonName = commonName;
            return this;
        }
        @CustomType.Setter
        public Builder fromPort(@Nullable Integer fromPort) {

            this.fromPort = fromPort;
            return this;
        }
        @CustomType.Setter
        public Builder ipv6Cidrs(@Nullable List ipv6Cidrs) {

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

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

            this.toPort = toPort;
            return this;
        }
        public PortResponse build() {
            final var _resultValue = new PortResponse();
            _resultValue.accessDirection = accessDirection;
            _resultValue.accessFrom = accessFrom;
            _resultValue.accessType = accessType;
            _resultValue.cidrListAliases = cidrListAliases;
            _resultValue.cidrs = cidrs;
            _resultValue.commonName = commonName;
            _resultValue.fromPort = fromPort;
            _resultValue.ipv6Cidrs = ipv6Cidrs;
            _resultValue.protocol = protocol;
            _resultValue.toPort = toPort;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy