// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.notificationhubs.fluent.models;

import com.azure.core.annotation.Fluent;
import com.azure.core.util.logging.ClientLogger;
import com.azure.resourcemanager.notificationhubs.models.AccessRights;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;

/** SharedAccessAuthorizationRule properties. */
@Fluent
public final class SharedAccessAuthorizationRuleProperties {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(SharedAccessAuthorizationRuleProperties.class);

    /*
     * The rights associated with the rule.
     */
    @JsonProperty(value = "rights")
    private List<AccessRights> rights;

    /*
     * A base64-encoded 256-bit primary key for signing and validating the SAS
     * token.
     */
    @JsonProperty(value = "primaryKey", access = JsonProperty.Access.WRITE_ONLY)
    private String primaryKey;

    /*
     * A base64-encoded 256-bit primary key for signing and validating the SAS
     * token.
     */
    @JsonProperty(value = "secondaryKey", access = JsonProperty.Access.WRITE_ONLY)
    private String secondaryKey;

    /*
     * A string that describes the authorization rule.
     */
    @JsonProperty(value = "keyName", access = JsonProperty.Access.WRITE_ONLY)
    private String keyName;

    /*
     * A string that describes the claim type
     */
    @JsonProperty(value = "claimType", access = JsonProperty.Access.WRITE_ONLY)
    private String claimType;

    /*
     * A string that describes the claim value
     */
    @JsonProperty(value = "claimValue", access = JsonProperty.Access.WRITE_ONLY)
    private String claimValue;

    /*
     * The last modified time for this rule
     */
    @JsonProperty(value = "modifiedTime", access = JsonProperty.Access.WRITE_ONLY)
    private String modifiedTime;

    /*
     * The created time for this rule
     */
    @JsonProperty(value = "createdTime", access = JsonProperty.Access.WRITE_ONLY)
    private String createdTime;

    /*
     * The revision number for the rule
     */
    @JsonProperty(value = "revision", access = JsonProperty.Access.WRITE_ONLY)
    private Integer revision;

    /**
     * Get the rights property: The rights associated with the rule.
     *
     * @return the rights value.
     */
    public List<AccessRights> rights() {
        return this.rights;
    }

    /**
     * Set the rights property: The rights associated with the rule.
     *
     * @param rights the rights value to set.
     * @return the SharedAccessAuthorizationRuleProperties object itself.
     */
    public SharedAccessAuthorizationRuleProperties withRights(List<AccessRights> rights) {
        this.rights = rights;
        return this;
    }

    /**
     * Get the primaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
     *
     * @return the primaryKey value.
     */
    public String primaryKey() {
        return this.primaryKey;
    }

    /**
     * Get the secondaryKey property: A base64-encoded 256-bit primary key for signing and validating the SAS token.
     *
     * @return the secondaryKey value.
     */
    public String secondaryKey() {
        return this.secondaryKey;
    }

    /**
     * Get the keyName property: A string that describes the authorization rule.
     *
     * @return the keyName value.
     */
    public String keyName() {
        return this.keyName;
    }

    /**
     * Get the claimType property: A string that describes the claim type.
     *
     * @return the claimType value.
     */
    public String claimType() {
        return this.claimType;
    }

    /**
     * Get the claimValue property: A string that describes the claim value.
     *
     * @return the claimValue value.
     */
    public String claimValue() {
        return this.claimValue;
    }

    /**
     * Get the modifiedTime property: The last modified time for this rule.
     *
     * @return the modifiedTime value.
     */
    public String modifiedTime() {
        return this.modifiedTime;
    }

    /**
     * Get the createdTime property: The created time for this rule.
     *
     * @return the createdTime value.
     */
    public String createdTime() {
        return this.createdTime;
    }

    /**
     * Get the revision property: The revision number for the rule.
     *
     * @return the revision value.
     */
    public Integer revision() {
        return this.revision;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
    }
}
