com.pulumi.mongodbatlas.outputs.GetEventTriggerResult 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.mongodbatlas.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import com.pulumi.mongodbatlas.outputs.GetEventTriggerEventProcessor;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetEventTriggerResult {
private String appId;
/**
* @return The name of the MongoDB collection that the trigger watches for change events.
*
*/
private String configCollection;
/**
* @return The name of the MongoDB database to watch.
*
*/
private String configDatabase;
/**
* @return If true, indicates that `UPDATE` change events should include the most current [majority-committed](https://docs.mongodb.com/manual/reference/read-concern-majority/) version of the modified document in the fullDocument field.
*
*/
private Boolean configFullDocument;
private Boolean configFullDocumentBefore;
/**
* @return A [$match](https://docs.mongodb.com/manual/reference/operator/aggregation/match/) expression document that MongoDB Realm includes in the underlying change stream pipeline for the trigger.
*
*/
private String configMatch;
/**
* @return The [authentication operation type](https://docs.mongodb.com/realm/triggers/authentication-triggers/#std-label-authentication-event-operation-types) to listen for.
*
*/
private String configOperationType;
/**
* @return The [database event operation types](https://docs.mongodb.com/realm/triggers/database-triggers/#std-label-database-events) to listen for.
*
*/
private List configOperationTypes;
/**
* @return A [$project](https://docs.mongodb.com/manual/reference/operator/aggregation/project/) expression document that Realm uses to filter the fields that appear in change event objects.
*
*/
private String configProject;
/**
* @return A list of one or more [authentication provider](https://docs.mongodb.com/realm/authentication/providers/) id values. The trigger will only listen for authentication events produced by these providers.
*
*/
private List configProviders;
/**
* @return A [cron expression](https://docs.mongodb.com/realm/triggers/cron-expressions/) that defines the trigger schedule.
*
*/
private String configSchedule;
private String configScheduleType;
/**
* @return The ID of the MongoDB Service associated with the trigger.
*
*/
private String configServiceId;
/**
* @return Status of a trigger.
*
*/
private Boolean disabled;
/**
* @return An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor.
*
*/
private List eventProcessors;
/**
* @return The ID of the function associated with the trigger.
*
*/
private String functionId;
/**
* @return The name of the function associated with the trigger.
*
*/
private String functionName;
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
private String id;
/**
* @return The name of the trigger.
*
*/
private String name;
private String projectId;
private String triggerId;
/**
* @return The type of the trigger.
*
*/
private String type;
/**
* @return Only Available for Database Triggers. If true, event ordering is disabled and this trigger can process events in parallel. If false, event ordering is enabled and the trigger executes serially.
*
*/
private Boolean unordered;
private GetEventTriggerResult() {}
public String appId() {
return this.appId;
}
/**
* @return The name of the MongoDB collection that the trigger watches for change events.
*
*/
public String configCollection() {
return this.configCollection;
}
/**
* @return The name of the MongoDB database to watch.
*
*/
public String configDatabase() {
return this.configDatabase;
}
/**
* @return If true, indicates that `UPDATE` change events should include the most current [majority-committed](https://docs.mongodb.com/manual/reference/read-concern-majority/) version of the modified document in the fullDocument field.
*
*/
public Boolean configFullDocument() {
return this.configFullDocument;
}
public Boolean configFullDocumentBefore() {
return this.configFullDocumentBefore;
}
/**
* @return A [$match](https://docs.mongodb.com/manual/reference/operator/aggregation/match/) expression document that MongoDB Realm includes in the underlying change stream pipeline for the trigger.
*
*/
public String configMatch() {
return this.configMatch;
}
/**
* @return The [authentication operation type](https://docs.mongodb.com/realm/triggers/authentication-triggers/#std-label-authentication-event-operation-types) to listen for.
*
*/
public String configOperationType() {
return this.configOperationType;
}
/**
* @return The [database event operation types](https://docs.mongodb.com/realm/triggers/database-triggers/#std-label-database-events) to listen for.
*
*/
public List configOperationTypes() {
return this.configOperationTypes;
}
/**
* @return A [$project](https://docs.mongodb.com/manual/reference/operator/aggregation/project/) expression document that Realm uses to filter the fields that appear in change event objects.
*
*/
public String configProject() {
return this.configProject;
}
/**
* @return A list of one or more [authentication provider](https://docs.mongodb.com/realm/authentication/providers/) id values. The trigger will only listen for authentication events produced by these providers.
*
*/
public List configProviders() {
return this.configProviders;
}
/**
* @return A [cron expression](https://docs.mongodb.com/realm/triggers/cron-expressions/) that defines the trigger schedule.
*
*/
public String configSchedule() {
return this.configSchedule;
}
public String configScheduleType() {
return this.configScheduleType;
}
/**
* @return The ID of the MongoDB Service associated with the trigger.
*
*/
public String configServiceId() {
return this.configServiceId;
}
/**
* @return Status of a trigger.
*
*/
public Boolean disabled() {
return this.disabled;
}
/**
* @return An object where each field name is an event processor ID and each value is an object that configures its corresponding event processor.
*
*/
public List eventProcessors() {
return this.eventProcessors;
}
/**
* @return The ID of the function associated with the trigger.
*
*/
public String functionId() {
return this.functionId;
}
/**
* @return The name of the function associated with the trigger.
*
*/
public String functionName() {
return this.functionName;
}
/**
* @return The provider-assigned unique ID for this managed resource.
*
*/
public String id() {
return this.id;
}
/**
* @return The name of the trigger.
*
*/
public String name() {
return this.name;
}
public String projectId() {
return this.projectId;
}
public String triggerId() {
return this.triggerId;
}
/**
* @return The type of the trigger.
*
*/
public String type() {
return this.type;
}
/**
* @return Only Available for Database Triggers. If true, event ordering is disabled and this trigger can process events in parallel. If false, event ordering is enabled and the trigger executes serially.
*
*/
public Boolean unordered() {
return this.unordered;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetEventTriggerResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String appId;
private String configCollection;
private String configDatabase;
private Boolean configFullDocument;
private Boolean configFullDocumentBefore;
private String configMatch;
private String configOperationType;
private List configOperationTypes;
private String configProject;
private List configProviders;
private String configSchedule;
private String configScheduleType;
private String configServiceId;
private Boolean disabled;
private List eventProcessors;
private String functionId;
private String functionName;
private String id;
private String name;
private String projectId;
private String triggerId;
private String type;
private Boolean unordered;
public Builder() {}
public Builder(GetEventTriggerResult defaults) {
Objects.requireNonNull(defaults);
this.appId = defaults.appId;
this.configCollection = defaults.configCollection;
this.configDatabase = defaults.configDatabase;
this.configFullDocument = defaults.configFullDocument;
this.configFullDocumentBefore = defaults.configFullDocumentBefore;
this.configMatch = defaults.configMatch;
this.configOperationType = defaults.configOperationType;
this.configOperationTypes = defaults.configOperationTypes;
this.configProject = defaults.configProject;
this.configProviders = defaults.configProviders;
this.configSchedule = defaults.configSchedule;
this.configScheduleType = defaults.configScheduleType;
this.configServiceId = defaults.configServiceId;
this.disabled = defaults.disabled;
this.eventProcessors = defaults.eventProcessors;
this.functionId = defaults.functionId;
this.functionName = defaults.functionName;
this.id = defaults.id;
this.name = defaults.name;
this.projectId = defaults.projectId;
this.triggerId = defaults.triggerId;
this.type = defaults.type;
this.unordered = defaults.unordered;
}
@CustomType.Setter
public Builder appId(String appId) {
if (appId == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "appId");
}
this.appId = appId;
return this;
}
@CustomType.Setter
public Builder configCollection(String configCollection) {
if (configCollection == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configCollection");
}
this.configCollection = configCollection;
return this;
}
@CustomType.Setter
public Builder configDatabase(String configDatabase) {
if (configDatabase == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configDatabase");
}
this.configDatabase = configDatabase;
return this;
}
@CustomType.Setter
public Builder configFullDocument(Boolean configFullDocument) {
if (configFullDocument == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configFullDocument");
}
this.configFullDocument = configFullDocument;
return this;
}
@CustomType.Setter
public Builder configFullDocumentBefore(Boolean configFullDocumentBefore) {
if (configFullDocumentBefore == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configFullDocumentBefore");
}
this.configFullDocumentBefore = configFullDocumentBefore;
return this;
}
@CustomType.Setter
public Builder configMatch(String configMatch) {
if (configMatch == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configMatch");
}
this.configMatch = configMatch;
return this;
}
@CustomType.Setter
public Builder configOperationType(String configOperationType) {
if (configOperationType == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configOperationType");
}
this.configOperationType = configOperationType;
return this;
}
@CustomType.Setter
public Builder configOperationTypes(List configOperationTypes) {
if (configOperationTypes == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configOperationTypes");
}
this.configOperationTypes = configOperationTypes;
return this;
}
public Builder configOperationTypes(String... configOperationTypes) {
return configOperationTypes(List.of(configOperationTypes));
}
@CustomType.Setter
public Builder configProject(String configProject) {
if (configProject == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configProject");
}
this.configProject = configProject;
return this;
}
@CustomType.Setter
public Builder configProviders(List configProviders) {
if (configProviders == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configProviders");
}
this.configProviders = configProviders;
return this;
}
public Builder configProviders(String... configProviders) {
return configProviders(List.of(configProviders));
}
@CustomType.Setter
public Builder configSchedule(String configSchedule) {
if (configSchedule == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configSchedule");
}
this.configSchedule = configSchedule;
return this;
}
@CustomType.Setter
public Builder configScheduleType(String configScheduleType) {
if (configScheduleType == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configScheduleType");
}
this.configScheduleType = configScheduleType;
return this;
}
@CustomType.Setter
public Builder configServiceId(String configServiceId) {
if (configServiceId == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "configServiceId");
}
this.configServiceId = configServiceId;
return this;
}
@CustomType.Setter
public Builder disabled(Boolean disabled) {
if (disabled == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "disabled");
}
this.disabled = disabled;
return this;
}
@CustomType.Setter
public Builder eventProcessors(List eventProcessors) {
if (eventProcessors == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "eventProcessors");
}
this.eventProcessors = eventProcessors;
return this;
}
public Builder eventProcessors(GetEventTriggerEventProcessor... eventProcessors) {
return eventProcessors(List.of(eventProcessors));
}
@CustomType.Setter
public Builder functionId(String functionId) {
if (functionId == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "functionId");
}
this.functionId = functionId;
return this;
}
@CustomType.Setter
public Builder functionName(String functionName) {
if (functionName == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "functionName");
}
this.functionName = functionName;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder projectId(String projectId) {
if (projectId == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "projectId");
}
this.projectId = projectId;
return this;
}
@CustomType.Setter
public Builder triggerId(String triggerId) {
if (triggerId == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "triggerId");
}
this.triggerId = triggerId;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder unordered(Boolean unordered) {
if (unordered == null) {
throw new MissingRequiredPropertyException("GetEventTriggerResult", "unordered");
}
this.unordered = unordered;
return this;
}
public GetEventTriggerResult build() {
final var _resultValue = new GetEventTriggerResult();
_resultValue.appId = appId;
_resultValue.configCollection = configCollection;
_resultValue.configDatabase = configDatabase;
_resultValue.configFullDocument = configFullDocument;
_resultValue.configFullDocumentBefore = configFullDocumentBefore;
_resultValue.configMatch = configMatch;
_resultValue.configOperationType = configOperationType;
_resultValue.configOperationTypes = configOperationTypes;
_resultValue.configProject = configProject;
_resultValue.configProviders = configProviders;
_resultValue.configSchedule = configSchedule;
_resultValue.configScheduleType = configScheduleType;
_resultValue.configServiceId = configServiceId;
_resultValue.disabled = disabled;
_resultValue.eventProcessors = eventProcessors;
_resultValue.functionId = functionId;
_resultValue.functionName = functionName;
_resultValue.id = id;
_resultValue.name = name;
_resultValue.projectId = projectId;
_resultValue.triggerId = triggerId;
_resultValue.type = type;
_resultValue.unordered = unordered;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy