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

com.pulumi.googlenative.cloudasset.v1.inputs.IamPolicyAnalysisQueryArgs 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.googlenative.cloudasset.v1.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.googlenative.cloudasset.v1.inputs.AccessSelectorArgs;
import com.pulumi.googlenative.cloudasset.v1.inputs.ConditionContextArgs;
import com.pulumi.googlenative.cloudasset.v1.inputs.IdentitySelectorArgs;
import com.pulumi.googlenative.cloudasset.v1.inputs.OptionsArgs;
import com.pulumi.googlenative.cloudasset.v1.inputs.ResourceSelectorArgs;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * IAM policy analysis query message.
 * 
 */
public final class IamPolicyAnalysisQueryArgs extends com.pulumi.resources.ResourceArgs {

    public static final IamPolicyAnalysisQueryArgs Empty = new IamPolicyAnalysisQueryArgs();

    /**
     * Optional. Specifies roles or permissions for analysis. This is optional.
     * 
     */
    @Import(name="accessSelector")
    private @Nullable Output accessSelector;

    /**
     * @return Optional. Specifies roles or permissions for analysis. This is optional.
     * 
     */
    public Optional> accessSelector() {
        return Optional.ofNullable(this.accessSelector);
    }

    /**
     * Optional. The hypothetical context for IAM conditions evaluation.
     * 
     */
    @Import(name="conditionContext")
    private @Nullable Output conditionContext;

    /**
     * @return Optional. The hypothetical context for IAM conditions evaluation.
     * 
     */
    public Optional> conditionContext() {
        return Optional.ofNullable(this.conditionContext);
    }

    /**
     * Optional. Specifies an identity for analysis.
     * 
     */
    @Import(name="identitySelector")
    private @Nullable Output identitySelector;

    /**
     * @return Optional. Specifies an identity for analysis.
     * 
     */
    public Optional> identitySelector() {
        return Optional.ofNullable(this.identitySelector);
    }

    /**
     * Optional. The query options.
     * 
     */
    @Import(name="options")
    private @Nullable Output options;

    /**
     * @return Optional. The query options.
     * 
     */
    public Optional> options() {
        return Optional.ofNullable(this.options);
    }

    /**
     * Optional. Specifies a resource for analysis.
     * 
     */
    @Import(name="resourceSelector")
    private @Nullable Output resourceSelector;

    /**
     * @return Optional. Specifies a resource for analysis.
     * 
     */
    public Optional> resourceSelector() {
        return Optional.ofNullable(this.resourceSelector);
    }

    /**
     * The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
     * 
     */
    @Import(name="scope", required=true)
    private Output scope;

    /**
     * @return The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
     * 
     */
    public Output scope() {
        return this.scope;
    }

    private IamPolicyAnalysisQueryArgs() {}

    private IamPolicyAnalysisQueryArgs(IamPolicyAnalysisQueryArgs $) {
        this.accessSelector = $.accessSelector;
        this.conditionContext = $.conditionContext;
        this.identitySelector = $.identitySelector;
        this.options = $.options;
        this.resourceSelector = $.resourceSelector;
        this.scope = $.scope;
    }

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

    public static final class Builder {
        private IamPolicyAnalysisQueryArgs $;

        public Builder() {
            $ = new IamPolicyAnalysisQueryArgs();
        }

        public Builder(IamPolicyAnalysisQueryArgs defaults) {
            $ = new IamPolicyAnalysisQueryArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param accessSelector Optional. Specifies roles or permissions for analysis. This is optional.
         * 
         * @return builder
         * 
         */
        public Builder accessSelector(@Nullable Output accessSelector) {
            $.accessSelector = accessSelector;
            return this;
        }

        /**
         * @param accessSelector Optional. Specifies roles or permissions for analysis. This is optional.
         * 
         * @return builder
         * 
         */
        public Builder accessSelector(AccessSelectorArgs accessSelector) {
            return accessSelector(Output.of(accessSelector));
        }

        /**
         * @param conditionContext Optional. The hypothetical context for IAM conditions evaluation.
         * 
         * @return builder
         * 
         */
        public Builder conditionContext(@Nullable Output conditionContext) {
            $.conditionContext = conditionContext;
            return this;
        }

        /**
         * @param conditionContext Optional. The hypothetical context for IAM conditions evaluation.
         * 
         * @return builder
         * 
         */
        public Builder conditionContext(ConditionContextArgs conditionContext) {
            return conditionContext(Output.of(conditionContext));
        }

        /**
         * @param identitySelector Optional. Specifies an identity for analysis.
         * 
         * @return builder
         * 
         */
        public Builder identitySelector(@Nullable Output identitySelector) {
            $.identitySelector = identitySelector;
            return this;
        }

        /**
         * @param identitySelector Optional. Specifies an identity for analysis.
         * 
         * @return builder
         * 
         */
        public Builder identitySelector(IdentitySelectorArgs identitySelector) {
            return identitySelector(Output.of(identitySelector));
        }

        /**
         * @param options Optional. The query options.
         * 
         * @return builder
         * 
         */
        public Builder options(@Nullable Output options) {
            $.options = options;
            return this;
        }

        /**
         * @param options Optional. The query options.
         * 
         * @return builder
         * 
         */
        public Builder options(OptionsArgs options) {
            return options(Output.of(options));
        }

        /**
         * @param resourceSelector Optional. Specifies a resource for analysis.
         * 
         * @return builder
         * 
         */
        public Builder resourceSelector(@Nullable Output resourceSelector) {
            $.resourceSelector = resourceSelector;
            return this;
        }

        /**
         * @param resourceSelector Optional. Specifies a resource for analysis.
         * 
         * @return builder
         * 
         */
        public Builder resourceSelector(ResourceSelectorArgs resourceSelector) {
            return resourceSelector(Output.of(resourceSelector));
        }

        /**
         * @param scope The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
         * 
         * @return builder
         * 
         */
        public Builder scope(Output scope) {
            $.scope = scope;
            return this;
        }

        /**
         * @param scope The relative name of the root asset. Only resources and IAM policies within the scope will be analyzed. This can only be an organization number (such as "organizations/123"), a folder number (such as "folders/123"), a project ID (such as "projects/my-project-id"), or a project number (such as "projects/12345"). To know how to get organization id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-organization#retrieving_your_organization_id). To know how to get folder or project id, visit [here ](https://cloud.google.com/resource-manager/docs/creating-managing-folders#viewing_or_listing_folders_and_projects).
         * 
         * @return builder
         * 
         */
        public Builder scope(String scope) {
            return scope(Output.of(scope));
        }

        public IamPolicyAnalysisQueryArgs build() {
            $.scope = Objects.requireNonNull($.scope, "expected parameter 'scope' to be non-null");
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy