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

com.yahoo.athenz.zms.ResourcePolicyOwnership 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.fasterxml.jackson.annotation.JsonInclude;
import com.yahoo.rdl.*;

//
// ResourcePolicyOwnership - The representation of the policy ownership object
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResourcePolicyOwnership {
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String assertionsOwner;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String objectOwner;

    public ResourcePolicyOwnership setAssertionsOwner(String assertionsOwner) {
        this.assertionsOwner = assertionsOwner;
        return this;
    }
    public String getAssertionsOwner() {
        return assertionsOwner;
    }
    public ResourcePolicyOwnership setObjectOwner(String objectOwner) {
        this.objectOwner = objectOwner;
        return this;
    }
    public String getObjectOwner() {
        return objectOwner;
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy