All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.client.SphereApiConfigImpl Maven / Gradle / Ivy

There is a newer version: 1.0.0-M26
Show newest version
package io.sphere.sdk.client;

import io.sphere.sdk.models.Base;

import static io.sphere.sdk.client.ClientPackage.requireNonBlank;

final class SphereApiConfigImpl extends Base implements SphereApiConfig {
    private final String apiUrl;
    private final String projectKey;

    SphereApiConfigImpl(final String projectKey, final String apiUrl) {
        this.apiUrl = requireNonBlank(apiUrl, "apiUrl");
        this.projectKey = requireNonBlank(projectKey, "projectKey");
    }

    @Override
    public String getApiUrl() {
        return apiUrl;
    }

    @Override
    public String getProjectKey() {
        return projectKey;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy