com.pulumi.linode.inputs.UserImageGrantArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of linode Show documentation
Show all versions of linode Show documentation
A Pulumi package for creating and managing linode cloud 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.linode.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.Objects;
public final class UserImageGrantArgs extends com.pulumi.resources.ResourceArgs {
public static final UserImageGrantArgs Empty = new UserImageGrantArgs();
/**
* The ID of the entity this grant applies to.
*
*/
@Import(name="id", required=true)
private Output id;
/**
* @return The ID of the entity this grant applies to.
*
*/
public Output id() {
return this.id;
}
/**
* The level of access this User has to this entity. If null, this User has no access.
*
*/
@Import(name="permissions", required=true)
private Output permissions;
/**
* @return The level of access this User has to this entity. If null, this User has no access.
*
*/
public Output permissions() {
return this.permissions;
}
private UserImageGrantArgs() {}
private UserImageGrantArgs(UserImageGrantArgs $) {
this.id = $.id;
this.permissions = $.permissions;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UserImageGrantArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private UserImageGrantArgs $;
public Builder() {
$ = new UserImageGrantArgs();
}
public Builder(UserImageGrantArgs defaults) {
$ = new UserImageGrantArgs(Objects.requireNonNull(defaults));
}
/**
* @param id The ID of the entity this grant applies to.
*
* @return builder
*
*/
public Builder id(Output id) {
$.id = id;
return this;
}
/**
* @param id The ID of the entity this grant applies to.
*
* @return builder
*
*/
public Builder id(Integer id) {
return id(Output.of(id));
}
/**
* @param permissions The level of access this User has to this entity. If null, this User has no access.
*
* @return builder
*
*/
public Builder permissions(Output permissions) {
$.permissions = permissions;
return this;
}
/**
* @param permissions The level of access this User has to this entity. If null, this User has no access.
*
* @return builder
*
*/
public Builder permissions(String permissions) {
return permissions(Output.of(permissions));
}
public UserImageGrantArgs build() {
if ($.id == null) {
throw new MissingRequiredPropertyException("UserImageGrantArgs", "id");
}
if ($.permissions == null) {
throw new MissingRequiredPropertyException("UserImageGrantArgs", "permissions");
}
return $;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy