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

com.pulumi.azurenative.iotoperations.outputs.StateStoreResourceRuleResponse 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.azurenative.iotoperations.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 StateStoreResourceRuleResponse {
    /**
     * @return Allowed keyTypes pattern, string, binary. The key type used for matching, for example pattern tries to match the key to a glob-style pattern and string checks key is equal to value provided in keys.
     * 
     */
    private String keyType;
    /**
     * @return Give access to state store keys for the corresponding principals defined. When key type is pattern set glob-style pattern (e.g., '*', 'clients/*').
     * 
     */
    private List keys;
    /**
     * @return Give access for `Read`, `Write` and `ReadWrite` access level.
     * 
     */
    private String method;

    private StateStoreResourceRuleResponse() {}
    /**
     * @return Allowed keyTypes pattern, string, binary. The key type used for matching, for example pattern tries to match the key to a glob-style pattern and string checks key is equal to value provided in keys.
     * 
     */
    public String keyType() {
        return this.keyType;
    }
    /**
     * @return Give access to state store keys for the corresponding principals defined. When key type is pattern set glob-style pattern (e.g., '*', 'clients/*').
     * 
     */
    public List keys() {
        return this.keys;
    }
    /**
     * @return Give access for `Read`, `Write` and `ReadWrite` access level.
     * 
     */
    public String method() {
        return this.method;
    }

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

    public static Builder builder(StateStoreResourceRuleResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String keyType;
        private List keys;
        private String method;
        public Builder() {}
        public Builder(StateStoreResourceRuleResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.keyType = defaults.keyType;
    	      this.keys = defaults.keys;
    	      this.method = defaults.method;
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy