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

com.pulumi.alicloud.cs.outputs.GetKubernetesPermissionResult Maven / Gradle / Ivy

There is a newer version: 3.63.0-alpha.1727424957
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.alicloud.cs.outputs;

import com.pulumi.alicloud.cs.outputs.GetKubernetesPermissionPermission;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetKubernetesPermissionResult {
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    private String id;
    /**
     * @return A list of user permission. See `permissions` below.
     * 
     */
    private List permissions;
    /**
     * @return The ID of the RAM user. If you want to query the permissions of a RAM role, specify the ID of the RAM role.
     * 
     */
    private String uid;

    private GetKubernetesPermissionResult() {}
    /**
     * @return The provider-assigned unique ID for this managed resource.
     * 
     */
    public String id() {
        return this.id;
    }
    /**
     * @return A list of user permission. See `permissions` below.
     * 
     */
    public List permissions() {
        return this.permissions;
    }
    /**
     * @return The ID of the RAM user. If you want to query the permissions of a RAM role, specify the ID of the RAM role.
     * 
     */
    public String uid() {
        return this.uid;
    }

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

    public static Builder builder(GetKubernetesPermissionResult defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private String id;
        private List permissions;
        private String uid;
        public Builder() {}
        public Builder(GetKubernetesPermissionResult defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.id = defaults.id;
    	      this.permissions = defaults.permissions;
    	      this.uid = defaults.uid;
        }

        @CustomType.Setter
        public Builder id(String id) {
            if (id == null) {
              throw new MissingRequiredPropertyException("GetKubernetesPermissionResult", "id");
            }
            this.id = id;
            return this;
        }
        @CustomType.Setter
        public Builder permissions(List permissions) {
            if (permissions == null) {
              throw new MissingRequiredPropertyException("GetKubernetesPermissionResult", "permissions");
            }
            this.permissions = permissions;
            return this;
        }
        public Builder permissions(GetKubernetesPermissionPermission... permissions) {
            return permissions(List.of(permissions));
        }
        @CustomType.Setter
        public Builder uid(String uid) {
            if (uid == null) {
              throw new MissingRequiredPropertyException("GetKubernetesPermissionResult", "uid");
            }
            this.uid = uid;
            return this;
        }
        public GetKubernetesPermissionResult build() {
            final var _resultValue = new GetKubernetesPermissionResult();
            _resultValue.id = id;
            _resultValue.permissions = permissions;
            _resultValue.uid = uid;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy