com.pulumi.scm.outputs.GetFileBlockingProfileRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of scm Show documentation
Show all versions of scm Show documentation
A Pulumi package for managing resources on Strata Cloud Manager.
// *** 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.scm.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetFileBlockingProfileRule {
/**
* @return The Action param. String must be one of these: `"alert"`, `"block"`, `"continue"`. Default: `"alert"`.
*
*/
private String action;
/**
* @return The Applications param. List must contain at least 1 elements.
*
*/
private List applications;
/**
* @return The Direction param. String must be one of these: `"download"`, `"upload"`, `"both"`. Default: `"both"`.
*
*/
private String direction;
/**
* @return The FileTypes param. List must contain at least 1 elements.
*
*/
private List fileTypes;
/**
* @return The Name param.
*
*/
private String name;
private GetFileBlockingProfileRule() {}
/**
* @return The Action param. String must be one of these: `"alert"`, `"block"`, `"continue"`. Default: `"alert"`.
*
*/
public String action() {
return this.action;
}
/**
* @return The Applications param. List must contain at least 1 elements.
*
*/
public List applications() {
return this.applications;
}
/**
* @return The Direction param. String must be one of these: `"download"`, `"upload"`, `"both"`. Default: `"both"`.
*
*/
public String direction() {
return this.direction;
}
/**
* @return The FileTypes param. List must contain at least 1 elements.
*
*/
public List fileTypes() {
return this.fileTypes;
}
/**
* @return The Name param.
*
*/
public String name() {
return this.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetFileBlockingProfileRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String action;
private List applications;
private String direction;
private List fileTypes;
private String name;
public Builder() {}
public Builder(GetFileBlockingProfileRule defaults) {
Objects.requireNonNull(defaults);
this.action = defaults.action;
this.applications = defaults.applications;
this.direction = defaults.direction;
this.fileTypes = defaults.fileTypes;
this.name = defaults.name;
}
@CustomType.Setter
public Builder action(String action) {
if (action == null) {
throw new MissingRequiredPropertyException("GetFileBlockingProfileRule", "action");
}
this.action = action;
return this;
}
@CustomType.Setter
public Builder applications(List applications) {
if (applications == null) {
throw new MissingRequiredPropertyException("GetFileBlockingProfileRule", "applications");
}
this.applications = applications;
return this;
}
public Builder applications(String... applications) {
return applications(List.of(applications));
}
@CustomType.Setter
public Builder direction(String direction) {
if (direction == null) {
throw new MissingRequiredPropertyException("GetFileBlockingProfileRule", "direction");
}
this.direction = direction;
return this;
}
@CustomType.Setter
public Builder fileTypes(List fileTypes) {
if (fileTypes == null) {
throw new MissingRequiredPropertyException("GetFileBlockingProfileRule", "fileTypes");
}
this.fileTypes = fileTypes;
return this;
}
public Builder fileTypes(String... fileTypes) {
return fileTypes(List.of(fileTypes));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetFileBlockingProfileRule", "name");
}
this.name = name;
return this;
}
public GetFileBlockingProfileRule build() {
final var _resultValue = new GetFileBlockingProfileRule();
_resultValue.action = action;
_resultValue.applications = applications;
_resultValue.direction = direction;
_resultValue.fileTypes = fileTypes;
_resultValue.name = name;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy