public PolicyGrantingServiceAccess withEntityName(String entityName) {
        setEntityName(entityName);
        return this;
    }
<p>
The name of the entity (user or role) to which the inline policy is attached.
</p>
<p>
This field is null for managed policies. For more information about these policy types, see <a
href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html">Managed policies
and inline policies</a> in the <i>IAM User Guide</i>.
</p>

@param entityName
       The name of the entity (user or role) to which the inline policy is attached.</p>
       <p>
       This field is null for managed policies. For more information about these policy types, see <a
       href="https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_managed-vs-inline.html">Managed
       policies and inline policies</a> in the <i>IAM User Guide</i>.
@return Returns a reference to this object so that method calls can be chained together.
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/PolicyGrantingServiceAccess.java