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

com.pulumi.azurenative.notificationhubs.outputs.IpRuleResponse Maven / Gradle / Ivy

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

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class IpRuleResponse {
    /**
     * @return IP mask.
     * 
     */
    private String ipMask;
    /**
     * @return List of access rights.
     * 
     */
    private List rights;

    private IpRuleResponse() {}
    /**
     * @return IP mask.
     * 
     */
    public String ipMask() {
        return this.ipMask;
    }
    /**
     * @return List of access rights.
     * 
     */
    public List rights() {
        return this.rights;
    }

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

    public static Builder builder(IpRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String ipMask;
        private List rights;
        public Builder() {}
        public Builder(IpRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.ipMask = defaults.ipMask;
    	      this.rights = defaults.rights;
        }

        @CustomType.Setter
        public Builder ipMask(String ipMask) {
            if (ipMask == null) {
              throw new MissingRequiredPropertyException("IpRuleResponse", "ipMask");
            }
            this.ipMask = ipMask;
            return this;
        }
        @CustomType.Setter
        public Builder rights(List rights) {
            if (rights == null) {
              throw new MissingRequiredPropertyException("IpRuleResponse", "rights");
            }
            this.rights = rights;
            return this;
        }
        public Builder rights(String... rights) {
            return rights(List.of(rights));
        }
        public IpRuleResponse build() {
            final var _resultValue = new IpRuleResponse();
            _resultValue.ipMask = ipMask;
            _resultValue.rights = rights;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy