com.moesif.api.models.GovernanceRuleRegexRuleBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of moesifapi Show documentation
Show all versions of moesifapi Show documentation
Java API Library for Moesif
The newest version!
package com.moesif.api.models;
import java.util.*;
public class GovernanceRuleRegexRuleBuilder {
//the instance to build
private GovernanceRuleRegexRuleModel GovernanceRuleRegexRuleModel;
/**
* Default constructor to initialize the instance
*/
public GovernanceRuleRegexRuleBuilder() {
GovernanceRuleRegexRuleModel = new GovernanceRuleRegexRuleModel();
}
/**
* the conditions
* @param conditions the field to set
* @return itself
*/
public GovernanceRuleRegexRuleBuilder conditions(List conditions) {
GovernanceRuleRegexRuleModel.setConditions(conditions);
return this;
}
/**
* the sampleRate
* @param sampleRate the field to set
* @return itself
*/
public GovernanceRuleRegexRuleBuilder sampleRate(int sampleRate) {
GovernanceRuleRegexRuleModel.setSampleRate(sampleRate);
return this;
}
/**
* Build the instance with the given values
* @return The built GovernanceRuleRegexRuleModel
*/
public GovernanceRuleRegexRuleModel build() {
return GovernanceRuleRegexRuleModel;
}
}