Interface SchemasClient
-
- All Superinterfaces:
AutoCloseable,AwsClient,SdkAutoCloseable,SdkClient
@Generated("software.amazon.awssdk:codegen") @ThreadSafe public interface SchemasClient extends AwsClient
Service client for accessing Schemas. This can be created using the staticbuilder()method.Amazon EventBridge Schema Registry
-
-
Field Summary
Fields Modifier and Type Field Description static StringSERVICE_METADATA_IDValue for looking up the service's metadata from theServiceMetadataProvider.static StringSERVICE_NAME
-
Method Summary
-
Methods inherited from interface software.amazon.awssdk.utils.SdkAutoCloseable
close
-
Methods inherited from interface software.amazon.awssdk.core.SdkClient
serviceName
-
-
-
-
Field Detail
-
SERVICE_NAME
static final String SERVICE_NAME
- See Also:
- Constant Field Values
-
SERVICE_METADATA_ID
static final String SERVICE_METADATA_ID
Value for looking up the service's metadata from theServiceMetadataProvider.- See Also:
- Constant Field Values
-
-
Method Detail
-
createDiscoverer
default CreateDiscovererResponse createDiscoverer(CreateDiscovererRequest createDiscovererRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, ConflictException, AwsServiceException, SdkClientException, SchemasException
Creates a discoverer.
- Parameters:
createDiscovererRequest-- Returns:
- Result of the CreateDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseInternalServerErrorException- 500 responseUnauthorizedException- 401 responseForbiddenException- 403 responseServiceUnavailableException- 503 responseConflictException- 409 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createDiscoverer
default CreateDiscovererResponse createDiscoverer(Consumer<CreateDiscovererRequest.Builder> createDiscovererRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, ConflictException, AwsServiceException, SdkClientException, SchemasException
Creates a discoverer.
This is a convenience which creates an instance of the
CreateDiscovererRequest.Builderavoiding the need to create one manually viaCreateDiscovererRequest.builder()- Parameters:
createDiscovererRequest- AConsumerthat will call methods onCreateDiscovererRequest.Builderto create a request.- Returns:
- Result of the CreateDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseInternalServerErrorException- 500 responseUnauthorizedException- 401 responseForbiddenException- 403 responseServiceUnavailableException- 503 responseConflictException- 409 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createRegistry
default CreateRegistryResponse createRegistry(CreateRegistryRequest createRegistryRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, ConflictException, AwsServiceException, SdkClientException, SchemasException
Creates a registry.
- Parameters:
createRegistryRequest-- Returns:
- Result of the CreateRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseInternalServerErrorException- 500 responseUnauthorizedException- 401 responseForbiddenException- 403 responseServiceUnavailableException- 503 responseConflictException- 409 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createRegistry
default CreateRegistryResponse createRegistry(Consumer<CreateRegistryRequest.Builder> createRegistryRequest) throws BadRequestException, InternalServerErrorException, UnauthorizedException, ForbiddenException, ServiceUnavailableException, ConflictException, AwsServiceException, SdkClientException, SchemasException
Creates a registry.
This is a convenience which creates an instance of the
CreateRegistryRequest.Builderavoiding the need to create one manually viaCreateRegistryRequest.builder()- Parameters:
createRegistryRequest- AConsumerthat will call methods onCreateRegistryRequest.Builderto create a request.- Returns:
- Result of the CreateRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseInternalServerErrorException- 500 responseUnauthorizedException- 401 responseForbiddenException- 403 responseServiceUnavailableException- 503 responseConflictException- 409 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSchema
default CreateSchemaResponse createSchema(CreateSchemaRequest createSchemaRequest) throws ServiceUnavailableException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Creates a schema definition.
Inactive schemas will be deleted after two years.
- Parameters:
createSchemaRequest-- Returns:
- Result of the CreateSchema operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
createSchema
default CreateSchemaResponse createSchema(Consumer<CreateSchemaRequest.Builder> createSchemaRequest) throws ServiceUnavailableException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Creates a schema definition.
Inactive schemas will be deleted after two years.
This is a convenience which creates an instance of the
CreateSchemaRequest.Builderavoiding the need to create one manually viaCreateSchemaRequest.builder()- Parameters:
createSchemaRequest- AConsumerthat will call methods onCreateSchemaRequest.Builderto create a request.- Returns:
- Result of the CreateSchema operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDiscoverer
default DeleteDiscovererResponse deleteDiscoverer(DeleteDiscovererRequest deleteDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Deletes a discoverer.
- Parameters:
deleteDiscovererRequest-- Returns:
- Result of the DeleteDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteDiscoverer
default DeleteDiscovererResponse deleteDiscoverer(Consumer<DeleteDiscovererRequest.Builder> deleteDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Deletes a discoverer.
This is a convenience which creates an instance of the
DeleteDiscovererRequest.Builderavoiding the need to create one manually viaDeleteDiscovererRequest.builder()- Parameters:
deleteDiscovererRequest- AConsumerthat will call methods onDeleteDiscovererRequest.Builderto create a request.- Returns:
- Result of the DeleteDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteRegistry
default DeleteRegistryResponse deleteRegistry(DeleteRegistryRequest deleteRegistryRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Deletes a Registry.
- Parameters:
deleteRegistryRequest-- Returns:
- Result of the DeleteRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteRegistry
default DeleteRegistryResponse deleteRegistry(Consumer<DeleteRegistryRequest.Builder> deleteRegistryRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Deletes a Registry.
This is a convenience which creates an instance of the
DeleteRegistryRequest.Builderavoiding the need to create one manually viaDeleteRegistryRequest.builder()- Parameters:
deleteRegistryRequest- AConsumerthat will call methods onDeleteRegistryRequest.Builderto create a request.- Returns:
- Result of the DeleteRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(DeleteResourcePolicyRequest deleteResourcePolicyRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Delete the resource-based policy attached to the specified registry.
- Parameters:
deleteResourcePolicyRequest-- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteResourcePolicy
default DeleteResourcePolicyResponse deleteResourcePolicy(Consumer<DeleteResourcePolicyRequest.Builder> deleteResourcePolicyRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Delete the resource-based policy attached to the specified registry.
This is a convenience which creates an instance of the
DeleteResourcePolicyRequest.Builderavoiding the need to create one manually viaDeleteResourcePolicyRequest.builder()- Parameters:
deleteResourcePolicyRequest- AConsumerthat will call methods onDeleteResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the DeleteResourcePolicy operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSchema
default DeleteSchemaResponse deleteSchema(DeleteSchemaRequest deleteSchemaRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Delete a schema definition.
- Parameters:
deleteSchemaRequest-- Returns:
- Result of the DeleteSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSchema
default DeleteSchemaResponse deleteSchema(Consumer<DeleteSchemaRequest.Builder> deleteSchemaRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Delete a schema definition.
This is a convenience which creates an instance of the
DeleteSchemaRequest.Builderavoiding the need to create one manually viaDeleteSchemaRequest.builder()- Parameters:
deleteSchemaRequest- AConsumerthat will call methods onDeleteSchemaRequest.Builderto create a request.- Returns:
- Result of the DeleteSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSchemaVersion
default DeleteSchemaVersionResponse deleteSchemaVersion(DeleteSchemaVersionRequest deleteSchemaVersionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Delete the schema version definition
- Parameters:
deleteSchemaVersionRequest-- Returns:
- Result of the DeleteSchemaVersion operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
deleteSchemaVersion
default DeleteSchemaVersionResponse deleteSchemaVersion(Consumer<DeleteSchemaVersionRequest.Builder> deleteSchemaVersionRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Delete the schema version definition
This is a convenience which creates an instance of the
DeleteSchemaVersionRequest.Builderavoiding the need to create one manually viaDeleteSchemaVersionRequest.builder()- Parameters:
deleteSchemaVersionRequest- AConsumerthat will call methods onDeleteSchemaVersionRequest.Builderto create a request.- Returns:
- Result of the DeleteSchemaVersion operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeCodeBinding
default DescribeCodeBindingResponse describeCodeBinding(DescribeCodeBindingRequest describeCodeBindingRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Describe the code binding URI.
- Parameters:
describeCodeBindingRequest-- Returns:
- Result of the DescribeCodeBinding operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeCodeBinding
default DescribeCodeBindingResponse describeCodeBinding(Consumer<DescribeCodeBindingRequest.Builder> describeCodeBindingRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Describe the code binding URI.
This is a convenience which creates an instance of the
DescribeCodeBindingRequest.Builderavoiding the need to create one manually viaDescribeCodeBindingRequest.builder()- Parameters:
describeCodeBindingRequest- AConsumerthat will call methods onDescribeCodeBindingRequest.Builderto create a request.- Returns:
- Result of the DescribeCodeBinding operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeDiscoverer
default DescribeDiscovererResponse describeDiscoverer(DescribeDiscovererRequest describeDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Describes the discoverer.
- Parameters:
describeDiscovererRequest-- Returns:
- Result of the DescribeDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeDiscoverer
default DescribeDiscovererResponse describeDiscoverer(Consumer<DescribeDiscovererRequest.Builder> describeDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Describes the discoverer.
This is a convenience which creates an instance of the
DescribeDiscovererRequest.Builderavoiding the need to create one manually viaDescribeDiscovererRequest.builder()- Parameters:
describeDiscovererRequest- AConsumerthat will call methods onDescribeDiscovererRequest.Builderto create a request.- Returns:
- Result of the DescribeDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeRegistry
default DescribeRegistryResponse describeRegistry(DescribeRegistryRequest describeRegistryRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Describes the registry.
- Parameters:
describeRegistryRequest-- Returns:
- Result of the DescribeRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeRegistry
default DescribeRegistryResponse describeRegistry(Consumer<DescribeRegistryRequest.Builder> describeRegistryRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Describes the registry.
This is a convenience which creates an instance of the
DescribeRegistryRequest.Builderavoiding the need to create one manually viaDescribeRegistryRequest.builder()- Parameters:
describeRegistryRequest- AConsumerthat will call methods onDescribeRegistryRequest.Builderto create a request.- Returns:
- Result of the DescribeRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSchema
default DescribeSchemaResponse describeSchema(DescribeSchemaRequest describeSchemaRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Retrieve the schema definition.
- Parameters:
describeSchemaRequest-- Returns:
- Result of the DescribeSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
describeSchema
default DescribeSchemaResponse describeSchema(Consumer<DescribeSchemaRequest.Builder> describeSchemaRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Retrieve the schema definition.
This is a convenience which creates an instance of the
DescribeSchemaRequest.Builderavoiding the need to create one manually viaDescribeSchemaRequest.builder()- Parameters:
describeSchemaRequest- AConsumerthat will call methods onDescribeSchemaRequest.Builderto create a request.- Returns:
- Result of the DescribeSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
exportSchema
default ExportSchemaResponse exportSchema(ExportSchemaRequest exportSchemaRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Invokes the ExportSchema operation.- Parameters:
exportSchemaRequest-- Returns:
- Result of the ExportSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
exportSchema
default ExportSchemaResponse exportSchema(Consumer<ExportSchemaRequest.Builder> exportSchemaRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Invokes the ExportSchema operation.
This is a convenience which creates an instance of the
ExportSchemaRequest.Builderavoiding the need to create one manually viaExportSchemaRequest.builder()- Parameters:
exportSchemaRequest- AConsumerthat will call methods onExportSchemaRequest.Builderto create a request.- Returns:
- Result of the ExportSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getCodeBindingSource
default GetCodeBindingSourceResponse getCodeBindingSource(GetCodeBindingSourceRequest getCodeBindingSourceRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Get the code binding source URI.
- Parameters:
getCodeBindingSourceRequest-- Returns:
- Result of the GetCodeBindingSource operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getCodeBindingSource
default GetCodeBindingSourceResponse getCodeBindingSource(Consumer<GetCodeBindingSourceRequest.Builder> getCodeBindingSourceRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Get the code binding source URI.
This is a convenience which creates an instance of the
GetCodeBindingSourceRequest.Builderavoiding the need to create one manually viaGetCodeBindingSourceRequest.builder()- Parameters:
getCodeBindingSourceRequest- AConsumerthat will call methods onGetCodeBindingSourceRequest.Builderto create a request.- Returns:
- Result of the GetCodeBindingSource operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDiscoveredSchema
default GetDiscoveredSchemaResponse getDiscoveredSchema(GetDiscoveredSchemaRequest getDiscoveredSchemaRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Get the discovered schema that was generated based on sampled events.
- Parameters:
getDiscoveredSchemaRequest-- Returns:
- Result of the GetDiscoveredSchema operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getDiscoveredSchema
default GetDiscoveredSchemaResponse getDiscoveredSchema(Consumer<GetDiscoveredSchemaRequest.Builder> getDiscoveredSchemaRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Get the discovered schema that was generated based on sampled events.
This is a convenience which creates an instance of the
GetDiscoveredSchemaRequest.Builderavoiding the need to create one manually viaGetDiscoveredSchemaRequest.builder()- Parameters:
getDiscoveredSchemaRequest- AConsumerthat will call methods onGetDiscoveredSchemaRequest.Builderto create a request.- Returns:
- Result of the GetDiscoveredSchema operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(GetResourcePolicyRequest getResourcePolicyRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Retrieves the resource-based policy attached to a given registry.
- Parameters:
getResourcePolicyRequest-- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
getResourcePolicy
default GetResourcePolicyResponse getResourcePolicy(Consumer<GetResourcePolicyRequest.Builder> getResourcePolicyRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Retrieves the resource-based policy attached to a given registry.
This is a convenience which creates an instance of the
GetResourcePolicyRequest.Builderavoiding the need to create one manually viaGetResourcePolicyRequest.builder()- Parameters:
getResourcePolicyRequest- AConsumerthat will call methods onGetResourcePolicyRequest.Builderto create a request.- Returns:
- Result of the GetResourcePolicy operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDiscoverers
default ListDiscoverersResponse listDiscoverers(ListDiscoverersRequest listDiscoverersRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the discoverers.
- Parameters:
listDiscoverersRequest-- Returns:
- Result of the ListDiscoverers operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDiscoverers
default ListDiscoverersResponse listDiscoverers(Consumer<ListDiscoverersRequest.Builder> listDiscoverersRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the discoverers.
This is a convenience which creates an instance of the
ListDiscoverersRequest.Builderavoiding the need to create one manually viaListDiscoverersRequest.builder()- Parameters:
listDiscoverersRequest- AConsumerthat will call methods onListDiscoverersRequest.Builderto create a request.- Returns:
- Result of the ListDiscoverers operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDiscoverersPaginator
default ListDiscoverersIterable listDiscoverersPaginator(ListDiscoverersRequest listDiscoverersRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the discoverers.
This is a variant of
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListDiscoverersIterable responses = client.listDiscoverersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListDiscoverersIterable responses = client .listDiscoverersPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListDiscoverersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListDiscoverersIterable responses = client.listDiscoverersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest)operation.- Parameters:
listDiscoverersRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listDiscoverersPaginator
default ListDiscoverersIterable listDiscoverersPaginator(Consumer<ListDiscoverersRequest.Builder> listDiscoverersRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the discoverers.
This is a variant of
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListDiscoverersIterable responses = client.listDiscoverersPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListDiscoverersIterable responses = client .listDiscoverersPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListDiscoverersResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListDiscoverersIterable responses = client.listDiscoverersPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listDiscoverers(software.amazon.awssdk.services.schemas.model.ListDiscoverersRequest)operation.This is a convenience which creates an instance of the
ListDiscoverersRequest.Builderavoiding the need to create one manually viaListDiscoverersRequest.builder()- Parameters:
listDiscoverersRequest- AConsumerthat will call methods onListDiscoverersRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRegistries
default ListRegistriesResponse listRegistries(ListRegistriesRequest listRegistriesRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the registries.
- Parameters:
listRegistriesRequest-- Returns:
- Result of the ListRegistries operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRegistries
default ListRegistriesResponse listRegistries(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the registries.
This is a convenience which creates an instance of the
ListRegistriesRequest.Builderavoiding the need to create one manually viaListRegistriesRequest.builder()- Parameters:
listRegistriesRequest- AConsumerthat will call methods onListRegistriesRequest.Builderto create a request.- Returns:
- Result of the ListRegistries operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRegistriesPaginator
default ListRegistriesIterable listRegistriesPaginator(ListRegistriesRequest listRegistriesRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the registries.
This is a variant of
listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListRegistriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest)operation.- Parameters:
listRegistriesRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listRegistriesPaginator
default ListRegistriesIterable listRegistriesPaginator(Consumer<ListRegistriesRequest.Builder> listRegistriesRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the registries.
This is a variant of
listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListRegistriesResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListRegistriesIterable responses = client.listRegistriesPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listRegistries(software.amazon.awssdk.services.schemas.model.ListRegistriesRequest)operation.This is a convenience which creates an instance of the
ListRegistriesRequest.Builderavoiding the need to create one manually viaListRegistriesRequest.builder()- Parameters:
listRegistriesRequest- AConsumerthat will call methods onListRegistriesRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemaVersions
default ListSchemaVersionsResponse listSchemaVersions(ListSchemaVersionsRequest listSchemaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Provides a list of the schema versions and related information.
- Parameters:
listSchemaVersionsRequest-- Returns:
- Result of the ListSchemaVersions operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemaVersions
default ListSchemaVersionsResponse listSchemaVersions(Consumer<ListSchemaVersionsRequest.Builder> listSchemaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Provides a list of the schema versions and related information.
This is a convenience which creates an instance of the
ListSchemaVersionsRequest.Builderavoiding the need to create one manually viaListSchemaVersionsRequest.builder()- Parameters:
listSchemaVersionsRequest- AConsumerthat will call methods onListSchemaVersionsRequest.Builderto create a request.- Returns:
- Result of the ListSchemaVersions operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemaVersionsPaginator
default ListSchemaVersionsIterable listSchemaVersionsPaginator(ListSchemaVersionsRequest listSchemaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Provides a list of the schema versions and related information.
This is a variant of
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsIterable responses = client.listSchemaVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsIterable responses = client .listSchemaVersionsPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListSchemaVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsIterable responses = client.listSchemaVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest)operation.- Parameters:
listSchemaVersionsRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemaVersionsPaginator
default ListSchemaVersionsIterable listSchemaVersionsPaginator(Consumer<ListSchemaVersionsRequest.Builder> listSchemaVersionsRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Provides a list of the schema versions and related information.
This is a variant of
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsIterable responses = client.listSchemaVersionsPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsIterable responses = client .listSchemaVersionsPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListSchemaVersionsResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListSchemaVersionsIterable responses = client.listSchemaVersionsPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSchemaVersions(software.amazon.awssdk.services.schemas.model.ListSchemaVersionsRequest)operation.This is a convenience which creates an instance of the
ListSchemaVersionsRequest.Builderavoiding the need to create one manually viaListSchemaVersionsRequest.builder()- Parameters:
listSchemaVersionsRequest- AConsumerthat will call methods onListSchemaVersionsRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemas
default ListSchemasResponse listSchemas(ListSchemasRequest listSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the schemas.
- Parameters:
listSchemasRequest-- Returns:
- Result of the ListSchemas operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemas
default ListSchemasResponse listSchemas(Consumer<ListSchemasRequest.Builder> listSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the schemas.
This is a convenience which creates an instance of the
ListSchemasRequest.Builderavoiding the need to create one manually viaListSchemasRequest.builder()- Parameters:
listSchemasRequest- AConsumerthat will call methods onListSchemasRequest.Builderto create a request.- Returns:
- Result of the ListSchemas operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemasPaginator
default ListSchemasIterable listSchemasPaginator(ListSchemasRequest listSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the schemas.
This is a variant of
listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListSchemasIterable responses = client.listSchemasPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListSchemasIterable responses = client.listSchemasPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListSchemasResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListSchemasIterable responses = client.listSchemasPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest)operation.- Parameters:
listSchemasRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listSchemasPaginator
default ListSchemasIterable listSchemasPaginator(Consumer<ListSchemasRequest.Builder> listSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
List the schemas.
This is a variant of
listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.ListSchemasIterable responses = client.listSchemasPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.ListSchemasIterable responses = client.listSchemasPaginator(request); for (software.amazon.awssdk.services.schemas.model.ListSchemasResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.ListSchemasIterable responses = client.listSchemasPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
listSchemas(software.amazon.awssdk.services.schemas.model.ListSchemasRequest)operation.This is a convenience which creates an instance of the
ListSchemasRequest.Builderavoiding the need to create one manually viaListSchemasRequest.builder()- Parameters:
listSchemasRequest- AConsumerthat will call methods onListSchemasRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(ListTagsForResourceRequest listTagsForResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Get tags for resource.
- Parameters:
listTagsForResourceRequest-- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
NotFoundException- 404 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
listTagsForResource
default ListTagsForResourceResponse listTagsForResource(Consumer<ListTagsForResourceRequest.Builder> listTagsForResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Get tags for resource.
This is a convenience which creates an instance of the
ListTagsForResourceRequest.Builderavoiding the need to create one manually viaListTagsForResourceRequest.builder()- Parameters:
listTagsForResourceRequest- AConsumerthat will call methods onListTagsForResourceRequest.Builderto create a request.- Returns:
- Result of the ListTagsForResource operation returned by the service.
- Throws:
NotFoundException- 404 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putCodeBinding
default PutCodeBindingResponse putCodeBinding(PutCodeBindingRequest putCodeBindingRequest) throws GoneException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Put code binding URI
- Parameters:
putCodeBindingRequest-- Returns:
- Result of the PutCodeBinding operation returned by the service.
- Throws:
GoneException- 410 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putCodeBinding
default PutCodeBindingResponse putCodeBinding(Consumer<PutCodeBindingRequest.Builder> putCodeBindingRequest) throws GoneException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, TooManyRequestsException, AwsServiceException, SdkClientException, SchemasException
Put code binding URI
This is a convenience which creates an instance of the
PutCodeBindingRequest.Builderavoiding the need to create one manually viaPutCodeBindingRequest.builder()- Parameters:
putCodeBindingRequest- AConsumerthat will call methods onPutCodeBindingRequest.Builderto create a request.- Returns:
- Result of the PutCodeBinding operation returned by the service.
- Throws:
GoneException- 410 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseTooManyRequestsException- 429 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(PutResourcePolicyRequest putResourcePolicyRequest) throws BadRequestException, UnauthorizedException, PreconditionFailedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
The name of the policy.
- Parameters:
putResourcePolicyRequest- The name of the policy.- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responsePreconditionFailedException- 412 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
putResourcePolicy
default PutResourcePolicyResponse putResourcePolicy(Consumer<PutResourcePolicyRequest.Builder> putResourcePolicyRequest) throws BadRequestException, UnauthorizedException, PreconditionFailedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
The name of the policy.
This is a convenience which creates an instance of the
PutResourcePolicyRequest.Builderavoiding the need to create one manually viaPutResourcePolicyRequest.builder()- Parameters:
putResourcePolicyRequest- AConsumerthat will call methods onPutResourcePolicyRequest.Builderto create a request. The name of the policy.- Returns:
- Result of the PutResourcePolicy operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responsePreconditionFailedException- 412 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchSchemas
default SearchSchemasResponse searchSchemas(SearchSchemasRequest searchSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Search the schemas
- Parameters:
searchSchemasRequest-- Returns:
- Result of the SearchSchemas operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchSchemas
default SearchSchemasResponse searchSchemas(Consumer<SearchSchemasRequest.Builder> searchSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Search the schemas
This is a convenience which creates an instance of the
SearchSchemasRequest.Builderavoiding the need to create one manually viaSearchSchemasRequest.builder()- Parameters:
searchSchemasRequest- AConsumerthat will call methods onSearchSchemasRequest.Builderto create a request.- Returns:
- Result of the SearchSchemas operation returned by the service.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchSchemasPaginator
default SearchSchemasIterable searchSchemasPaginator(SearchSchemasRequest searchSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Search the schemas
This is a variant of
searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.SearchSchemasIterable responses = client.searchSchemasPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.SearchSchemasIterable responses = client.searchSchemasPaginator(request); for (software.amazon.awssdk.services.schemas.model.SearchSchemasResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.SearchSchemasIterable responses = client.searchSchemasPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest)operation.- Parameters:
searchSchemasRequest-- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
searchSchemasPaginator
default SearchSchemasIterable searchSchemasPaginator(Consumer<SearchSchemasRequest.Builder> searchSchemasRequest) throws ServiceUnavailableException, BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Search the schemas
This is a variant of
searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest)operation. The return type is a custom iterable that can be used to iterate through all the pages. SDK will internally handle making service calls for you.When this operation is called, a custom iterable is returned but no service calls are made yet. So there is no guarantee that the request is valid. As you iterate through the iterable, SDK will start lazily loading response pages by making service calls until there are no pages left or your iteration stops. If there are errors in your request, you will see the failures only after you start iterating through the iterable.
The following are few ways to iterate through the response pages:
1) Using a Stream
2) Using For loopsoftware.amazon.awssdk.services.schemas.paginators.SearchSchemasIterable responses = client.searchSchemasPaginator(request); responses.stream().forEach(....);{ @code software.amazon.awssdk.services.schemas.paginators.SearchSchemasIterable responses = client.searchSchemasPaginator(request); for (software.amazon.awssdk.services.schemas.model.SearchSchemasResponse response : responses) { // do something; } }3) Use iterator directlysoftware.amazon.awssdk.services.schemas.paginators.SearchSchemasIterable responses = client.searchSchemasPaginator(request); responses.iterator().forEachRemaining(....);Please notice that the configuration of Limit won't limit the number of results you get with the paginator. It only limits the number of results in each page.
Note: If you prefer to have control on service calls, use the
searchSchemas(software.amazon.awssdk.services.schemas.model.SearchSchemasRequest)operation.This is a convenience which creates an instance of the
SearchSchemasRequest.Builderavoiding the need to create one manually viaSearchSchemasRequest.builder()- Parameters:
searchSchemasRequest- AConsumerthat will call methods onSearchSchemasRequest.Builderto create a request.- Returns:
- A custom iterable that can be used to iterate through all the response pages.
- Throws:
ServiceUnavailableException- 503 responseBadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startDiscoverer
default StartDiscovererResponse startDiscoverer(StartDiscovererRequest startDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Starts the discoverer
- Parameters:
startDiscovererRequest-- Returns:
- Result of the StartDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
startDiscoverer
default StartDiscovererResponse startDiscoverer(Consumer<StartDiscovererRequest.Builder> startDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Starts the discoverer
This is a convenience which creates an instance of the
StartDiscovererRequest.Builderavoiding the need to create one manually viaStartDiscovererRequest.builder()- Parameters:
startDiscovererRequest- AConsumerthat will call methods onStartDiscovererRequest.Builderto create a request.- Returns:
- Result of the StartDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopDiscoverer
default StopDiscovererResponse stopDiscoverer(StopDiscovererRequest stopDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Stops the discoverer
- Parameters:
stopDiscovererRequest-- Returns:
- Result of the StopDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
stopDiscoverer
default StopDiscovererResponse stopDiscoverer(Consumer<StopDiscovererRequest.Builder> stopDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Stops the discoverer
This is a convenience which creates an instance of the
StopDiscovererRequest.Builderavoiding the need to create one manually viaStopDiscovererRequest.builder()- Parameters:
stopDiscovererRequest- AConsumerthat will call methods onStopDiscovererRequest.Builderto create a request.- Returns:
- Result of the StopDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(TagResourceRequest tagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Add tags to a resource.
- Parameters:
tagResourceRequest-- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
NotFoundException- 404 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
tagResource
default TagResourceResponse tagResource(Consumer<TagResourceRequest.Builder> tagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Add tags to a resource.
This is a convenience which creates an instance of the
TagResourceRequest.Builderavoiding the need to create one manually viaTagResourceRequest.builder()- Parameters:
tagResourceRequest- AConsumerthat will call methods onTagResourceRequest.Builderto create a request.- Returns:
- Result of the TagResource operation returned by the service.
- Throws:
NotFoundException- 404 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(UntagResourceRequest untagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Removes tags from a resource.
- Parameters:
untagResourceRequest-- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
NotFoundException- 404 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
untagResource
default UntagResourceResponse untagResource(Consumer<UntagResourceRequest.Builder> untagResourceRequest) throws NotFoundException, BadRequestException, InternalServerErrorException, ForbiddenException, AwsServiceException, SdkClientException, SchemasException
Removes tags from a resource.
This is a convenience which creates an instance of the
UntagResourceRequest.Builderavoiding the need to create one manually viaUntagResourceRequest.builder()- Parameters:
untagResourceRequest- AConsumerthat will call methods onUntagResourceRequest.Builderto create a request.- Returns:
- Result of the UntagResource operation returned by the service.
- Throws:
NotFoundException- 404 responseBadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateDiscoverer
default UpdateDiscovererResponse updateDiscoverer(UpdateDiscovererRequest updateDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Updates the discoverer
- Parameters:
updateDiscovererRequest-- Returns:
- Result of the UpdateDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateDiscoverer
default UpdateDiscovererResponse updateDiscoverer(Consumer<UpdateDiscovererRequest.Builder> updateDiscovererRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Updates the discoverer
This is a convenience which creates an instance of the
UpdateDiscovererRequest.Builderavoiding the need to create one manually viaUpdateDiscovererRequest.builder()- Parameters:
updateDiscovererRequest- AConsumerthat will call methods onUpdateDiscovererRequest.Builderto create a request.- Returns:
- Result of the UpdateDiscoverer operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateRegistry
default UpdateRegistryResponse updateRegistry(UpdateRegistryRequest updateRegistryRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Updates a registry.
- Parameters:
updateRegistryRequest- Updates the registry.- Returns:
- Result of the UpdateRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateRegistry
default UpdateRegistryResponse updateRegistry(Consumer<UpdateRegistryRequest.Builder> updateRegistryRequest) throws BadRequestException, UnauthorizedException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Updates a registry.
This is a convenience which creates an instance of the
UpdateRegistryRequest.Builderavoiding the need to create one manually viaUpdateRegistryRequest.builder()- Parameters:
updateRegistryRequest- AConsumerthat will call methods onUpdateRegistryRequest.Builderto create a request. Updates the registry.- Returns:
- Result of the UpdateRegistry operation returned by the service.
- Throws:
BadRequestException- 400 responseUnauthorizedException- 401 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateSchema
default UpdateSchemaResponse updateSchema(UpdateSchemaRequest updateSchemaRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Updates the schema definition
Inactive schemas will be deleted after two years.
- Parameters:
updateSchemaRequest-- Returns:
- Result of the UpdateSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
updateSchema
default UpdateSchemaResponse updateSchema(Consumer<UpdateSchemaRequest.Builder> updateSchemaRequest) throws BadRequestException, InternalServerErrorException, ForbiddenException, NotFoundException, ServiceUnavailableException, AwsServiceException, SdkClientException, SchemasException
Updates the schema definition
Inactive schemas will be deleted after two years.
This is a convenience which creates an instance of the
UpdateSchemaRequest.Builderavoiding the need to create one manually viaUpdateSchemaRequest.builder()- Parameters:
updateSchemaRequest- AConsumerthat will call methods onUpdateSchemaRequest.Builderto create a request.- Returns:
- Result of the UpdateSchema operation returned by the service.
- Throws:
BadRequestException- 400 responseInternalServerErrorException- 500 responseForbiddenException- 403 responseNotFoundException- 404 responseServiceUnavailableException- 503 responseSdkException- Base class for all exceptions that can be thrown by the SDK (both service and client). Can be used for catch all scenarios.SdkClientException- If any client side error occurs such as an IO related failure, failure to get credentials, etc.SchemasException- Base class for all service exceptions. Unknown exceptions will be thrown as an instance of this type.AwsServiceException- See Also:
- AWS API Documentation
-
waiter
default SchemasWaiter waiter()
Create an instance ofSchemasWaiterusing this client.Waiters created via this method are managed by the SDK and resources will be released when the service client is closed.
- Returns:
- an instance of
SchemasWaiter
-
create
static SchemasClient create()
Create aSchemasClientwith the region loaded from theDefaultAwsRegionProviderChainand credentials loaded from theDefaultCredentialsProvider.
-
builder
static SchemasClientBuilder builder()
Create a builder that can be used to configure and create aSchemasClient.
-
serviceMetadata
static ServiceMetadata serviceMetadata()
-
serviceClientConfiguration
default SchemasServiceClientConfiguration serviceClientConfiguration()
- Specified by:
serviceClientConfigurationin interfaceAwsClient- Specified by:
serviceClientConfigurationin interfaceSdkClient
-
-