public CreateServiceRequest withAuthType(AuthType authType) {
        this.authType = authType.toString();
        return this;
    }
<p>
The type of IAM policy.
</p>
<ul>
<li>
<p>
<code>NONE</code>: The resource does not use an IAM policy. This is the default.
</p>
</li>
<li>
<p>
<code>AWS_IAM</code>: The resource uses an IAM policy. When this type is used, auth is enabled and an auth policy
is required.
</p>
</li>
</ul>

@param authType
       The type of IAM policy.</p>
       <ul>
       <li>
       <p>
       <code>NONE</code>: The resource does not use an IAM policy. This is the default.
       </p>
       </li>
       <li>
       <p>
       <code>AWS_IAM</code>: The resource uses an IAM policy. When this type is used, auth is enabled and an auth
       policy is required.
       </p>
       </li>
@return Returns a reference to this object so that method calls can be chained together.
@see AuthType
aws-java-sdk-vpclattice/src/main/java/com/amazonaws/services/vpclattice/model/CreateServiceRequest.java