public SpekeKeyProvider withRoleArn(String roleArn) {
        setRoleArn(roleArn);
        return this;
    }
<p>
The ARN for the IAM role granted by the key provider that provides access to the key provider API. This role must
have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient permissions policy
to allow access to the specific key retrieval URL. Get this from your DRM solution provider.
</p>
<p>
Valid format: <code>arn:aws:iam::{accountID}:role/{name}</code>. The following example shows a role ARN:
<code>arn:aws:iam::444455556666:role/SpekeAccess</code>
</p>

@param roleArn
       The ARN for the IAM role granted by the key provider that provides access to the key provider API. This
       role must have a trust policy that allows MediaPackage to assume the role, and it must have a sufficient
       permissions policy to allow access to the specific key retrieval URL. Get this from your DRM solution
       provider.</p>
       <p>
       Valid format: <code>arn:aws:iam::{accountID}:role/{name}</code>. The following example shows a role ARN:
       <code>arn:aws:iam::444455556666:role/SpekeAccess</code>
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-mediapackagev2/src/main/java/com/amazonaws/services/mediapackagev2/model/SpekeKeyProvider.java