@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Principal extends Object implements Serializable, Cloneable, StructuredPojo
The IAM principal that you allowing or denying access to an Amazon Lex action. You must provide a
service
or an arn
, but not both in the same statement. For more information, see AWS JSON policy
elements: Principal .
Constructor and Description |
---|
Principal() |
Modifier and Type | Method and Description |
---|---|
Principal |
clone() |
boolean |
equals(Object obj) |
String |
getArn()
The Amazon Resource Name (ARN) of the principal.
|
String |
getService()
The name of the AWS service that should allowed or denied access to an Amazon Lex action.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setArn(String arn)
The Amazon Resource Name (ARN) of the principal.
|
void |
setService(String service)
The name of the AWS service that should allowed or denied access to an Amazon Lex action.
|
String |
toString()
Returns a string representation of this object.
|
Principal |
withArn(String arn)
The Amazon Resource Name (ARN) of the principal.
|
Principal |
withService(String service)
The name of the AWS service that should allowed or denied access to an Amazon Lex action.
|
public void setService(String service)
The name of the AWS service that should allowed or denied access to an Amazon Lex action.
service
- The name of the AWS service that should allowed or denied access to an Amazon Lex action.public String getService()
The name of the AWS service that should allowed or denied access to an Amazon Lex action.
public Principal withService(String service)
The name of the AWS service that should allowed or denied access to an Amazon Lex action.
service
- The name of the AWS service that should allowed or denied access to an Amazon Lex action.public void setArn(String arn)
The Amazon Resource Name (ARN) of the principal.
arn
- The Amazon Resource Name (ARN) of the principal.public String getArn()
The Amazon Resource Name (ARN) of the principal.
public Principal withArn(String arn)
The Amazon Resource Name (ARN) of the principal.
arn
- The Amazon Resource Name (ARN) of the principal.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.