@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Rule extends Object implements Serializable, Cloneable, StructuredPojo
Guardrail rules for an Amazon Q Business application. Amazon Q Business supports only one rule at a time.
Constructor and Description |
---|
Rule() |
Modifier and Type | Method and Description |
---|---|
Rule |
clone() |
boolean |
equals(Object obj) |
UsersAndGroups |
getExcludedUsersAndGroups()
Users and groups to be excluded from a rule.
|
UsersAndGroups |
getIncludedUsersAndGroups()
Users and groups to be included in a rule.
|
RuleConfiguration |
getRuleConfiguration()
The configuration information for a rule.
|
String |
getRuleType()
The type of rule.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExcludedUsersAndGroups(UsersAndGroups excludedUsersAndGroups)
Users and groups to be excluded from a rule.
|
void |
setIncludedUsersAndGroups(UsersAndGroups includedUsersAndGroups)
Users and groups to be included in a rule.
|
void |
setRuleConfiguration(RuleConfiguration ruleConfiguration)
The configuration information for a rule.
|
void |
setRuleType(String ruleType)
The type of rule.
|
String |
toString()
Returns a string representation of this object.
|
Rule |
withExcludedUsersAndGroups(UsersAndGroups excludedUsersAndGroups)
Users and groups to be excluded from a rule.
|
Rule |
withIncludedUsersAndGroups(UsersAndGroups includedUsersAndGroups)
Users and groups to be included in a rule.
|
Rule |
withRuleConfiguration(RuleConfiguration ruleConfiguration)
The configuration information for a rule.
|
Rule |
withRuleType(RuleType ruleType)
The type of rule.
|
Rule |
withRuleType(String ruleType)
The type of rule.
|
public void setIncludedUsersAndGroups(UsersAndGroups includedUsersAndGroups)
Users and groups to be included in a rule.
includedUsersAndGroups
- Users and groups to be included in a rule.public UsersAndGroups getIncludedUsersAndGroups()
Users and groups to be included in a rule.
public Rule withIncludedUsersAndGroups(UsersAndGroups includedUsersAndGroups)
Users and groups to be included in a rule.
includedUsersAndGroups
- Users and groups to be included in a rule.public void setExcludedUsersAndGroups(UsersAndGroups excludedUsersAndGroups)
Users and groups to be excluded from a rule.
excludedUsersAndGroups
- Users and groups to be excluded from a rule.public UsersAndGroups getExcludedUsersAndGroups()
Users and groups to be excluded from a rule.
public Rule withExcludedUsersAndGroups(UsersAndGroups excludedUsersAndGroups)
Users and groups to be excluded from a rule.
excludedUsersAndGroups
- Users and groups to be excluded from a rule.public void setRuleType(String ruleType)
The type of rule.
ruleType
- The type of rule.RuleType
public String getRuleType()
The type of rule.
RuleType
public Rule withRuleType(String ruleType)
The type of rule.
ruleType
- The type of rule.RuleType
public Rule withRuleType(RuleType ruleType)
The type of rule.
ruleType
- The type of rule.RuleType
public void setRuleConfiguration(RuleConfiguration ruleConfiguration)
The configuration information for a rule.
ruleConfiguration
- The configuration information for a rule.public RuleConfiguration getRuleConfiguration()
The configuration information for a rule.
public Rule withRuleConfiguration(RuleConfiguration ruleConfiguration)
The configuration information for a rule.
ruleConfiguration
- The configuration information for a rule.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.