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

com.softlayer.api.service.flexiblecredit.Affiliate Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.flexiblecredit;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.flexiblecredit.Program;

/**
 * @see SoftLayer_FlexibleCredit_Affiliate
 */
@ApiType("SoftLayer_FlexibleCredit_Affiliate")
public class Affiliate extends Entity {

    /**
     * Flexible Credit Program the affiliate belongs to.
     */
    @ApiProperty
    protected Program flexibleCreditProgram;

    public Program getFlexibleCreditProgram() {
        return flexibleCreditProgram;
    }

    public void setFlexibleCreditProgram(Program flexibleCreditProgram) {
        this.flexibleCreditProgram = flexibleCreditProgram;
    }

    /**
     * Primary ID for the affiliate
     */
    @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;
    }

    /**
     * Name of this affiliate
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        nameSpecified = true;
        this.name = name;
    }

    protected boolean nameSpecified;

    public boolean isNameSpecified() {
        return nameSpecified;
    }

    public void unsetName() {
        name = null;
        nameSpecified = false;
    }

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

        public Program.Mask flexibleCreditProgram() {
            return withSubMask("flexibleCreditProgram", Program.Mask.class);
        }

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

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

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy