Interface SearchOpportunitiesRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<SearchOpportunitiesRequest.Builder,,SearchOpportunitiesRequest> PartnerCentralSellingRequest.Builder,SdkBuilder<SearchOpportunitiesRequest.Builder,,SearchOpportunitiesRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
SearchOpportunitiesRequest
-
Method Summary
Modifier and TypeMethodDescriptionSpecifies the catalog in which you run the search.A recursive, structured filter tree.filter(OpportunitySearchFilter filter) A recursive, structured filter tree.An optional free-text query string matched against opportunity fields.maxResults(Integer maxResults) The maximum number of results to return in a single call.A pagination token returned by a previous call.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.Specifies the field and direction used to sort the search results.sort(OpportunitySearchSort sort) Specifies the field and direction used to sort the search results.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.partnercentralselling.model.PartnerCentralSellingRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
catalog
Specifies the catalog in which you run the search. Use
AWSto search production opportunities, or useSandboxto search opportunities in a testing environment.- Parameters:
catalog- Specifies the catalog in which you run the search. UseAWSto search production opportunities, or useSandboxto search opportunities in a testing environment.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
maxResults
The maximum number of results to return in a single call. Use this value to control pagination together with
NextToken. If you omit this parameter, the service applies a default page size and returns the remaining results on subsequent pages.- Parameters:
maxResults- The maximum number of results to return in a single call. Use this value to control pagination together withNextToken. If you omit this parameter, the service applies a default page size and returns the remaining results on subsequent pages.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
nextToken
A pagination token returned by a previous call. Pass it in a subsequent call to retrieve the next page of results. Omit it on the first call.
- Parameters:
nextToken- A pagination token returned by a previous call. Pass it in a subsequent call to retrieve the next page of results. Omit it on the first call.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
keyword
An optional free-text query string matched against opportunity fields. When provided together with
Filter, both narrow the result set.- Parameters:
keyword- An optional free-text query string matched against opportunity fields. When provided together withFilter, both narrow the result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
A recursive, structured filter tree. Each node is either a boolean combinator (
AndAllFilters,OrAllFilters, orNotFilter) or a leaf predicate (a single comparison such asEqualsTo). When provided together withKeyword, both narrow the result set.- Parameters:
filter- A recursive, structured filter tree. Each node is either a boolean combinator (AndAllFilters,OrAllFilters, orNotFilter) or a leaf predicate (a single comparison such asEqualsTo). When provided together withKeyword, both narrow the result set.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
filter
A recursive, structured filter tree. Each node is either a boolean combinator (
This is a convenience method that creates an instance of theAndAllFilters,OrAllFilters, orNotFilter) or a leaf predicate (a single comparison such asEqualsTo). When provided together withKeyword, both narrow the result set.OpportunitySearchFilter.Builderavoiding the need to create one manually viaOpportunitySearchFilter.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tofilter(OpportunitySearchFilter).- Parameters:
filter- a consumer that will call methods onOpportunitySearchFilter.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
sort
Specifies the field and direction used to sort the search results.
- Parameters:
sort- Specifies the field and direction used to sort the search results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
sort
Specifies the field and direction used to sort the search results.
This is a convenience method that creates an instance of theOpportunitySearchSort.Builderavoiding the need to create one manually viaOpportunitySearchSort.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tosort(OpportunitySearchSort).- Parameters:
sort- a consumer that will call methods onOpportunitySearchSort.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
SearchOpportunitiesRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
SearchOpportunitiesRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-