Class Rule
- java.lang.Object
-
- software.amazon.awssdk.services.qbusiness.model.Rule
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Rule.Builder,Rule>
@Generated("software.amazon.awssdk:codegen") public final class Rule extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Rule.Builder,Rule>
Guardrail rules for an Amazon Q application. Amazon Q supports only one rule at a time.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRule.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Rule.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)UsersAndGroupsexcludedUsersAndGroups()Users and groups to be excluded from a rule.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()UsersAndGroupsincludedUsersAndGroups()Users and groups to be included in a rule.RuleConfigurationruleConfiguration()The configuration information for a rule.RuleTyperuleType()The type of rule.StringruleTypeAsString()The type of rule.List<SdkField<?>>sdkFields()static Class<? extends Rule.Builder>serializableBuilderClass()Rule.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
excludedUsersAndGroups
public final UsersAndGroups excludedUsersAndGroups()
Users and groups to be excluded from a rule.
- Returns:
- Users and groups to be excluded from a rule.
-
includedUsersAndGroups
public final UsersAndGroups includedUsersAndGroups()
Users and groups to be included in a rule.
- Returns:
- Users and groups to be included in a rule.
-
ruleConfiguration
public final RuleConfiguration ruleConfiguration()
The configuration information for a rule.
- Returns:
- The configuration information for a rule.
-
ruleType
public final RuleType ruleType()
The type of rule.
If the service returns an enum value that is not available in the current SDK version,
ruleTypewill returnRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleTypeAsString().- Returns:
- The type of rule.
- See Also:
RuleType
-
ruleTypeAsString
public final String ruleTypeAsString()
The type of rule.
If the service returns an enum value that is not available in the current SDK version,
ruleTypewill returnRuleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleTypeAsString().- Returns:
- The type of rule.
- See Also:
RuleType
-
toBuilder
public Rule.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Rule.Builder,Rule>
-
builder
public static Rule.Builder builder()
-
serializableBuilderClass
public static Class<? extends Rule.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-