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

com.pulumi.azurenative.cdn.outputs.GetTunnelPolicyResult Maven / Gradle / Ivy

There is a newer version: 2.78.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.cdn.outputs;

import com.pulumi.azurenative.cdn.outputs.ActivatedResourceReferenceResponse;
import com.pulumi.azurenative.cdn.outputs.ResourceReferenceResponse;
import com.pulumi.azurenative.cdn.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetTunnelPolicyResult {
    private String deploymentStatus;
    /**
     * @return Domains referenced by this tunnel policy.
     * 
     */
    private List domains;
    /**
     * @return Resource ID.
     * 
     */
    private String id;
    /**
     * @return Resource name.
     * 
     */
    private String name;
    /**
     * @return Provisioning status
     * 
     */
    private String provisioningState;
    /**
     * @return Read only system data
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return Target Groups referenced by this tunnel policy.
     * 
     */
    private @Nullable List targetGroups;
    /**
     * @return Protocol this tunnel will use for allowing traffic to backends.
     * 
     */
    private @Nullable String tunnelType;
    /**
     * @return Resource type.
     * 
     */
    private String type;

    private GetTunnelPolicyResult() {}
    public String deploymentStatus() {
        return this.deploymentStatus;
    }
    /**
     * @return Domains referenced by this tunnel policy.
     * 
     */
    public List domains() {
        return this.domains;
    }
    /**
     * @return Resource ID.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Resource name.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return Provisioning status
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return Read only system data
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return Target Groups referenced by this tunnel policy.
     * 
     */
    public List targetGroups() {
        return this.targetGroups == null ? List.of() : this.targetGroups;
    }
    /**
     * @return Protocol this tunnel will use for allowing traffic to backends.
     * 
     */
    public Optional tunnelType() {
        return Optional.ofNullable(this.tunnelType);
    }
    /**
     * @return Resource type.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetTunnelPolicyResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String deploymentStatus;
        private List domains;
        private String id;
        private String name;
        private String provisioningState;
        private SystemDataResponse systemData;
        private @Nullable List targetGroups;
        private @Nullable String tunnelType;
        private String type;
        public Builder() {}
        public Builder(GetTunnelPolicyResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.deploymentStatus = defaults.deploymentStatus;
    	      this.domains = defaults.domains;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.targetGroups = defaults.targetGroups;
    	      this.tunnelType = defaults.tunnelType;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder deploymentStatus(String deploymentStatus) {
            if (deploymentStatus == null) {
              throw new MissingRequiredPropertyException("GetTunnelPolicyResult", "deploymentStatus");
            }
            this.deploymentStatus = deploymentStatus;
            return this;
        }
        @CustomType.Setter
        public Builder domains(List domains) {
            if (domains == null) {
              throw new MissingRequiredPropertyException("GetTunnelPolicyResult", "domains");
            }
            this.domains = domains;
            return this;
        }
        public Builder domains(ActivatedResourceReferenceResponse... domains) {
            return domains(List.of(domains));
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetTunnelPolicyResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetTunnelPolicyResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetTunnelPolicyResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetTunnelPolicyResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder targetGroups(@Nullable List targetGroups) {

            this.targetGroups = targetGroups;
            return this;
        }
        public Builder targetGroups(ResourceReferenceResponse... targetGroups) {
            return targetGroups(List.of(targetGroups));
        }
        @CustomType.Setter
        public Builder tunnelType(@Nullable String tunnelType) {

            this.tunnelType = tunnelType;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetTunnelPolicyResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetTunnelPolicyResult build() {
            final var _resultValue = new GetTunnelPolicyResult();
            _resultValue.deploymentStatus = deploymentStatus;
            _resultValue.domains = domains;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.targetGroups = targetGroups;
            _resultValue.tunnelType = tunnelType;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy