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

com.yahoo.athenz.zms.Template 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 java.util.List;
import com.yahoo.rdl.*;

//
// Template - Solution Template object defined on the server
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class Template {
    public List roles;
    public List policies;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public List services;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public TemplateMetaData metadata;

    public Template setRoles(List roles) {
        this.roles = roles;
        return this;
    }
    public List getRoles() {
        return roles;
    }
    public Template setPolicies(List policies) {
        this.policies = policies;
        return this;
    }
    public List getPolicies() {
        return policies;
    }
    public Template setServices(List services) {
        this.services = services;
        return this;
    }
    public List getServices() {
        return services;
    }
    public Template setMetadata(TemplateMetaData metadata) {
        this.metadata = metadata;
        return this;
    }
    public TemplateMetaData getMetadata() {
        return metadata;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != Template.class) {
                return false;
            }
            Template a = (Template) another;
            if (roles == null ? a.roles != null : !roles.equals(a.roles)) {
                return false;
            }
            if (policies == null ? a.policies != null : !policies.equals(a.policies)) {
                return false;
            }
            if (services == null ? a.services != null : !services.equals(a.services)) {
                return false;
            }
            if (metadata == null ? a.metadata != null : !metadata.equals(a.metadata)) {
                return false;
            }
        }
        return true;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy