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
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description CreateWorkspaceServiceAccountTokenResponse.BuilderserviceAccountId(String serviceAccountId)The ID of the service account where the token was created.default CreateWorkspaceServiceAccountTokenResponse.BuilderserviceAccountToken(Consumer<ServiceAccountTokenSummaryWithKey.Builder> serviceAccountToken)Information about the created token, including the key.CreateWorkspaceServiceAccountTokenResponse.BuilderserviceAccountToken(ServiceAccountTokenSummaryWithKey serviceAccountToken)Information about the created token, including the key.CreateWorkspaceServiceAccountTokenResponse.BuilderworkspaceId(String workspaceId)The ID of the workspace where the token was created.-
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, sdkFields
-
Methods inherited from interface software.amazon.awssdk.core.SdkResponse.Builder
sdkHttpResponse, sdkHttpResponse
-
-
-
-
Method Detail
-
serviceAccountId
CreateWorkspaceServiceAccountTokenResponse.Builder serviceAccountId(String 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:
serviceAccountToken(ServiceAccountTokenSummaryWithKey)
-
workspaceId
CreateWorkspaceServiceAccountTokenResponse.Builder workspaceId(String 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.
-
-