public PolicyGrantingServiceAccess withPolicyType(PolicyType policyType) {
        this.policyType = policyType.toString();
        return this;
    }
<p>
The policy type. 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 policyType
       The policy type. 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.
@see PolicyType
aws-java-sdk-iam/src/main/java/com/amazonaws/services/identitymanagement/model/PolicyGrantingServiceAccess.java