public void setEntityType(String entityType) {
        this.entityType = entityType;
    }
<p>
The type of entity (user or role) that used the policy to access the service 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 entityType
       The type of entity (user or role) that used the policy to access the service 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>.
@see PolicyOwnerEntityType
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/PolicyGrantingServiceAccess.java