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

com.pulumi.azurenative.notificationhubs.outputs.SharedAccessAuthorizationRulePropertiesResponse 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.notificationhubs.outputs;

import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class SharedAccessAuthorizationRulePropertiesResponse {
    /**
     * @return Gets a string that describes the claim type
     * 
     */
    private String claimType;
    /**
     * @return Gets a string that describes the claim value
     * 
     */
    private String claimValue;
    /**
     * @return Gets the created time for this rule
     * 
     */
    private String createdTime;
    /**
     * @return Gets a string that describes the authorization rule.
     * 
     */
    private String keyName;
    /**
     * @return Gets the last modified time for this rule
     * 
     */
    private String modifiedTime;
    /**
     * @return Gets a base64-encoded 256-bit primary key for signing and
     * validating the SAS token.
     * 
     */
    private @Nullable String primaryKey;
    /**
     * @return Gets the revision number for the rule
     * 
     */
    private Integer revision;
    /**
     * @return Gets or sets the rights associated with the rule.
     * 
     */
    private List rights;
    /**
     * @return Gets a base64-encoded 256-bit primary key for signing and
     * validating the SAS token.
     * 
     */
    private @Nullable String secondaryKey;

    private SharedAccessAuthorizationRulePropertiesResponse() {}
    /**
     * @return Gets a string that describes the claim type
     * 
     */
    public String claimType() {
        return this.claimType;
    }
    /**
     * @return Gets a string that describes the claim value
     * 
     */
    public String claimValue() {
        return this.claimValue;
    }
    /**
     * @return Gets the created time for this rule
     * 
     */
    public String createdTime() {
        return this.createdTime;
    }
    /**
     * @return Gets a string that describes the authorization rule.
     * 
     */
    public String keyName() {
        return this.keyName;
    }
    /**
     * @return Gets the last modified time for this rule
     * 
     */
    public String modifiedTime() {
        return this.modifiedTime;
    }
    /**
     * @return Gets a base64-encoded 256-bit primary key for signing and
     * validating the SAS token.
     * 
     */
    public Optional primaryKey() {
        return Optional.ofNullable(this.primaryKey);
    }
    /**
     * @return Gets the revision number for the rule
     * 
     */
    public Integer revision() {
        return this.revision;
    }
    /**
     * @return Gets or sets the rights associated with the rule.
     * 
     */
    public List rights() {
        return this.rights;
    }
    /**
     * @return Gets a base64-encoded 256-bit primary key for signing and
     * validating the SAS token.
     * 
     */
    public Optional secondaryKey() {
        return Optional.ofNullable(this.secondaryKey);
    }

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

    public static Builder builder(SharedAccessAuthorizationRulePropertiesResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String claimType;
        private String claimValue;
        private String createdTime;
        private String keyName;
        private String modifiedTime;
        private @Nullable String primaryKey;
        private Integer revision;
        private List rights;
        private @Nullable String secondaryKey;
        public Builder() {}
        public Builder(SharedAccessAuthorizationRulePropertiesResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.claimType = defaults.claimType;
    	      this.claimValue = defaults.claimValue;
    	      this.createdTime = defaults.createdTime;
    	      this.keyName = defaults.keyName;
    	      this.modifiedTime = defaults.modifiedTime;
    	      this.primaryKey = defaults.primaryKey;
    	      this.revision = defaults.revision;
    	      this.rights = defaults.rights;
    	      this.secondaryKey = defaults.secondaryKey;
        }

        @CustomType.Setter
        public Builder claimType(String claimType) {
            if (claimType == null) {
              throw new MissingRequiredPropertyException("SharedAccessAuthorizationRulePropertiesResponse", "claimType");
            }
            this.claimType = claimType;
            return this;
        }
        @CustomType.Setter
        public Builder claimValue(String claimValue) {
            if (claimValue == null) {
              throw new MissingRequiredPropertyException("SharedAccessAuthorizationRulePropertiesResponse", "claimValue");
            }
            this.claimValue = claimValue;
            return this;
        }
        @CustomType.Setter
        public Builder createdTime(String createdTime) {
            if (createdTime == null) {
              throw new MissingRequiredPropertyException("SharedAccessAuthorizationRulePropertiesResponse", "createdTime");
            }
            this.createdTime = createdTime;
            return this;
        }
        @CustomType.Setter
        public Builder keyName(String keyName) {
            if (keyName == null) {
              throw new MissingRequiredPropertyException("SharedAccessAuthorizationRulePropertiesResponse", "keyName");
            }
            this.keyName = keyName;
            return this;
        }
        @CustomType.Setter
        public Builder modifiedTime(String modifiedTime) {
            if (modifiedTime == null) {
              throw new MissingRequiredPropertyException("SharedAccessAuthorizationRulePropertiesResponse", "modifiedTime");
            }
            this.modifiedTime = modifiedTime;
            return this;
        }
        @CustomType.Setter
        public Builder primaryKey(@Nullable String primaryKey) {

            this.primaryKey = primaryKey;
            return this;
        }
        @CustomType.Setter
        public Builder revision(Integer revision) {
            if (revision == null) {
              throw new MissingRequiredPropertyException("SharedAccessAuthorizationRulePropertiesResponse", "revision");
            }
            this.revision = revision;
            return this;
        }
        @CustomType.Setter
        public Builder rights(List rights) {
            if (rights == null) {
              throw new MissingRequiredPropertyException("SharedAccessAuthorizationRulePropertiesResponse", "rights");
            }
            this.rights = rights;
            return this;
        }
        public Builder rights(String... rights) {
            return rights(List.of(rights));
        }
        @CustomType.Setter
        public Builder secondaryKey(@Nullable String secondaryKey) {

            this.secondaryKey = secondaryKey;
            return this;
        }
        public SharedAccessAuthorizationRulePropertiesResponse build() {
            final var _resultValue = new SharedAccessAuthorizationRulePropertiesResponse();
            _resultValue.claimType = claimType;
            _resultValue.claimValue = claimValue;
            _resultValue.createdTime = createdTime;
            _resultValue.keyName = keyName;
            _resultValue.modifiedTime = modifiedTime;
            _resultValue.primaryKey = primaryKey;
            _resultValue.revision = revision;
            _resultValue.rights = rights;
            _resultValue.secondaryKey = secondaryKey;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy