com.equinix.pulumi.fabric.outputs.GetServiceProfileNotification Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of equinix Show documentation
Show all versions of equinix Show documentation
A Pulumi package for creating and managing equinix 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.equinix.pulumi.fabric.outputs;
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 GetServiceProfileNotification {
/**
* @return Array of contact emails
*
*/
private List emails;
/**
* @return Send interval
*
*/
private @Nullable String sendInterval;
/**
* @return Notification Type - ALL,CONNECTION_APPROVAL,SALES_REP_NOTIFICATIONS, NOTIFICATIONS
*
*/
private String type;
private GetServiceProfileNotification() {}
/**
* @return Array of contact emails
*
*/
public List emails() {
return this.emails;
}
/**
* @return Send interval
*
*/
public Optional sendInterval() {
return Optional.ofNullable(this.sendInterval);
}
/**
* @return Notification Type - ALL,CONNECTION_APPROVAL,SALES_REP_NOTIFICATIONS, NOTIFICATIONS
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetServiceProfileNotification defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List emails;
private @Nullable String sendInterval;
private String type;
public Builder() {}
public Builder(GetServiceProfileNotification defaults) {
Objects.requireNonNull(defaults);
this.emails = defaults.emails;
this.sendInterval = defaults.sendInterval;
this.type = defaults.type;
}
@CustomType.Setter
public Builder emails(List emails) {
if (emails == null) {
throw new MissingRequiredPropertyException("GetServiceProfileNotification", "emails");
}
this.emails = emails;
return this;
}
public Builder emails(String... emails) {
return emails(List.of(emails));
}
@CustomType.Setter
public Builder sendInterval(@Nullable String sendInterval) {
this.sendInterval = sendInterval;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetServiceProfileNotification", "type");
}
this.type = type;
return this;
}
public GetServiceProfileNotification build() {
final var _resultValue = new GetServiceProfileNotification();
_resultValue.emails = emails;
_resultValue.sendInterval = sendInterval;
_resultValue.type = type;
return _resultValue;
}
}
}