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

com.softlayer.api.service.resource.group.Role Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.resource.group;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.resource.group.member.role.Link;
import java.util.ArrayList;
import java.util.List;

/**
 * @see SoftLayer_Resource_Group_Role
 */
@ApiType("SoftLayer_Resource_Group_Role")
public class Role extends Entity {

    /**
     * A resource group's role.
     */
    @ApiProperty
    protected List memberLinks;

    public List getMemberLinks() {
        if (memberLinks == null) {
            memberLinks = new ArrayList();
        }
        return memberLinks;
    }

    /**
     * A resource group role's description.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String description;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        descriptionSpecified = true;
        this.description = description;
    }

    protected boolean descriptionSpecified;

    public boolean isDescriptionSpecified() {
        return descriptionSpecified;
    }

    public void unsetDescription() {
        description = null;
        descriptionSpecified = false;
    }

    /**
     * A resource group role's ID.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        idSpecified = true;
        this.id = id;
    }

    protected boolean idSpecified;

    public boolean isIdSpecified() {
        return idSpecified;
    }

    public void unsetId() {
        id = null;
        idSpecified = false;
    }

    /**
     * A resource group role's keyname.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String keyName;

    public String getKeyName() {
        return keyName;
    }

    public void setKeyName(String keyName) {
        keyNameSpecified = true;
        this.keyName = keyName;
    }

    protected boolean keyNameSpecified;

    public boolean isKeyNameSpecified() {
        return keyNameSpecified;
    }

    public void unsetKeyName() {
        keyName = null;
        keyNameSpecified = false;
    }

    /**
     * A count of a resource group's role.
     */
    @ApiProperty
    protected Long memberLinkCount;

    public Long getMemberLinkCount() {
        return memberLinkCount;
    }

    public void setMemberLinkCount(Long memberLinkCount) {
        this.memberLinkCount = memberLinkCount;
    }

    public static class Mask extends com.softlayer.api.service.Entity.Mask {

        public com.softlayer.api.service.resource.group.member.role.Link.Mask memberLinks() {
            return withSubMask("memberLinks", com.softlayer.api.service.resource.group.member.role.Link.Mask.class);
        }

        public Mask description() {
            withLocalProperty("description");
            return this;
        }

        public Mask id() {
            withLocalProperty("id");
            return this;
        }

        public Mask keyName() {
            withLocalProperty("keyName");
            return this;
        }

        public Mask memberLinkCount() {
            withLocalProperty("memberLinkCount");
            return this;
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy