@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AddonPodIdentityAssociations extends Object implements Serializable, Cloneable, StructuredPojo
A type of Pod Identity Association owned by an Amazon EKS Add-on.
Each EKS Pod Identity Association maps a role to a service account in a namespace in the cluster.
For more information, see Attach an IAM Role to an Amazon EKS add-on using Pod Identity in the EKS User Guide.
Constructor and Description |
---|
AddonPodIdentityAssociations() |
Modifier and Type | Method and Description |
---|---|
AddonPodIdentityAssociations |
clone() |
boolean |
equals(Object obj) |
String |
getRoleArn()
The ARN of an IAM Role.
|
String |
getServiceAccount()
The name of a Kubernetes Service Account.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setRoleArn(String roleArn)
The ARN of an IAM Role.
|
void |
setServiceAccount(String serviceAccount)
The name of a Kubernetes Service Account.
|
String |
toString()
Returns a string representation of this object.
|
AddonPodIdentityAssociations |
withRoleArn(String roleArn)
The ARN of an IAM Role.
|
AddonPodIdentityAssociations |
withServiceAccount(String serviceAccount)
The name of a Kubernetes Service Account.
|
public void setServiceAccount(String serviceAccount)
The name of a Kubernetes Service Account.
serviceAccount
- The name of a Kubernetes Service Account.public String getServiceAccount()
The name of a Kubernetes Service Account.
public AddonPodIdentityAssociations withServiceAccount(String serviceAccount)
The name of a Kubernetes Service Account.
serviceAccount
- The name of a Kubernetes Service Account.public void setRoleArn(String roleArn)
The ARN of an IAM Role.
roleArn
- The ARN of an IAM Role.public String getRoleArn()
The ARN of an IAM Role.
public AddonPodIdentityAssociations withRoleArn(String roleArn)
The ARN of an IAM Role.
roleArn
- The ARN of an IAM Role.public String toString()
toString
in class Object
Object.toString()
public AddonPodIdentityAssociations clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.