public CreateResourcePolicyStatementRequest withEffect(Effect effect) {
        this.effect = effect.toString();
        return this;
    }
<p>
Determines whether the statement allows or denies access to the resource.
</p>

@param effect
       Determines whether the statement allows or denies access to the resource.
@return Returns a reference to this object so that method calls can be chained together.
@see Effect
aws-java-sdk-lexmodelsv2/src/main/java/com/amazonaws/services/lexmodelsv2/model/CreateResourcePolicyStatementRequest.java