com.pulumi.azure.newrelic.inputs.MonitorUserArgs 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.azure.newrelic.inputs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
public final class MonitorUserArgs extends com.pulumi.resources.ResourceArgs {
public static final MonitorUserArgs Empty = new MonitorUserArgs();
/**
* Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
@Import(name="email", required=true)
private Output email;
/**
* @return Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
public Output email() {
return this.email;
}
/**
* Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
@Import(name="firstName", required=true)
private Output firstName;
/**
* @return Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
public Output firstName() {
return this.firstName;
}
/**
* Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
@Import(name="lastName", required=true)
private Output lastName;
/**
* @return Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
public Output lastName() {
return this.lastName;
}
/**
* Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
@Import(name="phoneNumber", required=true)
private Output phoneNumber;
/**
* @return Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
*
*/
public Output phoneNumber() {
return this.phoneNumber;
}
private MonitorUserArgs() {}
private MonitorUserArgs(MonitorUserArgs $) {
this.email = $.email;
this.firstName = $.firstName;
this.lastName = $.lastName;
this.phoneNumber = $.phoneNumber;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MonitorUserArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private MonitorUserArgs $;
public Builder() {
$ = new MonitorUserArgs();
}
public Builder(MonitorUserArgs defaults) {
$ = new MonitorUserArgs(Objects.requireNonNull(defaults));
}
/**
* @param email Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder email(Output email) {
$.email = email;
return this;
}
/**
* @param email Specifies the user Email. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder email(String email) {
return email(Output.of(email));
}
/**
* @param firstName Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder firstName(Output firstName) {
$.firstName = firstName;
return this;
}
/**
* @param firstName Specifies the first name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder firstName(String firstName) {
return firstName(Output.of(firstName));
}
/**
* @param lastName Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder lastName(Output lastName) {
$.lastName = lastName;
return this;
}
/**
* @param lastName Specifies the last name. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder lastName(String lastName) {
return lastName(Output.of(lastName));
}
/**
* @param phoneNumber Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder phoneNumber(Output phoneNumber) {
$.phoneNumber = phoneNumber;
return this;
}
/**
* @param phoneNumber Specifies the contact phone number. Changing this forces a new Azure Native New Relic Monitor to be created.
*
* @return builder
*
*/
public Builder phoneNumber(String phoneNumber) {
return phoneNumber(Output.of(phoneNumber));
}
public MonitorUserArgs build() {
if ($.email == null) {
throw new MissingRequiredPropertyException("MonitorUserArgs", "email");
}
if ($.firstName == null) {
throw new MissingRequiredPropertyException("MonitorUserArgs", "firstName");
}
if ($.lastName == null) {
throw new MissingRequiredPropertyException("MonitorUserArgs", "lastName");
}
if ($.phoneNumber == null) {
throw new MissingRequiredPropertyException("MonitorUserArgs", "phoneNumber");
}
return $;
}
}
}