Interface PutSchemaRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<PutSchemaRequest.Builder,,PutSchemaRequest> SdkBuilder<PutSchemaRequest.Builder,,PutSchemaRequest> SdkPojo,SdkRequest.Builder,VerifiedPermissionsRequest.Builder
- Enclosing class:
PutSchemaRequest
public static interface PutSchemaRequest.Builder
extends VerifiedPermissionsRequest.Builder, SdkPojo, CopyableBuilder<PutSchemaRequest.Builder,PutSchemaRequest>
-
Method Summary
Modifier and TypeMethodDescriptiondefault PutSchemaRequest.Builderdefinition(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
overrideConfigurationMethods 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, sdkFieldsMethods 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.Builderavoiding the need to create one manually viaSchemaDefinition.builder().When the
Consumercompletes,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.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin 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.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.
-