public CreateGrantRequest withAllowedOperations(AllowedOperation... allowedOperations) {
        java.util.ArrayList<String> allowedOperationsCopy = new java.util.ArrayList<String>(allowedOperations.length);
        for (AllowedOperation value : allowedOperations) {
            allowedOperationsCopy.add(value.toString());
        }
        if (getAllowedOperations() == null) {
            setAllowedOperations(allowedOperationsCopy);
        } else {
            getAllowedOperations().addAll(allowedOperationsCopy);
        }
        return this;
    }
<p>
Allowed operations for the grant.
</p>

@param allowedOperations
       Allowed operations for the grant.
@return Returns a reference to this object so that method calls can be chained together.
@see AllowedOperation
aws-java-sdk-licensemanager/src/main/java/com/amazonaws/services/licensemanager/model/CreateGrantRequest.java