Interface ListReceivedGrantsForOrganizationResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListReceivedGrantsForOrganizationResponse.Builder,
,ListReceivedGrantsForOrganizationResponse> LicenseManagerResponse.Builder
,SdkBuilder<ListReceivedGrantsForOrganizationResponse.Builder,
,ListReceivedGrantsForOrganizationResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListReceivedGrantsForOrganizationResponse
public static interface ListReceivedGrantsForOrganizationResponse.Builder
extends LicenseManagerResponse.Builder, SdkPojo, CopyableBuilder<ListReceivedGrantsForOrganizationResponse.Builder,ListReceivedGrantsForOrganizationResponse>
-
Method Summary
Modifier and TypeMethodDescriptiongrants
(Collection<Grant> grants) Lists the grants the organization has received.grants
(Consumer<Grant.Builder>... grants) Lists the grants the organization has received.Lists the grants the organization has received.Token for the next set of results.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.licensemanager.model.LicenseManagerResponse.Builder
build, responseMetadata, responseMetadata
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
grants
Lists the grants the organization has received.
- Parameters:
grants
- Lists the grants the organization has received.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
Lists the grants the organization has received.
- Parameters:
grants
- Lists the grants the organization has received.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
grants
Lists the grants the organization has received.
This is a convenience method that creates an instance of theGrant.Builder
avoiding the need to create one manually viaGrant.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed togrants(List<Grant>)
.- Parameters:
grants
- a consumer that will call methods onGrant.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
Token for the next set of results.
- Parameters:
nextToken
- Token for the next set of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-