package com.atlassian.bitbucket.internal.mirroring.mirror.rest.cloud;

import com.atlassian.bitbucket.rest.RestMapEntity;

import javax.annotation.Nonnull;

import static java.util.Objects.requireNonNull;

public class RestCloudPermissionRequest extends RestMapEntity {

    private static final String TYPE = "type";
    private static final String VALUE = "value";

    // for Jackson
    public RestCloudPermissionRequest() {
    }

    public RestCloudPermissionRequest(@Nonnull String type, @Nonnull String value) {
        put(TYPE, requireNonNull(type, "type"));
        put(VALUE, requireNonNull(value, "value"));
    }

}
