Interface Rule.Builder
- All Superinterfaces:
Buildable
,CopyableBuilder<Rule.Builder,
,Rule> SdkBuilder<Rule.Builder,
,Rule> SdkPojo
- Enclosing class:
Rule
-
Method Summary
Modifier and TypeMethodDescriptiondefault Rule.Builder
excludedUsersAndGroups
(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.Builder
includedUsersAndGroups
(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.Builder
ruleConfiguration
(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
copy
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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.Builder
avoiding the need to create one manually viaUsersAndGroups.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaUsersAndGroups.builder()
.When the
Consumer
completes,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.Builder
avoiding the need to create one manually viaRuleConfiguration.builder()
.When the
Consumer
completes,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:
-