Interface SearchPrincipalsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CloudWatchOmniResponse.Builder,CopyableBuilder<SearchPrincipalsResponse.Builder,,SearchPrincipalsResponse> SdkBuilder<SearchPrincipalsResponse.Builder,,SearchPrincipalsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
SearchPrincipalsResponse
@Mutable
@NotThreadSafe
public static interface SearchPrincipalsResponse.Builder
extends CloudWatchOmniResponse.Builder, SdkPojo, CopyableBuilder<SearchPrincipalsResponse.Builder,SearchPrincipalsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionA token to retrieve the next page of results, or null if there are no more results.results(Collection<PrincipalSearchResult> results) The list of matching principals.results(Consumer<PrincipalSearchResult.Builder>... results) The list of matching principals.results(PrincipalSearchResult... results) The list of matching principals.Methods inherited from interface software.amazon.awssdk.services.cloudwatchomni.model.CloudWatchOmniResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFieldsMethods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
results
The list of matching principals.
- Parameters:
results- The list of matching principals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The list of matching principals.
- Parameters:
results- The list of matching principals.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
results
The list of matching principals.
This is a convenience method that creates an instance of thePrincipalSearchResult.Builderavoiding the need to create one manually viaPrincipalSearchResult.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toresults(List<PrincipalSearchResult>).- Parameters:
results- a consumer that will call methods onPrincipalSearchResult.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
A token to retrieve the next page of results, or null if there are no more results.
- Parameters:
nextToken- A token to retrieve the next page of results, or null if there are no more results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-