Interface ListWorkspaceServiceAccountTokensResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<ListWorkspaceServiceAccountTokensResponse.Builder,,ListWorkspaceServiceAccountTokensResponse> GrafanaResponse.Builder,SdkBuilder<ListWorkspaceServiceAccountTokensResponse.Builder,,ListWorkspaceServiceAccountTokensResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
ListWorkspaceServiceAccountTokensResponse
public static interface ListWorkspaceServiceAccountTokensResponse.Builder
extends GrafanaResponse.Builder, SdkPojo, CopyableBuilder<ListWorkspaceServiceAccountTokensResponse.Builder,ListWorkspaceServiceAccountTokensResponse>
-
Method Summary
Modifier and TypeMethodDescriptionThe token to use when requesting the next set of service accounts.serviceAccountId(String serviceAccountId) The ID of the service account where the tokens reside.serviceAccountTokens(Collection<ServiceAccountTokenSummary> serviceAccountTokens) An array of structures containing information about the tokens.serviceAccountTokens(Consumer<ServiceAccountTokenSummary.Builder>... serviceAccountTokens) An array of structures containing information about the tokens.serviceAccountTokens(ServiceAccountTokenSummary... serviceAccountTokens) An array of structures containing information about the tokens.workspaceId(String workspaceId) The ID of the workspace where the tokens reside.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.grafana.model.GrafanaResponse.Builder
build, responseMetadata, responseMetadataMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldsMethods 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.
-
serviceAccountId
The ID of the service account where the tokens reside.
- Parameters:
serviceAccountId- The ID of the service account where the tokens reside.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccountTokens
ListWorkspaceServiceAccountTokensResponse.Builder serviceAccountTokens(Collection<ServiceAccountTokenSummary> serviceAccountTokens) An array of structures containing information about the tokens.
- Parameters:
serviceAccountTokens- An array of structures containing information about the tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccountTokens
ListWorkspaceServiceAccountTokensResponse.Builder serviceAccountTokens(ServiceAccountTokenSummary... serviceAccountTokens) An array of structures containing information about the tokens.
- Parameters:
serviceAccountTokens- An array of structures containing information about the tokens.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccountTokens
ListWorkspaceServiceAccountTokensResponse.Builder serviceAccountTokens(Consumer<ServiceAccountTokenSummary.Builder>... serviceAccountTokens) An array of structures containing information about the tokens.
This is a convenience method that creates an instance of theServiceAccountTokenSummary.Builderavoiding the need to create one manually viaServiceAccountTokenSummary.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserviceAccountTokens(List<ServiceAccountTokenSummary>).- Parameters:
serviceAccountTokens- a consumer that will call methods onServiceAccountTokenSummary.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
workspaceId
The ID of the workspace where the tokens reside.
- Parameters:
workspaceId- The ID of the workspace where the tokens reside.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-