Interface DescribeWorkspaceImagePermissionsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<DescribeWorkspaceImagePermissionsResponse.Builder,,DescribeWorkspaceImagePermissionsResponse> SdkBuilder<DescribeWorkspaceImagePermissionsResponse.Builder,,DescribeWorkspaceImagePermissionsResponse> SdkPojo,SdkResponse.Builder,WorkSpacesResponse.Builder
- Enclosing class:
DescribeWorkspaceImagePermissionsResponse
@Mutable
@NotThreadSafe
public static interface DescribeWorkspaceImagePermissionsResponse.Builder
extends WorkSpacesResponse.Builder, SdkPojo, CopyableBuilder<DescribeWorkspaceImagePermissionsResponse.Builder,DescribeWorkspaceImagePermissionsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe identifier of the image.imagePermissions(Collection<ImagePermission> imagePermissions) The identifiers of the Amazon Web Services accounts that the image has been shared with.imagePermissions(Consumer<ImagePermission.Builder>... imagePermissions) The identifiers of the Amazon Web Services accounts that the image has been shared with.imagePermissions(ImagePermission... imagePermissions) The identifiers of the Amazon Web Services accounts that the image has been shared with.The token to use to retrieve the next page of results.Methods 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, sdkHttpResponseMethods inherited from interface software.amazon.awssdk.services.workspaces.model.WorkSpacesResponse.Builder
build, responseMetadata, responseMetadata
-
Method Details
-
imageId
The identifier of the image.
- Parameters:
imageId- The identifier of the image.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePermissions
DescribeWorkspaceImagePermissionsResponse.Builder imagePermissions(Collection<ImagePermission> imagePermissions) The identifiers of the Amazon Web Services accounts that the image has been shared with.
- Parameters:
imagePermissions- The identifiers of the Amazon Web Services accounts that the image has been shared with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePermissions
DescribeWorkspaceImagePermissionsResponse.Builder imagePermissions(ImagePermission... imagePermissions) The identifiers of the Amazon Web Services accounts that the image has been shared with.
- Parameters:
imagePermissions- The identifiers of the Amazon Web Services accounts that the image has been shared with.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
imagePermissions
DescribeWorkspaceImagePermissionsResponse.Builder imagePermissions(Consumer<ImagePermission.Builder>... imagePermissions) The identifiers of the Amazon Web Services accounts that the image has been shared with.
This is a convenience method that creates an instance of theImagePermission.Builderavoiding the need to create one manually viaImagePermission.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toimagePermissions(List<ImagePermission>).- Parameters:
imagePermissions- a consumer that will call methods onImagePermission.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
nextToken
The token to use to retrieve the next page of results. This value is null when there are no more results to return.
- Parameters:
nextToken- The token to use to retrieve the next page of results. This value is null when there are no more results to return.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-