Interface UpdateKnowledgeBasePermissionsRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpdateKnowledgeBasePermissionsRequest.Builder,,UpdateKnowledgeBasePermissionsRequest> QuickSightRequest.Builder,SdkBuilder<UpdateKnowledgeBasePermissionsRequest.Builder,,UpdateKnowledgeBasePermissionsRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpdateKnowledgeBasePermissionsRequest
-
Method Summary
Modifier and TypeMethodDescriptionawsAccountId(String awsAccountId) The ID of the Amazon Web Services account that contains the knowledge base.grantPermissions(Collection<ResourcePermission> grantPermissions) The resource permissions that you want to grant on the knowledge base.grantPermissions(Consumer<ResourcePermission.Builder>... grantPermissions) The resource permissions that you want to grant on the knowledge base.grantPermissions(ResourcePermission... grantPermissions) The resource permissions that you want to grant on the knowledge base.knowledgeBaseId(String knowledgeBaseId) The unique identifier for the knowledge base.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.revokePermissions(Collection<ResourcePermission> revokePermissions) The resource permissions that you want to revoke from the knowledge base.revokePermissions(Consumer<ResourcePermission.Builder>... revokePermissions) The resource permissions that you want to revoke from the knowledge base.revokePermissions(ResourcePermission... revokePermissions) The resource permissions that you want to revoke from the knowledge base.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.quicksight.model.QuickSightRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
awsAccountId
The ID of the Amazon Web Services account that contains the knowledge base.
- Parameters:
awsAccountId- The ID of the Amazon Web Services account that contains the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
knowledgeBaseId
The unique identifier for the knowledge base.
- Parameters:
knowledgeBaseId- The unique identifier for the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantPermissions
UpdateKnowledgeBasePermissionsRequest.Builder grantPermissions(Collection<ResourcePermission> grantPermissions) The resource permissions that you want to grant on the knowledge base.
- Parameters:
grantPermissions- The resource permissions that you want to grant on the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantPermissions
UpdateKnowledgeBasePermissionsRequest.Builder grantPermissions(ResourcePermission... grantPermissions) The resource permissions that you want to grant on the knowledge base.
- Parameters:
grantPermissions- The resource permissions that you want to grant on the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grantPermissions
UpdateKnowledgeBasePermissionsRequest.Builder grantPermissions(Consumer<ResourcePermission.Builder>... grantPermissions) The resource permissions that you want to grant on the knowledge base.
This is a convenience method that creates an instance of theResourcePermission.Builderavoiding the need to create one manually viaResourcePermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tograntPermissions(List<ResourcePermission>).- Parameters:
grantPermissions- a consumer that will call methods onResourcePermission.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
revokePermissions
UpdateKnowledgeBasePermissionsRequest.Builder revokePermissions(Collection<ResourcePermission> revokePermissions) The resource permissions that you want to revoke from the knowledge base.
- Parameters:
revokePermissions- The resource permissions that you want to revoke from the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revokePermissions
UpdateKnowledgeBasePermissionsRequest.Builder revokePermissions(ResourcePermission... revokePermissions) The resource permissions that you want to revoke from the knowledge base.
- Parameters:
revokePermissions- The resource permissions that you want to revoke from the knowledge base.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
revokePermissions
UpdateKnowledgeBasePermissionsRequest.Builder revokePermissions(Consumer<ResourcePermission.Builder>... revokePermissions) The resource permissions that you want to revoke from the knowledge base.
This is a convenience method that creates an instance of theResourcePermission.Builderavoiding the need to create one manually viaResourcePermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed torevokePermissions(List<ResourcePermission>).- Parameters:
revokePermissions- a consumer that will call methods onResourcePermission.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpdateKnowledgeBasePermissionsRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpdateKnowledgeBasePermissionsRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-