Class Permission
- java.lang.Object
-
- software.amazon.awssdk.services.inspector2.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>
Contains information on the permissions an account has within Amazon Inspector.
- 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 static Permission.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Operationoperation()The operations that can be performed with the given permissions.StringoperationAsString()The operations that can be performed with the given permissions.List<SdkField<?>>sdkFields()static Class<? extends Permission.Builder>serializableBuilderClass()Serviceservice()The services that the permissions allow an account to perform the given operations for.StringserviceAsString()The services that the permissions allow an account to perform the given operations for.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
-
operation
public final Operation operation()
The operations that can be performed with the given permissions.
If the service returns an enum value that is not available in the current SDK version,
operationwill returnOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationAsString().- Returns:
- The operations that can be performed with the given permissions.
- See Also:
Operation
-
operationAsString
public final String operationAsString()
The operations that can be performed with the given permissions.
If the service returns an enum value that is not available in the current SDK version,
operationwill returnOperation.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromoperationAsString().- Returns:
- The operations that can be performed with the given permissions.
- See Also:
Operation
-
service
public final Service service()
The services that the permissions allow an account to perform the given operations for.
If the service returns an enum value that is not available in the current SDK version,
servicewill returnService.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserviceAsString().- Returns:
- The services that the permissions allow an account to perform the given operations for.
- See Also:
Service
-
serviceAsString
public final String serviceAsString()
The services that the permissions allow an account to perform the given operations for.
If the service returns an enum value that is not available in the current SDK version,
servicewill returnService.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromserviceAsString().- Returns:
- The services that the permissions allow an account to perform the given operations for.
- See Also:
Service
-
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.
-
-