com.pulumi.alicloud.cs.outputs.GetKubernetesPermissionResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alicloud Show documentation
Show all versions of alicloud Show documentation
A Pulumi package for creating and managing AliCloud resources.
// *** 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;
}
}
}