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

com.pulumi.azurenative.apimanagement.outputs.ListTenantAccessSecretsResult 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.apimanagement.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class ListTenantAccessSecretsResult {
    /**
     * @return Determines whether direct access is enabled.
     * 
     */
    private @Nullable Boolean enabled;
    /**
     * @return Access Information type ('access' or 'gitAccess')
     * 
     */
    private @Nullable String id;
    /**
     * @return Primary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
     * 
     */
    private @Nullable String primaryKey;
    /**
     * @return Principal (User) Identifier.
     * 
     */
    private @Nullable String principalId;
    /**
     * @return Secondary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
     * 
     */
    private @Nullable String secondaryKey;

    private ListTenantAccessSecretsResult() {}
    /**
     * @return Determines whether direct access is enabled.
     * 
     */
    public Optional enabled() {
        return Optional.ofNullable(this.enabled);
    }
    /**
     * @return Access Information type ('access' or 'gitAccess')
     * 
     */
    public Optional id() {
        return Optional.ofNullable(this.id);
    }
    /**
     * @return Primary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
     * 
     */
    public Optional primaryKey() {
        return Optional.ofNullable(this.primaryKey);
    }
    /**
     * @return Principal (User) Identifier.
     * 
     */
    public Optional principalId() {
        return Optional.ofNullable(this.principalId);
    }
    /**
     * @return Secondary access key. This property will not be filled on 'GET' operations! Use '/listSecrets' POST request to get the value.
     * 
     */
    public Optional secondaryKey() {
        return Optional.ofNullable(this.secondaryKey);
    }

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

    public static Builder builder(ListTenantAccessSecretsResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable Boolean enabled;
        private @Nullable String id;
        private @Nullable String primaryKey;
        private @Nullable String principalId;
        private @Nullable String secondaryKey;
        public Builder() {}
        public Builder(ListTenantAccessSecretsResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.enabled = defaults.enabled;
    	      this.id = defaults.id;
    	      this.primaryKey = defaults.primaryKey;
    	      this.principalId = defaults.principalId;
    	      this.secondaryKey = defaults.secondaryKey;
        }

        @CustomType.Setter
        public Builder enabled(@Nullable Boolean enabled) {

            this.enabled = enabled;
            return this;
        }
        @CustomType.Setter
        public Builder id(@Nullable String id) {

            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder primaryKey(@Nullable String primaryKey) {

            this.primaryKey = primaryKey;
            return this;
        }
        @CustomType.Setter
        public Builder principalId(@Nullable String principalId) {

            this.principalId = principalId;
            return this;
        }
        @CustomType.Setter
        public Builder secondaryKey(@Nullable String secondaryKey) {

            this.secondaryKey = secondaryKey;
            return this;
        }
        public ListTenantAccessSecretsResult build() {
            final var _resultValue = new ListTenantAccessSecretsResult();
            _resultValue.enabled = enabled;
            _resultValue.id = id;
            _resultValue.primaryKey = primaryKey;
            _resultValue.principalId = principalId;
            _resultValue.secondaryKey = secondaryKey;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy