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

com.pulumi.azurenative.eventgrid.outputs.GetPermissionBindingResult Maven / Gradle / Ivy

There is a newer version: 2.72.0
Show newest version
// *** 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.eventgrid.outputs;

import com.pulumi.azurenative.eventgrid.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class GetPermissionBindingResult {
    /**
     * @return The name of the client group resource that the permission is bound to.
     * The client group needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    private @Nullable String clientGroupName;
    /**
     * @return Description for the Permission Binding resource.
     * 
     */
    private @Nullable String description;
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    private String id;
    /**
     * @return Name of the resource.
     * 
     */
    private String name;
    /**
     * @return The allowed permission.
     * 
     */
    private @Nullable String permission;
    /**
     * @return Provisioning state of the PermissionBinding resource.
     * 
     */
    private String provisioningState;
    /**
     * @return The system metadata relating to the PermissionBinding resource.
     * 
     */
    private SystemDataResponse systemData;
    /**
     * @return The name of the Topic Space resource that the permission is bound to.
     * The Topic space needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    private @Nullable String topicSpaceName;
    /**
     * @return Type of the resource.
     * 
     */
    private String type;

    private GetPermissionBindingResult() {}
    /**
     * @return The name of the client group resource that the permission is bound to.
     * The client group needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    public Optional clientGroupName() {
        return Optional.ofNullable(this.clientGroupName);
    }
    /**
     * @return Description for the Permission Binding resource.
     * 
     */
    public Optional description() {
        return Optional.ofNullable(this.description);
    }
    /**
     * @return Fully qualified identifier of the resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return Name of the resource.
     * 
     */
    public String name() {
        return this.name;
    }
    /**
     * @return The allowed permission.
     * 
     */
    public Optional permission() {
        return Optional.ofNullable(this.permission);
    }
    /**
     * @return Provisioning state of the PermissionBinding resource.
     * 
     */
    public String provisioningState() {
        return this.provisioningState;
    }
    /**
     * @return The system metadata relating to the PermissionBinding resource.
     * 
     */
    public SystemDataResponse systemData() {
        return this.systemData;
    }
    /**
     * @return The name of the Topic Space resource that the permission is bound to.
     * The Topic space needs to be a resource under the same namespace the permission binding is a part of.
     * 
     */
    public Optional topicSpaceName() {
        return Optional.ofNullable(this.topicSpaceName);
    }
    /**
     * @return Type of the resource.
     * 
     */
    public String type() {
        return this.type;
    }

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

    public static Builder builder(GetPermissionBindingResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String clientGroupName;
        private @Nullable String description;
        private String id;
        private String name;
        private @Nullable String permission;
        private String provisioningState;
        private SystemDataResponse systemData;
        private @Nullable String topicSpaceName;
        private String type;
        public Builder() {}
        public Builder(GetPermissionBindingResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.clientGroupName = defaults.clientGroupName;
    	      this.description = defaults.description;
    	      this.id = defaults.id;
    	      this.name = defaults.name;
    	      this.permission = defaults.permission;
    	      this.provisioningState = defaults.provisioningState;
    	      this.systemData = defaults.systemData;
    	      this.topicSpaceName = defaults.topicSpaceName;
    	      this.type = defaults.type;
        }

        @CustomType.Setter
        public Builder clientGroupName(@Nullable String clientGroupName) {

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

            this.description = description;
            return this;
        }
        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetPermissionBindingResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder name(String name) {
            if (name == null) {
              throw new MissingRequiredPropertyException("GetPermissionBindingResult", "name");
            }
            this.name = name;
            return this;
        }
        @CustomType.Setter
        public Builder permission(@Nullable String permission) {

            this.permission = permission;
            return this;
        }
        @CustomType.Setter
        public Builder provisioningState(String provisioningState) {
            if (provisioningState == null) {
              throw new MissingRequiredPropertyException("GetPermissionBindingResult", "provisioningState");
            }
            this.provisioningState = provisioningState;
            return this;
        }
        @CustomType.Setter
        public Builder systemData(SystemDataResponse systemData) {
            if (systemData == null) {
              throw new MissingRequiredPropertyException("GetPermissionBindingResult", "systemData");
            }
            this.systemData = systemData;
            return this;
        }
        @CustomType.Setter
        public Builder topicSpaceName(@Nullable String topicSpaceName) {

            this.topicSpaceName = topicSpaceName;
            return this;
        }
        @CustomType.Setter
        public Builder type(String type) {
            if (type == null) {
              throw new MissingRequiredPropertyException("GetPermissionBindingResult", "type");
            }
            this.type = type;
            return this;
        }
        public GetPermissionBindingResult build() {
            final var _resultValue = new GetPermissionBindingResult();
            _resultValue.clientGroupName = clientGroupName;
            _resultValue.description = description;
            _resultValue.id = id;
            _resultValue.name = name;
            _resultValue.permission = permission;
            _resultValue.provisioningState = provisioningState;
            _resultValue.systemData = systemData;
            _resultValue.topicSpaceName = topicSpaceName;
            _resultValue.type = type;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy