com.pulumi.azurenative.databoxedge.outputs.GetUserResult Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure 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.azurenative.databoxedge.outputs;
import com.pulumi.azurenative.databoxedge.outputs.AsymmetricEncryptedSecretResponse;
import com.pulumi.azurenative.databoxedge.outputs.ShareAccessRightResponse;
import com.pulumi.azurenative.databoxedge.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetUserResult {
/**
* @return The password details.
*
*/
private @Nullable AsymmetricEncryptedSecretResponse encryptedPassword;
/**
* @return The path ID that uniquely identifies the object.
*
*/
private String id;
/**
* @return The object name.
*
*/
private String name;
/**
* @return List of shares that the user has rights on. This field should not be specified during user creation.
*
*/
private List shareAccessRights;
/**
* @return Metadata pertaining to creation and last modification of User
*
*/
private SystemDataResponse systemData;
/**
* @return The hierarchical type of the object.
*
*/
private String type;
/**
* @return Type of the user.
*
*/
private String userType;
private GetUserResult() {}
/**
* @return The password details.
*
*/
public Optional encryptedPassword() {
return Optional.ofNullable(this.encryptedPassword);
}
/**
* @return The path ID that uniquely identifies the object.
*
*/
public String id() {
return this.id;
}
/**
* @return The object name.
*
*/
public String name() {
return this.name;
}
/**
* @return List of shares that the user has rights on. This field should not be specified during user creation.
*
*/
public List shareAccessRights() {
return this.shareAccessRights;
}
/**
* @return Metadata pertaining to creation and last modification of User
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return The hierarchical type of the object.
*
*/
public String type() {
return this.type;
}
/**
* @return Type of the user.
*
*/
public String userType() {
return this.userType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetUserResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AsymmetricEncryptedSecretResponse encryptedPassword;
private String id;
private String name;
private List shareAccessRights;
private SystemDataResponse systemData;
private String type;
private String userType;
public Builder() {}
public Builder(GetUserResult defaults) {
Objects.requireNonNull(defaults);
this.encryptedPassword = defaults.encryptedPassword;
this.id = defaults.id;
this.name = defaults.name;
this.shareAccessRights = defaults.shareAccessRights;
this.systemData = defaults.systemData;
this.type = defaults.type;
this.userType = defaults.userType;
}
@CustomType.Setter
public Builder encryptedPassword(@Nullable AsymmetricEncryptedSecretResponse encryptedPassword) {
this.encryptedPassword = encryptedPassword;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetUserResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetUserResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder shareAccessRights(List shareAccessRights) {
if (shareAccessRights == null) {
throw new MissingRequiredPropertyException("GetUserResult", "shareAccessRights");
}
this.shareAccessRights = shareAccessRights;
return this;
}
public Builder shareAccessRights(ShareAccessRightResponse... shareAccessRights) {
return shareAccessRights(List.of(shareAccessRights));
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetUserResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetUserResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder userType(String userType) {
if (userType == null) {
throw new MissingRequiredPropertyException("GetUserResult", "userType");
}
this.userType = userType;
return this;
}
public GetUserResult build() {
final var _resultValue = new GetUserResult();
_resultValue.encryptedPassword = encryptedPassword;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.shareAccessRights = shareAccessRights;
_resultValue.systemData = systemData;
_resultValue.type = type;
_resultValue.userType = userType;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy