Class SetPermissionRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.opsworks.model.OpsWorksRequest
-
- software.amazon.awssdk.services.opsworks.model.SetPermissionRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<SetPermissionRequest.Builder,SetPermissionRequest>
@Generated("software.amazon.awssdk:codegen") public final class SetPermissionRequest extends OpsWorksRequest implements ToCopyableBuilder<SetPermissionRequest.Builder,SetPermissionRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceSetPermissionRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanallowSsh()The user is allowed to use SSH to communicate with the instance.BooleanallowSudo()The user is allowed to use sudo to elevate privileges.static SetPermissionRequest.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringiamUserArn()The user's IAM ARN.Stringlevel()The user's permission level, which must be set to one of the following strings.List<SdkField<?>>sdkFields()static Class<? extends SetPermissionRequest.Builder>serializableBuilderClass()StringstackId()The stack ID.SetPermissionRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
stackId
public final String stackId()
The stack ID.
- Returns:
- The stack ID.
-
iamUserArn
public final String iamUserArn()
The user's IAM ARN. This can also be a federated user's ARN.
- Returns:
- The user's IAM ARN. This can also be a federated user's ARN.
-
allowSsh
public final Boolean allowSsh()
The user is allowed to use SSH to communicate with the instance.
- Returns:
- The user is allowed to use SSH to communicate with the instance.
-
allowSudo
public final Boolean allowSudo()
The user is allowed to use sudo to elevate privileges.
- Returns:
- The user is allowed to use sudo to elevate privileges.
-
level
public final String level()
The user's permission level, which must be set to one of the following strings. You cannot set your own permissions level.
-
deny -
show -
deploy -
manage -
iam_only
For more information about the permissions associated with these levels, see Managing User Permissions.
- Returns:
- The user's permission level, which must be set to one of the following strings. You cannot set your own
permissions level.
-
deny -
show -
deploy -
manage -
iam_only
For more information about the permissions associated with these levels, see Managing User Permissions.
-
-
-
toBuilder
public SetPermissionRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<SetPermissionRequest.Builder,SetPermissionRequest>- Specified by:
toBuilderin classOpsWorksRequest
-
builder
public static SetPermissionRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends SetPermissionRequest.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
-
-