Class CreateWorkspaceServiceAccountTokenRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.grafana.model.GrafanaRequest
-
- software.amazon.awssdk.services.grafana.model.CreateWorkspaceServiceAccountTokenRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,CreateWorkspaceServiceAccountTokenRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateWorkspaceServiceAccountTokenRequest extends GrafanaRequest implements ToCopyableBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,CreateWorkspaceServiceAccountTokenRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateWorkspaceServiceAccountTokenRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateWorkspaceServiceAccountTokenRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()A name for the token to create.List<SdkField<?>>sdkFields()IntegersecondsToLive()Sets how long the token will be valid, in seconds.static Class<? extends CreateWorkspaceServiceAccountTokenRequest.Builder>serializableBuilderClass()StringserviceAccountId()The ID of the service account for which to create a token.CreateWorkspaceServiceAccountTokenRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringworkspaceId()The ID of the workspace the service account resides within.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
name
public final String name()
A name for the token to create.
- Returns:
- A name for the token to create.
-
secondsToLive
public final Integer secondsToLive()
Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
- Returns:
- Sets how long the token will be valid, in seconds. You can set the time up to 30 days in the future.
-
serviceAccountId
public final String serviceAccountId()
The ID of the service account for which to create a token.
- Returns:
- The ID of the service account for which to create a token.
-
workspaceId
public final String workspaceId()
The ID of the workspace the service account resides within.
- Returns:
- The ID of the workspace the service account resides within.
-
toBuilder
public CreateWorkspaceServiceAccountTokenRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateWorkspaceServiceAccountTokenRequest.Builder,CreateWorkspaceServiceAccountTokenRequest>- Specified by:
toBuilderin classGrafanaRequest
-
builder
public static CreateWorkspaceServiceAccountTokenRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateWorkspaceServiceAccountTokenRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-