Interface UpdateRoleMappings.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<UpdateRoleMappings.Builder,,UpdateRoleMappings> SdkBuilder<UpdateRoleMappings.Builder,,UpdateRoleMappings> SdkPojo
- Enclosing class:
UpdateRoleMappings
-
Method Summary
Modifier and TypeMethodDescriptionaddOrUpdateRoleMappings(Collection<ArgoCdRoleMapping> addOrUpdateRoleMappings) A list of role mappings to add or update.addOrUpdateRoleMappings(Consumer<ArgoCdRoleMapping.Builder>... addOrUpdateRoleMappings) A list of role mappings to add or update.addOrUpdateRoleMappings(ArgoCdRoleMapping... addOrUpdateRoleMappings) A list of role mappings to add or update.removeRoleMappings(Collection<ArgoCdRoleMapping> removeRoleMappings) A list of role mappings to remove from the RBAC configuration.removeRoleMappings(Consumer<ArgoCdRoleMapping.Builder>... removeRoleMappings) A list of role mappings to remove from the RBAC configuration.removeRoleMappings(ArgoCdRoleMapping... removeRoleMappings) A list of role mappings to remove from the RBAC configuration.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
-
addOrUpdateRoleMappings
UpdateRoleMappings.Builder addOrUpdateRoleMappings(Collection<ArgoCdRoleMapping> addOrUpdateRoleMappings) A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.
- Parameters:
addOrUpdateRoleMappings- A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOrUpdateRoleMappings
A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.
- Parameters:
addOrUpdateRoleMappings- A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
addOrUpdateRoleMappings
UpdateRoleMappings.Builder addOrUpdateRoleMappings(Consumer<ArgoCdRoleMapping.Builder>... addOrUpdateRoleMappings) A list of role mappings to add or update. If a mapping for the specified role already exists, it will be updated with the new identities. If it doesn't exist, a new mapping will be created.
This is a convenience method that creates an instance of theArgoCdRoleMapping.Builderavoiding the need to create one manually viaArgoCdRoleMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toaddOrUpdateRoleMappings(List<ArgoCdRoleMapping>).- Parameters:
addOrUpdateRoleMappings- a consumer that will call methods onArgoCdRoleMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
removeRoleMappings
A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (
ADMIN,EDITOR, orVIEWER) and the identities to remove from that role.- Parameters:
removeRoleMappings- A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (ADMIN,EDITOR, orVIEWER) and the identities to remove from that role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeRoleMappings
A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (
ADMIN,EDITOR, orVIEWER) and the identities to remove from that role.- Parameters:
removeRoleMappings- A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (ADMIN,EDITOR, orVIEWER) and the identities to remove from that role.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
removeRoleMappings
UpdateRoleMappings.Builder removeRoleMappings(Consumer<ArgoCdRoleMapping.Builder>... removeRoleMappings) A list of role mappings to remove from the RBAC configuration. Each mapping specifies an Argo CD role (
This is a convenience method that creates an instance of theADMIN,EDITOR, orVIEWER) and the identities to remove from that role.ArgoCdRoleMapping.Builderavoiding the need to create one manually viaArgoCdRoleMapping.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toremoveRoleMappings(List<ArgoCdRoleMapping>).- Parameters:
removeRoleMappings- a consumer that will call methods onArgoCdRoleMapping.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-