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

com.pulumi.azurenative.documentdb.outputs.DatabaseAccountKeysMetadataResponse 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.documentdb.outputs;

import com.pulumi.azurenative.documentdb.outputs.AccountKeyMetadataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.util.Objects;

@CustomType
public final class DatabaseAccountKeysMetadataResponse {
    /**
     * @return The metadata related to the Primary Read-Write Key for the given Cosmos DB database account.
     * 
     */
    private AccountKeyMetadataResponse primaryMasterKey;
    /**
     * @return The metadata related to the Primary Read-Only Key for the given Cosmos DB database account.
     * 
     */
    private AccountKeyMetadataResponse primaryReadonlyMasterKey;
    /**
     * @return The metadata related to the Secondary Read-Write Key for the given Cosmos DB database account.
     * 
     */
    private AccountKeyMetadataResponse secondaryMasterKey;
    /**
     * @return The metadata related to the Secondary Read-Only Key for the given Cosmos DB database account.
     * 
     */
    private AccountKeyMetadataResponse secondaryReadonlyMasterKey;

    private DatabaseAccountKeysMetadataResponse() {}
    /**
     * @return The metadata related to the Primary Read-Write Key for the given Cosmos DB database account.
     * 
     */
    public AccountKeyMetadataResponse primaryMasterKey() {
        return this.primaryMasterKey;
    }
    /**
     * @return The metadata related to the Primary Read-Only Key for the given Cosmos DB database account.
     * 
     */
    public AccountKeyMetadataResponse primaryReadonlyMasterKey() {
        return this.primaryReadonlyMasterKey;
    }
    /**
     * @return The metadata related to the Secondary Read-Write Key for the given Cosmos DB database account.
     * 
     */
    public AccountKeyMetadataResponse secondaryMasterKey() {
        return this.secondaryMasterKey;
    }
    /**
     * @return The metadata related to the Secondary Read-Only Key for the given Cosmos DB database account.
     * 
     */
    public AccountKeyMetadataResponse secondaryReadonlyMasterKey() {
        return this.secondaryReadonlyMasterKey;
    }

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

    public static Builder builder(DatabaseAccountKeysMetadataResponse defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private AccountKeyMetadataResponse primaryMasterKey;
        private AccountKeyMetadataResponse primaryReadonlyMasterKey;
        private AccountKeyMetadataResponse secondaryMasterKey;
        private AccountKeyMetadataResponse secondaryReadonlyMasterKey;
        public Builder() {}
        public Builder(DatabaseAccountKeysMetadataResponse defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.primaryMasterKey = defaults.primaryMasterKey;
    	      this.primaryReadonlyMasterKey = defaults.primaryReadonlyMasterKey;
    	      this.secondaryMasterKey = defaults.secondaryMasterKey;
    	      this.secondaryReadonlyMasterKey = defaults.secondaryReadonlyMasterKey;
        }

        @CustomType.Setter
        public Builder primaryMasterKey(AccountKeyMetadataResponse primaryMasterKey) {
            if (primaryMasterKey == null) {
              throw new MissingRequiredPropertyException("DatabaseAccountKeysMetadataResponse", "primaryMasterKey");
            }
            this.primaryMasterKey = primaryMasterKey;
            return this;
        }
        @CustomType.Setter
        public Builder primaryReadonlyMasterKey(AccountKeyMetadataResponse primaryReadonlyMasterKey) {
            if (primaryReadonlyMasterKey == null) {
              throw new MissingRequiredPropertyException("DatabaseAccountKeysMetadataResponse", "primaryReadonlyMasterKey");
            }
            this.primaryReadonlyMasterKey = primaryReadonlyMasterKey;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryMasterKey(AccountKeyMetadataResponse secondaryMasterKey) {
            if (secondaryMasterKey == null) {
              throw new MissingRequiredPropertyException("DatabaseAccountKeysMetadataResponse", "secondaryMasterKey");
            }
            this.secondaryMasterKey = secondaryMasterKey;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryReadonlyMasterKey(AccountKeyMetadataResponse secondaryReadonlyMasterKey) {
            if (secondaryReadonlyMasterKey == null) {
              throw new MissingRequiredPropertyException("DatabaseAccountKeysMetadataResponse", "secondaryReadonlyMasterKey");
            }
            this.secondaryReadonlyMasterKey = secondaryReadonlyMasterKey;
            return this;
        }
        public DatabaseAccountKeysMetadataResponse build() {
            final var _resultValue = new DatabaseAccountKeysMetadataResponse();
            _resultValue.primaryMasterKey = primaryMasterKey;
            _resultValue.primaryReadonlyMasterKey = primaryReadonlyMasterKey;
            _resultValue.secondaryMasterKey = secondaryMasterKey;
            _resultValue.secondaryReadonlyMasterKey = secondaryReadonlyMasterKey;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy