Class ServiceAccountTokenSummaryWithKey
- java.lang.Object
-
- software.amazon.awssdk.services.grafana.model.ServiceAccountTokenSummaryWithKey
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceAccountTokenSummaryWithKey.Builder,ServiceAccountTokenSummaryWithKey>
@Generated("software.amazon.awssdk:codegen") public final class ServiceAccountTokenSummaryWithKey extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceAccountTokenSummaryWithKey.Builder,ServiceAccountTokenSummaryWithKey>
A structure that contains the information about a service account token.
This structure is returned when creating the token. It is important to store the
keythat is returned, as it is not retrievable at a later time.If you lose the key, you can delete and recreate the token, which will create a new key.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceAccountTokenSummaryWithKey.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceAccountTokenSummaryWithKey.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringid()The unique ID of the service account token.Stringkey()The key for the service account token.Stringname()The name of the service account token.List<SdkField<?>>sdkFields()static Class<? extends ServiceAccountTokenSummaryWithKey.Builder>serializableBuilderClass()ServiceAccountTokenSummaryWithKey.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
id
public final String id()
The unique ID of the service account token.
- Returns:
- The unique ID of the service account token.
-
key
public final String key()
The key for the service account token. Used when making calls to the Grafana HTTP APIs to authenticate and authorize the requests.
- Returns:
- The key for the service account token. Used when making calls to the Grafana HTTP APIs to authenticate and authorize the requests.
-
name
public final String name()
The name of the service account token.
- Returns:
- The name of the service account token.
-
toBuilder
public ServiceAccountTokenSummaryWithKey.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceAccountTokenSummaryWithKey.Builder,ServiceAccountTokenSummaryWithKey>
-
builder
public static ServiceAccountTokenSummaryWithKey.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceAccountTokenSummaryWithKey.Builder> serializableBuilderClass()
-
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.
-
-