Interface CreateWorkspaceServiceAccountTokenResponse.Builder
- All Superinterfaces:
AwsResponse.Builder,Buildable,CopyableBuilder<CreateWorkspaceServiceAccountTokenResponse.Builder,,CreateWorkspaceServiceAccountTokenResponse> GrafanaResponse.Builder,SdkBuilder<CreateWorkspaceServiceAccountTokenResponse.Builder,,CreateWorkspaceServiceAccountTokenResponse> SdkPojo,SdkResponse.Builder
- Enclosing class:
CreateWorkspaceServiceAccountTokenResponse
public static interface CreateWorkspaceServiceAccountTokenResponse.Builder
extends GrafanaResponse.Builder, SdkPojo, CopyableBuilder<CreateWorkspaceServiceAccountTokenResponse.Builder,CreateWorkspaceServiceAccountTokenResponse>
-
Method Summary
Modifier and TypeMethodDescriptionserviceAccountId(String serviceAccountId) The ID of the service account where the token was created.serviceAccountToken(Consumer<ServiceAccountTokenSummaryWithKey.Builder> serviceAccountToken) Information about the created token, including the key.serviceAccountToken(ServiceAccountTokenSummaryWithKey serviceAccountToken) Information about the created token, including the key.workspaceId(String workspaceId) The ID of the workspace where the token was created.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
-
serviceAccountId
The ID of the service account where the token was created.
- Parameters:
serviceAccountId- The ID of the service account where the token was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccountToken
CreateWorkspaceServiceAccountTokenResponse.Builder serviceAccountToken(ServiceAccountTokenSummaryWithKey serviceAccountToken) Information about the created token, including the key. Be sure to store the key securely.
- Parameters:
serviceAccountToken- Information about the created token, including the key. Be sure to store the key securely.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
serviceAccountToken
default CreateWorkspaceServiceAccountTokenResponse.Builder serviceAccountToken(Consumer<ServiceAccountTokenSummaryWithKey.Builder> serviceAccountToken) Information about the created token, including the key. Be sure to store the key securely.
This is a convenience method that creates an instance of theServiceAccountTokenSummaryWithKey.Builderavoiding the need to create one manually viaServiceAccountTokenSummaryWithKey.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toserviceAccountToken(ServiceAccountTokenSummaryWithKey).- Parameters:
serviceAccountToken- a consumer that will call methods onServiceAccountTokenSummaryWithKey.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 token was created.
- Parameters:
workspaceId- The ID of the workspace where the token was created.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-