Interface PutSchemaRequest.Builder
- All Superinterfaces:
AwsRequest.Builder
,Buildable
,CopyableBuilder<PutSchemaRequest.Builder,
,PutSchemaRequest> SdkBuilder<PutSchemaRequest.Builder,
,PutSchemaRequest> SdkPojo
,SdkRequest.Builder
,VerifiedPermissionsRequest.Builder
- Enclosing class:
PutSchemaRequest
@Mutable
@NotThreadSafe
public static interface PutSchemaRequest.Builder
extends VerifiedPermissionsRequest.Builder, SdkPojo, CopyableBuilder<PutSchemaRequest.Builder,PutSchemaRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutSchemaRequest.Builder
definition
(Consumer<SchemaDefinition.Builder> definition) Specifies the definition of the schema to be stored.definition
(SchemaDefinition definition) Specifies the definition of the schema to be stored.overrideConfiguration
(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration
(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.policyStoreId
(String policyStoreId) Specifies the ID of the policy store in which to place the schema.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfiguration
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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.services.verifiedpermissions.model.VerifiedPermissionsRequest.Builder
build
-
Method Details
-
policyStoreId
Specifies the ID of the policy store in which to place the schema.
- Parameters:
policyStoreId
- Specifies the ID of the policy store in which to place the schema.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
- Parameters:
definition
- Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
definition
Specifies the definition of the schema to be stored. The schema definition must be written in Cedar schema JSON.
This is a convenience method that creates an instance of theSchemaDefinition.Builder
avoiding the need to create one manually viaSchemaDefinition.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed todefinition(SchemaDefinition)
.- Parameters:
definition
- a consumer that will call methods onSchemaDefinition.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
PutSchemaRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
overrideConfiguration
- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
PutSchemaRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-