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

com.yahoo.athenz.zms.ResourceGroupOwnership 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.*;

//
// ResourceGroupOwnership - The representation of the group ownership object
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ResourceGroupOwnership {
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String metaOwner;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String membersOwner;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public String objectOwner;

    public ResourceGroupOwnership setMetaOwner(String metaOwner) {
        this.metaOwner = metaOwner;
        return this;
    }
    public String getMetaOwner() {
        return metaOwner;
    }
    public ResourceGroupOwnership setMembersOwner(String membersOwner) {
        this.membersOwner = membersOwner;
        return this;
    }
    public String getMembersOwner() {
        return membersOwner;
    }
    public ResourceGroupOwnership 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() != ResourceGroupOwnership.class) {
                return false;
            }
            ResourceGroupOwnership a = (ResourceGroupOwnership) another;
            if (metaOwner == null ? a.metaOwner != null : !metaOwner.equals(a.metaOwner)) {
                return false;
            }
            if (membersOwner == null ? a.membersOwner != null : !membersOwner.equals(a.membersOwner)) {
                return false;
            }
            if (objectOwner == null ? a.objectOwner != null : !objectOwner.equals(a.objectOwner)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy