com.pulumi.azure.apimanagement.NotificationRecipientEmailArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.apimanagement;
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 NotificationRecipientEmailArgs extends com.pulumi.resources.ResourceArgs {
public static final NotificationRecipientEmailArgs Empty = new NotificationRecipientEmailArgs();
/**
* The ID of the API Management Service from which to create this Notification Recipient Email. Changing this forces a new API Management Notification Recipient Email to be created.
*
*/
@Import(name="apiManagementId", required=true)
private Output apiManagementId;
/**
* @return The ID of the API Management Service from which to create this Notification Recipient Email. Changing this forces a new API Management Notification Recipient Email to be created.
*
*/
public Output apiManagementId() {
return this.apiManagementId;
}
/**
* The recipient email address. Changing this forces a new API Management Notification Recipient Email to be created.
*
*/
@Import(name="email", required=true)
private Output email;
/**
* @return The recipient email address. Changing this forces a new API Management Notification Recipient Email to be created.
*
*/
public Output email() {
return this.email;
}
/**
* The Notification Name to be received. Changing this forces a new API Management Notification Recipient Email to be created. Possible values are `AccountClosedPublisher`, `BCC`, `NewApplicationNotificationMessage`, `NewIssuePublisherNotificationMessage`, `PurchasePublisherNotificationMessage`, `QuotaLimitApproachingPublisherNotificationMessage`, and `RequestPublisherNotificationMessage`.
*
*/
@Import(name="notificationType", required=true)
private Output notificationType;
/**
* @return The Notification Name to be received. Changing this forces a new API Management Notification Recipient Email to be created. Possible values are `AccountClosedPublisher`, `BCC`, `NewApplicationNotificationMessage`, `NewIssuePublisherNotificationMessage`, `PurchasePublisherNotificationMessage`, `QuotaLimitApproachingPublisherNotificationMessage`, and `RequestPublisherNotificationMessage`.
*
*/
public Output notificationType() {
return this.notificationType;
}
private NotificationRecipientEmailArgs() {}
private NotificationRecipientEmailArgs(NotificationRecipientEmailArgs $) {
this.apiManagementId = $.apiManagementId;
this.email = $.email;
this.notificationType = $.notificationType;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(NotificationRecipientEmailArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private NotificationRecipientEmailArgs $;
public Builder() {
$ = new NotificationRecipientEmailArgs();
}
public Builder(NotificationRecipientEmailArgs defaults) {
$ = new NotificationRecipientEmailArgs(Objects.requireNonNull(defaults));
}
/**
* @param apiManagementId The ID of the API Management Service from which to create this Notification Recipient Email. Changing this forces a new API Management Notification Recipient Email to be created.
*
* @return builder
*
*/
public Builder apiManagementId(Output apiManagementId) {
$.apiManagementId = apiManagementId;
return this;
}
/**
* @param apiManagementId The ID of the API Management Service from which to create this Notification Recipient Email. Changing this forces a new API Management Notification Recipient Email to be created.
*
* @return builder
*
*/
public Builder apiManagementId(String apiManagementId) {
return apiManagementId(Output.of(apiManagementId));
}
/**
* @param email The recipient email address. Changing this forces a new API Management Notification Recipient Email to be created.
*
* @return builder
*
*/
public Builder email(Output email) {
$.email = email;
return this;
}
/**
* @param email The recipient email address. Changing this forces a new API Management Notification Recipient Email to be created.
*
* @return builder
*
*/
public Builder email(String email) {
return email(Output.of(email));
}
/**
* @param notificationType The Notification Name to be received. Changing this forces a new API Management Notification Recipient Email to be created. Possible values are `AccountClosedPublisher`, `BCC`, `NewApplicationNotificationMessage`, `NewIssuePublisherNotificationMessage`, `PurchasePublisherNotificationMessage`, `QuotaLimitApproachingPublisherNotificationMessage`, and `RequestPublisherNotificationMessage`.
*
* @return builder
*
*/
public Builder notificationType(Output notificationType) {
$.notificationType = notificationType;
return this;
}
/**
* @param notificationType The Notification Name to be received. Changing this forces a new API Management Notification Recipient Email to be created. Possible values are `AccountClosedPublisher`, `BCC`, `NewApplicationNotificationMessage`, `NewIssuePublisherNotificationMessage`, `PurchasePublisherNotificationMessage`, `QuotaLimitApproachingPublisherNotificationMessage`, and `RequestPublisherNotificationMessage`.
*
* @return builder
*
*/
public Builder notificationType(String notificationType) {
return notificationType(Output.of(notificationType));
}
public NotificationRecipientEmailArgs build() {
if ($.apiManagementId == null) {
throw new MissingRequiredPropertyException("NotificationRecipientEmailArgs", "apiManagementId");
}
if ($.email == null) {
throw new MissingRequiredPropertyException("NotificationRecipientEmailArgs", "email");
}
if ($.notificationType == null) {
throw new MissingRequiredPropertyException("NotificationRecipientEmailArgs", "notificationType");
}
return $;
}
}
}