Interface Rule.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<Rule.Builder,,Rule> SdkBuilder<Rule.Builder,,Rule> SdkPojo
- Enclosing class:
Rule
@Mutable
@NotThreadSafe
public static interface Rule.Builder
extends SdkPojo, CopyableBuilder<Rule.Builder,Rule>
-
Method Summary
Modifier and TypeMethodDescriptiondefault Rule.BuilderexcludedUsersAndGroups(Consumer<UsersAndGroups.Builder> excludedUsersAndGroups) Users and groups to be excluded from a rule.excludedUsersAndGroups(UsersAndGroups excludedUsersAndGroups) Users and groups to be excluded from a rule.default Rule.BuilderincludedUsersAndGroups(Consumer<UsersAndGroups.Builder> includedUsersAndGroups) Users and groups to be included in a rule.includedUsersAndGroups(UsersAndGroups includedUsersAndGroups) Users and groups to be included in a rule.default Rule.BuilderruleConfiguration(Consumer<RuleConfiguration.Builder> ruleConfiguration) The configuration information for a rule.ruleConfiguration(RuleConfiguration ruleConfiguration) The configuration information for a rule.The type of rule.The type of rule.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
includedUsersAndGroups
Users and groups to be included in a rule.
- Parameters:
includedUsersAndGroups- Users and groups to be included in a rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
includedUsersAndGroups
default Rule.Builder includedUsersAndGroups(Consumer<UsersAndGroups.Builder> includedUsersAndGroups) Users and groups to be included in a rule.
This is a convenience method that creates an instance of theUsersAndGroups.Builderavoiding the need to create one manually viaUsersAndGroups.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toincludedUsersAndGroups(UsersAndGroups).- Parameters:
includedUsersAndGroups- a consumer that will call methods onUsersAndGroups.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
excludedUsersAndGroups
Users and groups to be excluded from a rule.
- Parameters:
excludedUsersAndGroups- Users and groups to be excluded from a rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
excludedUsersAndGroups
default Rule.Builder excludedUsersAndGroups(Consumer<UsersAndGroups.Builder> excludedUsersAndGroups) Users and groups to be excluded from a rule.
This is a convenience method that creates an instance of theUsersAndGroups.Builderavoiding the need to create one manually viaUsersAndGroups.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toexcludedUsersAndGroups(UsersAndGroups).- Parameters:
excludedUsersAndGroups- a consumer that will call methods onUsersAndGroups.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleType
The type of rule.
- Parameters:
ruleType- The type of rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleType
The type of rule.
- Parameters:
ruleType- The type of rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
ruleConfiguration
The configuration information for a rule.
- Parameters:
ruleConfiguration- The configuration information for a rule.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
ruleConfiguration
The configuration information for a rule.
This is a convenience method that creates an instance of theRuleConfiguration.Builderavoiding the need to create one manually viaRuleConfiguration.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toruleConfiguration(RuleConfiguration).- Parameters:
ruleConfiguration- a consumer that will call methods onRuleConfiguration.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-