Class Role
- java.lang.Object
-
- software.amazon.awssdk.services.auditmanager.model.Role
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Role.Builder,Role>
@Generated("software.amazon.awssdk:codegen") public final class Role extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Role.Builder,Role>
The wrapper that contains the Audit Manager role information of the current user. This includes the role type and IAM Amazon Resource Name (ARN).
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceRole.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Role.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringroleArn()The Amazon Resource Name (ARN) of the IAM role.RoleTyperoleType()The type of customer persona.StringroleTypeAsString()The type of customer persona.List<SdkField<?>>sdkFields()static Class<? extends Role.Builder>serializableBuilderClass()Role.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
-
roleType
public final RoleType roleType()
The type of customer persona.
In
CreateAssessment,roleTypecan only bePROCESS_OWNER.In
UpdateSettings,roleTypecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER.If the service returns an enum value that is not available in the current SDK version,
roleTypewill returnRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleTypeAsString().- Returns:
- The type of customer persona.
In
CreateAssessment,roleTypecan only bePROCESS_OWNER.In
UpdateSettings,roleTypecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER. - See Also:
RoleType
-
roleTypeAsString
public final String roleTypeAsString()
The type of customer persona.
In
CreateAssessment,roleTypecan only bePROCESS_OWNER.In
UpdateSettings,roleTypecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER.If the service returns an enum value that is not available in the current SDK version,
roleTypewill returnRoleType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromroleTypeAsString().- Returns:
- The type of customer persona.
In
CreateAssessment,roleTypecan only bePROCESS_OWNER.In
UpdateSettings,roleTypecan only bePROCESS_OWNER.In
BatchCreateDelegationByAssessment,roleTypecan only beRESOURCE_OWNER. - See Also:
RoleType
-
roleArn
public final String roleArn()
The Amazon Resource Name (ARN) of the IAM role.
- Returns:
- The Amazon Resource Name (ARN) of the IAM role.
-
toBuilder
public Role.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Role.Builder,Role>
-
builder
public static Role.Builder builder()
-
serializableBuilderClass
public static Class<? extends Role.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.
-
-