Class PermissionEntry
- java.lang.Object
-
- software.amazon.awssdk.services.grafana.model.PermissionEntry
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<PermissionEntry.Builder,PermissionEntry>
@Generated("software.amazon.awssdk:codegen") public final class PermissionEntry extends Object implements SdkPojo, Serializable, ToCopyableBuilder<PermissionEntry.Builder,PermissionEntry>
A structure containing the identity of one user or group and the
Admin,Editor, orViewerrole that they have.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePermissionEntry.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PermissionEntry.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Rolerole()Specifies whether the user or group has theAdmin,Editor, orViewerrole.StringroleAsString()Specifies whether the user or group has theAdmin,Editor, orViewerrole.List<SdkField<?>>sdkFields()static Class<? extends PermissionEntry.Builder>serializableBuilderClass()PermissionEntry.BuildertoBuilder()StringtoString()Returns a string representation of this object.Useruser()A structure with the ID of the user or group with this role.-
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
-
role
public final Role role()
Specifies whether the user or group has the
Admin,Editor, orViewerrole.If the service returns an enum value that is not available in the current SDK version,
rolewill returnRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- Specifies whether the user or group has the
Admin,Editor, orViewerrole. - See Also:
Role
-
roleAsString
public final String roleAsString()
Specifies whether the user or group has the
Admin,Editor, orViewerrole.If the service returns an enum value that is not available in the current SDK version,
rolewill returnRole.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleAsString().- Returns:
- Specifies whether the user or group has the
Admin,Editor, orViewerrole. - See Also:
Role
-
user
public final User user()
A structure with the ID of the user or group with this role.
- Returns:
- A structure with the ID of the user or group with this role.
-
toBuilder
public PermissionEntry.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<PermissionEntry.Builder,PermissionEntry>
-
builder
public static PermissionEntry.Builder builder()
-
serializableBuilderClass
public static Class<? extends PermissionEntry.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.
-
-