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

com.yahoo.athenz.zms.DanglingPolicy Maven / Gradle / Ivy

There is a newer version: 1.12.5
Show newest version
//
// This file generated by rdl 1.5.2. Do not modify!
//

package com.yahoo.athenz.zms;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.yahoo.rdl.*;

//
// DanglingPolicy - A dangling policy where the assertion is referencing a role
// name that doesn't exist in the domain
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class DanglingPolicy {
    public String policyName;
    public String roleName;

    public DanglingPolicy setPolicyName(String policyName) {
        this.policyName = policyName;
        return this;
    }
    public String getPolicyName() {
        return policyName;
    }
    public DanglingPolicy setRoleName(String roleName) {
        this.roleName = roleName;
        return this;
    }
    public String getRoleName() {
        return roleName;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != DanglingPolicy.class) {
                return false;
            }
            DanglingPolicy a = (DanglingPolicy) another;
            if (policyName == null ? a.policyName != null : !policyName.equals(a.policyName)) {
                return false;
            }
            if (roleName == null ? a.roleName != null : !roleName.equals(a.roleName)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy