
com.pulumi.azurenative.securityinsights.outputs.WatchlistUserInfoResponse Maven / Gradle / Ivy
// *** 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.securityinsights.outputs;
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 WatchlistUserInfoResponse {
/**
* @return The email of the user.
*
*/
private String email;
/**
* @return The name of the user.
*
*/
private String name;
/**
* @return The object id of the user.
*
*/
private @Nullable String objectId;
private WatchlistUserInfoResponse() {}
/**
* @return The email of the user.
*
*/
public String email() {
return this.email;
}
/**
* @return The name of the user.
*
*/
public String name() {
return this.name;
}
/**
* @return The object id of the user.
*
*/
public Optional objectId() {
return Optional.ofNullable(this.objectId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(WatchlistUserInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String email;
private String name;
private @Nullable String objectId;
public Builder() {}
public Builder(WatchlistUserInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.email = defaults.email;
this.name = defaults.name;
this.objectId = defaults.objectId;
}
@CustomType.Setter
public Builder email(String email) {
if (email == null) {
throw new MissingRequiredPropertyException("WatchlistUserInfoResponse", "email");
}
this.email = email;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("WatchlistUserInfoResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder objectId(@Nullable String objectId) {
this.objectId = objectId;
return this;
}
public WatchlistUserInfoResponse build() {
final var _resultValue = new WatchlistUserInfoResponse();
_resultValue.email = email;
_resultValue.name = name;
_resultValue.objectId = objectId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy