Interface ListPermissionVersionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListPermissionVersionsResponse.Builder,,ListPermissionVersionsResponse> RamResponse.Builder,SdkBuilder<ListPermissionVersionsResponse.Builder,,ListPermissionVersionsResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListPermissionVersionsResponse
@Mutable
@NotThreadSafe
public static interface ListPermissionVersionsResponse.Builder
extends RamResponse.Builder, SdkPojo, CopyableBuilder<ListPermissionVersionsResponse.Builder,ListPermissionVersionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionIf present, this value indicates that more output is available than is included in the current response.permissions(Collection<ResourceSharePermissionSummary> permissions) An array of objects that contain details for each of the available versions.permissions(Consumer<ResourceSharePermissionSummary.Builder>... permissions) An array of objects that contain details for each of the available versions.permissions(ResourceSharePermissionSummary... permissions) An array of objects that contain details for each of the available versions.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.ram.model.RamResponse.Builder
build, responseMetadata, responseMetadataMethods 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
-
permissions
ListPermissionVersionsResponse.Builder permissions(Collection<ResourceSharePermissionSummary> permissions) An array of objects that contain details for each of the available versions.
- Parameters:
permissions- An array of objects that contain details for each of the available versions.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
permissions
ListPermissionVersionsResponse.Builder permissions(Consumer<ResourceSharePermissionSummary.Builder>... permissions) An array of objects that contain details for each of the available versions.
This is a convenience method that creates an instance of theResourceSharePermissionSummary.Builderavoiding the need to create one manually viaResourceSharePermissionSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed topermissions(List<ResourceSharePermissionSummary>).- Parameters:
permissions- a consumer that will call methods onResourceSharePermissionSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
If present, this value indicates that more output is available than is included in the current response. Use this value in the
NextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull. This indicates that this is the last page of results.- Parameters:
nextToken- If present, this value indicates that more output is available than is included in the current response. Use this value in theNextTokenrequest parameter in a subsequent call to the operation to get the next part of the output. You should repeat this until theNextTokenresponse element comes back asnull. This indicates that this is the last page of results.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-