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

io.swagger.models.resourcelisting.ApiKeyAuthorization Maven / Gradle / Ivy

There is a newer version: 1.0.71
Show newest version
package io.swagger.models.resourcelisting;

import io.swagger.models.AuthorizationType;
import io.swagger.models.PassAs;

/**
 * Created by ron on 11/04/14.
 */
public class ApiKeyAuthorization extends Authorization {
    private PassAs passAs = null;
    private String keyname = null;

    public ApiKeyAuthorization() {
        setType(AuthorizationType.APIKEY);
    }

    public PassAs getPassAs() {
        return passAs;
    }

    public void setPassAs(PassAs passAs) {
        this.passAs = passAs;
    }

    public String getKeyname() {
        return keyname;
    }

    public void setKeyname(String keyname) {
        this.keyname = keyname;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append("class ApiKeyAuthorization {\n");
        sb.append("  type: ").append(getType()).append("\n");
        sb.append("  passAs: ").append(passAs).append("\n");
        sb.append("  keyname: ").append(keyname).append("\n");
        sb.append("  extraFields: ").append(getExtraFields()).append("\n");
        sb.append("}\n");
        return sb.toString();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy