Class Principal
- java.lang.Object
-
- software.amazon.awssdk.services.lexmodelsv2.model.Principal
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Principal.Builder,Principal>
@Generated("software.amazon.awssdk:codegen") public final class Principal extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Principal.Builder,Principal>
The IAM principal that you allowing or denying access to an Amazon Lex action. You must provide a
serviceor anarn, but not both in the same statement. For more information, see AWS JSON policy elements: Principal .- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfacePrincipal.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringarn()The Amazon Resource Name (ARN) of the principal.static Principal.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()List<SdkField<?>>sdkFields()static Class<? extends Principal.Builder>serializableBuilderClass()Stringservice()The name of the Amazon Web Services service that should allowed or denied access to an Amazon Lex action.Principal.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
-
service
public final String service()
The name of the Amazon Web Services service that should allowed or denied access to an Amazon Lex action.
- Returns:
- The name of the Amazon Web Services service that should allowed or denied access to an Amazon Lex action.
-
arn
public final String arn()
The Amazon Resource Name (ARN) of the principal.
- Returns:
- The Amazon Resource Name (ARN) of the principal.
-
toBuilder
public Principal.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Principal.Builder,Principal>
-
builder
public static Principal.Builder builder()
-
serializableBuilderClass
public static Class<? extends Principal.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.
-
-