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

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

//
// ProviderResourceGroupRoles - A representation of provider roles to be
// provisioned.
//
@JsonIgnoreProperties(ignoreUnknown = true)
public class ProviderResourceGroupRoles {
    public String domain;
    public String service;
    public String tenant;
    public List roles;
    public String resourceGroup;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public Boolean createAdminRole;
    @RdlOptional
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public Boolean skipPrincipalMember;

    public ProviderResourceGroupRoles setDomain(String domain) {
        this.domain = domain;
        return this;
    }
    public String getDomain() {
        return domain;
    }
    public ProviderResourceGroupRoles setService(String service) {
        this.service = service;
        return this;
    }
    public String getService() {
        return service;
    }
    public ProviderResourceGroupRoles setTenant(String tenant) {
        this.tenant = tenant;
        return this;
    }
    public String getTenant() {
        return tenant;
    }
    public ProviderResourceGroupRoles setRoles(List roles) {
        this.roles = roles;
        return this;
    }
    public List getRoles() {
        return roles;
    }
    public ProviderResourceGroupRoles setResourceGroup(String resourceGroup) {
        this.resourceGroup = resourceGroup;
        return this;
    }
    public String getResourceGroup() {
        return resourceGroup;
    }
    public ProviderResourceGroupRoles setCreateAdminRole(Boolean createAdminRole) {
        this.createAdminRole = createAdminRole;
        return this;
    }
    public Boolean getCreateAdminRole() {
        return createAdminRole;
    }
    public ProviderResourceGroupRoles setSkipPrincipalMember(Boolean skipPrincipalMember) {
        this.skipPrincipalMember = skipPrincipalMember;
        return this;
    }
    public Boolean getSkipPrincipalMember() {
        return skipPrincipalMember;
    }

    @Override
    public boolean equals(Object another) {
        if (this != another) {
            if (another == null || another.getClass() != ProviderResourceGroupRoles.class) {
                return false;
            }
            ProviderResourceGroupRoles a = (ProviderResourceGroupRoles) another;
            if (domain == null ? a.domain != null : !domain.equals(a.domain)) {
                return false;
            }
            if (service == null ? a.service != null : !service.equals(a.service)) {
                return false;
            }
            if (tenant == null ? a.tenant != null : !tenant.equals(a.tenant)) {
                return false;
            }
            if (roles == null ? a.roles != null : !roles.equals(a.roles)) {
                return false;
            }
            if (resourceGroup == null ? a.resourceGroup != null : !resourceGroup.equals(a.resourceGroup)) {
                return false;
            }
            if (createAdminRole == null ? a.createAdminRole != null : !createAdminRole.equals(a.createAdminRole)) {
                return false;
            }
            if (skipPrincipalMember == null ? a.skipPrincipalMember != null : !skipPrincipalMember.equals(a.skipPrincipalMember)) {
                return false;
            }
        }
        return true;
    }

    //
    // sets up the instance according to its default field values, if any
    //
    public ProviderResourceGroupRoles init() {
        if (createAdminRole == null) {
            createAdminRole = true;
        }
        if (skipPrincipalMember == null) {
            skipPrincipalMember = false;
        }
        return this;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy