com.pulumi.azurenative.security.outputs.AutomationSourceResponse 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.
The newest version!
// *** 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.security.outputs;
import com.pulumi.azurenative.security.outputs.AutomationRuleSetResponse;
import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AutomationSourceResponse {
/**
* @return A valid event source type.
*
*/
private @Nullable String eventSource;
/**
* @return A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or').
*
*/
private @Nullable List ruleSets;
private AutomationSourceResponse() {}
/**
* @return A valid event source type.
*
*/
public Optional eventSource() {
return Optional.ofNullable(this.eventSource);
}
/**
* @return A set of rules which evaluate upon event interception. A logical disjunction is applied between defined rule sets (logical 'or').
*
*/
public List ruleSets() {
return this.ruleSets == null ? List.of() : this.ruleSets;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AutomationSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String eventSource;
private @Nullable List ruleSets;
public Builder() {}
public Builder(AutomationSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.eventSource = defaults.eventSource;
this.ruleSets = defaults.ruleSets;
}
@CustomType.Setter
public Builder eventSource(@Nullable String eventSource) {
this.eventSource = eventSource;
return this;
}
@CustomType.Setter
public Builder ruleSets(@Nullable List ruleSets) {
this.ruleSets = ruleSets;
return this;
}
public Builder ruleSets(AutomationRuleSetResponse... ruleSets) {
return ruleSets(List.of(ruleSets));
}
public AutomationSourceResponse build() {
final var _resultValue = new AutomationSourceResponse();
_resultValue.eventSource = eventSource;
_resultValue.ruleSets = ruleSets;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy