// 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.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;

/** Namespace/NotificationHub Connection String. */
@Fluent
public final class ResourceListKeysInner {
    @JsonIgnore private final ClientLogger logger = new ClientLogger(ResourceListKeysInner.class);

    /*
     * PrimaryConnectionString of the AuthorizationRule.
     */
    @JsonProperty(value = "primaryConnectionString")
    private String primaryConnectionString;

    /*
     * SecondaryConnectionString of the created AuthorizationRule
     */
    @JsonProperty(value = "secondaryConnectionString")
    private String secondaryConnectionString;

    /*
     * PrimaryKey of the created AuthorizationRule.
     */
    @JsonProperty(value = "primaryKey")
    private String primaryKey;

    /*
     * SecondaryKey of the created AuthorizationRule
     */
    @JsonProperty(value = "secondaryKey")
    private String secondaryKey;

    /*
     * KeyName of the created AuthorizationRule
     */
    @JsonProperty(value = "keyName")
    private String keyName;

    /**
     * Get the primaryConnectionString property: PrimaryConnectionString of the AuthorizationRule.
     *
     * @return the primaryConnectionString value.
     */
    public String primaryConnectionString() {
        return this.primaryConnectionString;
    }

    /**
     * Set the primaryConnectionString property: PrimaryConnectionString of the AuthorizationRule.
     *
     * @param primaryConnectionString the primaryConnectionString value to set.
     * @return the ResourceListKeysInner object itself.
     */
    public ResourceListKeysInner withPrimaryConnectionString(String primaryConnectionString) {
        this.primaryConnectionString = primaryConnectionString;
        return this;
    }

    /**
     * Get the secondaryConnectionString property: SecondaryConnectionString of the created AuthorizationRule.
     *
     * @return the secondaryConnectionString value.
     */
    public String secondaryConnectionString() {
        return this.secondaryConnectionString;
    }

    /**
     * Set the secondaryConnectionString property: SecondaryConnectionString of the created AuthorizationRule.
     *
     * @param secondaryConnectionString the secondaryConnectionString value to set.
     * @return the ResourceListKeysInner object itself.
     */
    public ResourceListKeysInner withSecondaryConnectionString(String secondaryConnectionString) {
        this.secondaryConnectionString = secondaryConnectionString;
        return this;
    }

    /**
     * Get the primaryKey property: PrimaryKey of the created AuthorizationRule.
     *
     * @return the primaryKey value.
     */
    public String primaryKey() {
        return this.primaryKey;
    }

    /**
     * Set the primaryKey property: PrimaryKey of the created AuthorizationRule.
     *
     * @param primaryKey the primaryKey value to set.
     * @return the ResourceListKeysInner object itself.
     */
    public ResourceListKeysInner withPrimaryKey(String primaryKey) {
        this.primaryKey = primaryKey;
        return this;
    }

    /**
     * Get the secondaryKey property: SecondaryKey of the created AuthorizationRule.
     *
     * @return the secondaryKey value.
     */
    public String secondaryKey() {
        return this.secondaryKey;
    }

    /**
     * Set the secondaryKey property: SecondaryKey of the created AuthorizationRule.
     *
     * @param secondaryKey the secondaryKey value to set.
     * @return the ResourceListKeysInner object itself.
     */
    public ResourceListKeysInner withSecondaryKey(String secondaryKey) {
        this.secondaryKey = secondaryKey;
        return this;
    }

    /**
     * Get the keyName property: KeyName of the created AuthorizationRule.
     *
     * @return the keyName value.
     */
    public String keyName() {
        return this.keyName;
    }

    /**
     * Set the keyName property: KeyName of the created AuthorizationRule.
     *
     * @param keyName the keyName value to set.
     * @return the ResourceListKeysInner object itself.
     */
    public ResourceListKeysInner withKeyName(String keyName) {
        this.keyName = keyName;
        return this;
    }

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