Interface ListWorkspaceServiceAccountsResponse.Builder
- All Superinterfaces:
AwsResponse.Builder
,Buildable
,CopyableBuilder<ListWorkspaceServiceAccountsResponse.Builder,
,ListWorkspaceServiceAccountsResponse> GrafanaResponse.Builder
,SdkBuilder<ListWorkspaceServiceAccountsResponse.Builder,
,ListWorkspaceServiceAccountsResponse> SdkPojo
,SdkResponse.Builder
- Enclosing class:
ListWorkspaceServiceAccountsResponse
@Mutable
@NotThreadSafe
public static interface ListWorkspaceServiceAccountsResponse.Builder
extends GrafanaResponse.Builder, SdkPojo, CopyableBuilder<ListWorkspaceServiceAccountsResponse.Builder,ListWorkspaceServiceAccountsResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use when requesting the next set of service accounts.serviceAccounts
(Collection<ServiceAccountSummary> serviceAccounts) An array of structures containing information about the service accounts.serviceAccounts
(Consumer<ServiceAccountSummary.Builder>... serviceAccounts) An array of structures containing information about the service accounts.serviceAccounts
(ServiceAccountSummary... serviceAccounts) An array of structures containing information about the service accounts.workspaceId
(String workspaceId) The workspace to which the service accounts are associated.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.grafana.model.GrafanaResponse.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, sdkFieldNameToField, sdkFields
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
Method Details
-
nextToken
The token to use when requesting the next set of service accounts.
- Parameters:
nextToken
- The token to use when requesting the next set of service accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccounts
ListWorkspaceServiceAccountsResponse.Builder serviceAccounts(Collection<ServiceAccountSummary> serviceAccounts) An array of structures containing information about the service accounts.
- Parameters:
serviceAccounts
- An array of structures containing information about the service accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccounts
ListWorkspaceServiceAccountsResponse.Builder serviceAccounts(ServiceAccountSummary... serviceAccounts) An array of structures containing information about the service accounts.
- Parameters:
serviceAccounts
- An array of structures containing information about the service accounts.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccounts
ListWorkspaceServiceAccountsResponse.Builder serviceAccounts(Consumer<ServiceAccountSummary.Builder>... serviceAccounts) An array of structures containing information about the service accounts.
This is a convenience method that creates an instance of theServiceAccountSummary.Builder
avoiding the need to create one manually viaServiceAccountSummary.builder()
.When the
Consumer
completes,SdkBuilder.build()
is called immediately and its result is passed toserviceAccounts(List<ServiceAccountSummary>)
.- Parameters:
serviceAccounts
- a consumer that will call methods onServiceAccountSummary.Builder
- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workspaceId
The workspace to which the service accounts are associated.
- Parameters:
workspaceId
- The workspace to which the service accounts are associated.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-