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

com.codepine.api.testrail.TestRailConfig Maven / Gradle / Ivy

// Generated by delombok at Sat Feb 27 13:39:32 PST 2016
/*
 * The MIT License (MIT)
 *
 * Copyright (c) 2015 Kunal Shah
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */
package com.codepine.api.testrail;

import com.google.common.base.Optional;
import lombok.*;

/**
 * Configuration for using this client library.
 */
final class TestRailConfig {
    private final String baseApiUrl;
    private final String username;
    private final String password;
    private final Optional applicationName;

    TestRailConfig(final String baseApiUrl, final String username, final String password, final String applicationName) {
        this.baseApiUrl = baseApiUrl;
        this.username = username;
        this.password = password;
        this.applicationName = Optional.fromNullable(applicationName);
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getBaseApiUrl() {
        return this.baseApiUrl;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getUsername() {
        return this.username;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String getPassword() {
        return this.password;
    }

    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public Optional getApplicationName() {
        return this.applicationName;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public boolean equals(final Object o) {
        if (o == this) return true;
        if (!(o instanceof TestRailConfig)) return false;
        final TestRailConfig other = (TestRailConfig)o;
        final Object this$baseApiUrl = this.getBaseApiUrl();
        final Object other$baseApiUrl = other.getBaseApiUrl();
        if (this$baseApiUrl == null ? other$baseApiUrl != null : !this$baseApiUrl.equals(other$baseApiUrl)) return false;
        final Object this$username = this.getUsername();
        final Object other$username = other.getUsername();
        if (this$username == null ? other$username != null : !this$username.equals(other$username)) return false;
        final Object this$password = this.getPassword();
        final Object other$password = other.getPassword();
        if (this$password == null ? other$password != null : !this$password.equals(other$password)) return false;
        final Object this$applicationName = this.getApplicationName();
        final Object other$applicationName = other.getApplicationName();
        if (this$applicationName == null ? other$applicationName != null : !this$applicationName.equals(other$applicationName)) return false;
        return true;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public int hashCode() {
        final int PRIME = 59;
        int result = 1;
        final Object $baseApiUrl = this.getBaseApiUrl();
        result = result * PRIME + ($baseApiUrl == null ? 0 : $baseApiUrl.hashCode());
        final Object $username = this.getUsername();
        result = result * PRIME + ($username == null ? 0 : $username.hashCode());
        final Object $password = this.getPassword();
        result = result * PRIME + ($password == null ? 0 : $password.hashCode());
        final Object $applicationName = this.getApplicationName();
        result = result * PRIME + ($applicationName == null ? 0 : $applicationName.hashCode());
        return result;
    }

    @Override
    @SuppressWarnings("all")
    @javax.annotation.Generated("lombok")
    public String toString() {
        return "TestRailConfig(baseApiUrl=" + this.getBaseApiUrl() + ", username=" + this.getUsername() + ", applicationName=" + this.getApplicationName() + ")";
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy