Class Permission
- java.lang.Object
-
- software.amazon.awssdk.services.opsworks.model.Permission
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Permission.Builder,Permission>
@Generated("software.amazon.awssdk:codegen") public final class Permission extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Permission.Builder,Permission>
Describes stack or user permissions.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePermission.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowSsh()Whether the user can use SSH.BooleanallowSudo()Whether the user can use sudo.static Permission.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringiamUserArn()The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role.Stringlevel()The user's permission level, which must be the following:List<SdkField<?>>sdkFields()static Class<? extends Permission.Builder>serializableBuilderClass()StringstackId()A stack ID.Permission.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
-
stackId
public final String stackId()
A stack ID.
- Returns:
- A stack ID.
-
iamUserArn
public final String iamUserArn()
The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
- Returns:
- The Amazon Resource Name (ARN) for an AWS Identity and Access Management (IAM) role. For more information about IAM ARNs, see Using Identifiers.
-
allowSsh
public final Boolean allowSsh()
Whether the user can use SSH.
- Returns:
- Whether the user can use SSH.
-
allowSudo
public final Boolean allowSudo()
Whether the user can use sudo.
- Returns:
- Whether the user can use sudo.
-
level
public final String level()
The user's permission level, which must be the following:
-
deny -
show -
deploy -
manage -
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
- Returns:
- The user's permission level, which must be the following:
-
deny -
show -
deploy -
manage -
iam_only
For more information on the permissions associated with these levels, see Managing User Permissions
-
-
-
toBuilder
public Permission.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Permission.Builder,Permission>
-
builder
public static Permission.Builder builder()
-
serializableBuilderClass
public static Class<? extends Permission.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.
-
-