Class CreateWorkspaceApiKeyRequest
- 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.CreateWorkspaceApiKeyRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateWorkspaceApiKeyRequest.Builder,CreateWorkspaceApiKeyRequest>
@Generated("software.amazon.awssdk:codegen") public final class CreateWorkspaceApiKeyRequest extends GrafanaRequest implements ToCopyableBuilder<CreateWorkspaceApiKeyRequest.Builder,CreateWorkspaceApiKeyRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceCreateWorkspaceApiKeyRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CreateWorkspaceApiKeyRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringkeyName()Specifies the name of the key.StringkeyRole()Specifies the permission level of the key.List<SdkField<?>>sdkFields()IntegersecondsToLive()Specifies the time in seconds until the key expires.static Class<? extends CreateWorkspaceApiKeyRequest.Builder>serializableBuilderClass()CreateWorkspaceApiKeyRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.StringworkspaceId()The ID of the workspace to create an API key.-
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
-
keyName
public final String keyName()
Specifies the name of the key. Keynames must be unique to the workspace.
- Returns:
- Specifies the name of the key. Keynames must be unique to the workspace.
-
keyRole
public final String keyRole()
Specifies the permission level of the key.
Valid values:
ADMIN|EDITOR|VIEWER- Returns:
- Specifies the permission level of the key.
Valid values:
ADMIN|EDITOR|VIEWER
-
secondsToLive
public final Integer secondsToLive()
Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
- Returns:
- Specifies the time in seconds until the key expires. Keys can be valid for up to 30 days.
-
workspaceId
public final String workspaceId()
The ID of the workspace to create an API key.
- Returns:
- The ID of the workspace to create an API key.
-
toBuilder
public CreateWorkspaceApiKeyRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateWorkspaceApiKeyRequest.Builder,CreateWorkspaceApiKeyRequest>- Specified by:
toBuilderin classGrafanaRequest
-
builder
public static CreateWorkspaceApiKeyRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends CreateWorkspaceApiKeyRequest.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
-
-