com.pulumi.azurenative.logz.outputs.UserInfoResponse 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.logz.outputs;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class UserInfoResponse {
/**
* @return Email of the user used by Logz for contacting them if needed
*
*/
private @Nullable String emailAddress;
/**
* @return First Name of the user
*
*/
private @Nullable String firstName;
/**
* @return Last Name of the user
*
*/
private @Nullable String lastName;
/**
* @return Phone number of the user used by Logz for contacting them if needed
*
*/
private @Nullable String phoneNumber;
private UserInfoResponse() {}
/**
* @return Email of the user used by Logz for contacting them if needed
*
*/
public Optional emailAddress() {
return Optional.ofNullable(this.emailAddress);
}
/**
* @return First Name of the user
*
*/
public Optional firstName() {
return Optional.ofNullable(this.firstName);
}
/**
* @return Last Name of the user
*
*/
public Optional lastName() {
return Optional.ofNullable(this.lastName);
}
/**
* @return Phone number of the user used by Logz for contacting them if needed
*
*/
public Optional phoneNumber() {
return Optional.ofNullable(this.phoneNumber);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(UserInfoResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String emailAddress;
private @Nullable String firstName;
private @Nullable String lastName;
private @Nullable String phoneNumber;
public Builder() {}
public Builder(UserInfoResponse defaults) {
Objects.requireNonNull(defaults);
this.emailAddress = defaults.emailAddress;
this.firstName = defaults.firstName;
this.lastName = defaults.lastName;
this.phoneNumber = defaults.phoneNumber;
}
@CustomType.Setter
public Builder emailAddress(@Nullable String emailAddress) {
this.emailAddress = emailAddress;
return this;
}
@CustomType.Setter
public Builder firstName(@Nullable String firstName) {
this.firstName = firstName;
return this;
}
@CustomType.Setter
public Builder lastName(@Nullable String lastName) {
this.lastName = lastName;
return this;
}
@CustomType.Setter
public Builder phoneNumber(@Nullable String phoneNumber) {
this.phoneNumber = phoneNumber;
return this;
}
public UserInfoResponse build() {
final var _resultValue = new UserInfoResponse();
_resultValue.emailAddress = emailAddress;
_resultValue.firstName = firstName;
_resultValue.lastName = lastName;
_resultValue.phoneNumber = phoneNumber;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy