com.pulumi.cloudflare.outputs.TeamsRuleRuleSettingsCheckSession Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudflare Show documentation
Show all versions of cloudflare Show documentation
A Pulumi package for creating and managing Cloudflare 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.pulumi.cloudflare.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.Objects;
@CustomType
public final class TeamsRuleRuleSettingsCheckSession {
/**
* @return Configure how fresh the session needs to be to be considered valid.
*
*/
private String duration;
/**
* @return Enable session enforcement for this rule.
*
*/
private Boolean enforce;
private TeamsRuleRuleSettingsCheckSession() {}
/**
* @return Configure how fresh the session needs to be to be considered valid.
*
*/
public String duration() {
return this.duration;
}
/**
* @return Enable session enforcement for this rule.
*
*/
public Boolean enforce() {
return this.enforce;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(TeamsRuleRuleSettingsCheckSession defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String duration;
private Boolean enforce;
public Builder() {}
public Builder(TeamsRuleRuleSettingsCheckSession defaults) {
Objects.requireNonNull(defaults);
this.duration = defaults.duration;
this.enforce = defaults.enforce;
}
@CustomType.Setter
public Builder duration(String duration) {
if (duration == null) {
throw new MissingRequiredPropertyException("TeamsRuleRuleSettingsCheckSession", "duration");
}
this.duration = duration;
return this;
}
@CustomType.Setter
public Builder enforce(Boolean enforce) {
if (enforce == null) {
throw new MissingRequiredPropertyException("TeamsRuleRuleSettingsCheckSession", "enforce");
}
this.enforce = enforce;
return this;
}
public TeamsRuleRuleSettingsCheckSession build() {
final var _resultValue = new TeamsRuleRuleSettingsCheckSession();
_resultValue.duration = duration;
_resultValue.enforce = enforce;
return _resultValue;
}
}
}