@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AuthorizedPrincipal extends Object implements Serializable, Cloneable, StructuredPojo
Information about an account or service that has access to an Amazon OpenSearch Service domain through the use of an interface VPC endpoint.
Constructor and Description |
---|
AuthorizedPrincipal() |
Modifier and Type | Method and Description |
---|---|
AuthorizedPrincipal |
clone() |
boolean |
equals(Object obj) |
String |
getPrincipal()
The IAM principal that is allowed access to the domain.
|
String |
getPrincipalType()
The type of principal.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPrincipal(String principal)
The IAM principal that is allowed access to the domain.
|
void |
setPrincipalType(String principalType)
The type of principal.
|
String |
toString()
Returns a string representation of this object.
|
AuthorizedPrincipal |
withPrincipal(String principal)
The IAM principal that is allowed access to the domain.
|
AuthorizedPrincipal |
withPrincipalType(PrincipalType principalType)
The type of principal.
|
AuthorizedPrincipal |
withPrincipalType(String principalType)
The type of principal.
|
public void setPrincipalType(String principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public String getPrincipalType()
The type of principal.
PrincipalType
public AuthorizedPrincipal withPrincipalType(String principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public AuthorizedPrincipal withPrincipalType(PrincipalType principalType)
The type of principal.
principalType
- The type of principal.PrincipalType
public void setPrincipal(String principal)
The IAM principal that is allowed access to the domain.
principal
- The IAM principal that is allowed access to the domain.public String getPrincipal()
The IAM principal that is allowed access to the domain.
public AuthorizedPrincipal withPrincipal(String principal)
The IAM principal that is allowed access to the domain.
principal
- The IAM principal that is allowed access to the domain.public String toString()
toString
in class Object
Object.toString()
public AuthorizedPrincipal clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.