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

com.pulumi.googlenative.healthcare.v1.outputs.GoogleCloudHealthcareV1ConsentPolicyResponse 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.googlenative.healthcare.v1.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.googlenative.healthcare.v1.outputs.AttributeResponse;
import com.pulumi.googlenative.healthcare.v1.outputs.ExprResponse;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GoogleCloudHealthcareV1ConsentPolicyResponse {
    /**
     * @return The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have `IN` operator as well as at most 10 logical operators that are limited to `AND` (`&&`), `OR` (`||`).
     * 
     */
    private ExprResponse authorizationRule;
    /**
     * @return The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
     * 
     */
    private List resourceAttributes;

    private GoogleCloudHealthcareV1ConsentPolicyResponse() {}
    /**
     * @return The request conditions to meet to grant access. In addition to any supported comparison operators, authorization rules may have `IN` operator as well as at most 10 logical operators that are limited to `AND` (`&&`), `OR` (`||`).
     * 
     */
    public ExprResponse authorizationRule() {
        return this.authorizationRule;
    }
    /**
     * @return The resources that this policy applies to. A resource is a match if it matches all the attributes listed here. If empty, this policy applies to all User data mappings for the given user.
     * 
     */
    public List resourceAttributes() {
        return this.resourceAttributes;
    }

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

    public static Builder builder(GoogleCloudHealthcareV1ConsentPolicyResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private ExprResponse authorizationRule;
        private List resourceAttributes;
        public Builder() {}
        public Builder(GoogleCloudHealthcareV1ConsentPolicyResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.authorizationRule = defaults.authorizationRule;
    	      this.resourceAttributes = defaults.resourceAttributes;
        }

        @CustomType.Setter
        public Builder authorizationRule(ExprResponse authorizationRule) {
            this.authorizationRule = Objects.requireNonNull(authorizationRule);
            return this;
        }
        @CustomType.Setter
        public Builder resourceAttributes(List resourceAttributes) {
            this.resourceAttributes = Objects.requireNonNull(resourceAttributes);
            return this;
        }
        public Builder resourceAttributes(AttributeResponse... resourceAttributes) {
            return resourceAttributes(List.of(resourceAttributes));
        }
        public GoogleCloudHealthcareV1ConsentPolicyResponse build() {
            final var o = new GoogleCloudHealthcareV1ConsentPolicyResponse();
            o.authorizationRule = authorizationRule;
            o.resourceAttributes = resourceAttributes;
            return o;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy