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

com.pulumi.aws.elb.inputs.LoadBalancerPolicyState Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The 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.aws.elb.inputs;

import com.pulumi.aws.elb.inputs.LoadBalancerPolicyPolicyAttributeArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class LoadBalancerPolicyState extends com.pulumi.resources.ResourceArgs {

    public static final LoadBalancerPolicyState Empty = new LoadBalancerPolicyState();

    /**
     * The load balancer on which the policy is defined.
     * 
     */
    @Import(name="loadBalancerName")
    private @Nullable Output loadBalancerName;

    /**
     * @return The load balancer on which the policy is defined.
     * 
     */
    public Optional> loadBalancerName() {
        return Optional.ofNullable(this.loadBalancerName);
    }

    /**
     * Policy attribute to apply to the policy.
     * 
     */
    @Import(name="policyAttributes")
    private @Nullable Output> policyAttributes;

    /**
     * @return Policy attribute to apply to the policy.
     * 
     */
    public Optional>> policyAttributes() {
        return Optional.ofNullable(this.policyAttributes);
    }

    /**
     * The name of the load balancer policy.
     * 
     */
    @Import(name="policyName")
    private @Nullable Output policyName;

    /**
     * @return The name of the load balancer policy.
     * 
     */
    public Optional> policyName() {
        return Optional.ofNullable(this.policyName);
    }

    /**
     * The policy type.
     * 
     */
    @Import(name="policyTypeName")
    private @Nullable Output policyTypeName;

    /**
     * @return The policy type.
     * 
     */
    public Optional> policyTypeName() {
        return Optional.ofNullable(this.policyTypeName);
    }

    private LoadBalancerPolicyState() {}

    private LoadBalancerPolicyState(LoadBalancerPolicyState $) {
        this.loadBalancerName = $.loadBalancerName;
        this.policyAttributes = $.policyAttributes;
        this.policyName = $.policyName;
        this.policyTypeName = $.policyTypeName;
    }

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

    public static final class Builder {
        private LoadBalancerPolicyState $;

        public Builder() {
            $ = new LoadBalancerPolicyState();
        }

        public Builder(LoadBalancerPolicyState defaults) {
            $ = new LoadBalancerPolicyState(Objects.requireNonNull(defaults));
        }

        /**
         * @param loadBalancerName The load balancer on which the policy is defined.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerName(@Nullable Output loadBalancerName) {
            $.loadBalancerName = loadBalancerName;
            return this;
        }

        /**
         * @param loadBalancerName The load balancer on which the policy is defined.
         * 
         * @return builder
         * 
         */
        public Builder loadBalancerName(String loadBalancerName) {
            return loadBalancerName(Output.of(loadBalancerName));
        }

        /**
         * @param policyAttributes Policy attribute to apply to the policy.
         * 
         * @return builder
         * 
         */
        public Builder policyAttributes(@Nullable Output> policyAttributes) {
            $.policyAttributes = policyAttributes;
            return this;
        }

        /**
         * @param policyAttributes Policy attribute to apply to the policy.
         * 
         * @return builder
         * 
         */
        public Builder policyAttributes(List policyAttributes) {
            return policyAttributes(Output.of(policyAttributes));
        }

        /**
         * @param policyAttributes Policy attribute to apply to the policy.
         * 
         * @return builder
         * 
         */
        public Builder policyAttributes(LoadBalancerPolicyPolicyAttributeArgs... policyAttributes) {
            return policyAttributes(List.of(policyAttributes));
        }

        /**
         * @param policyName The name of the load balancer policy.
         * 
         * @return builder
         * 
         */
        public Builder policyName(@Nullable Output policyName) {
            $.policyName = policyName;
            return this;
        }

        /**
         * @param policyName The name of the load balancer policy.
         * 
         * @return builder
         * 
         */
        public Builder policyName(String policyName) {
            return policyName(Output.of(policyName));
        }

        /**
         * @param policyTypeName The policy type.
         * 
         * @return builder
         * 
         */
        public Builder policyTypeName(@Nullable Output policyTypeName) {
            $.policyTypeName = policyTypeName;
            return this;
        }

        /**
         * @param policyTypeName The policy type.
         * 
         * @return builder
         * 
         */
        public Builder policyTypeName(String policyTypeName) {
            return policyTypeName(Output.of(policyTypeName));
        }

        public LoadBalancerPolicyState build() {
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy