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

com.softlayer.api.service.container.authentication.response.Common Maven / Gradle / Ivy

The newest version!
package com.softlayer.api.service.container.authentication.response;

import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.container.authentication.response.Account;
import java.util.ArrayList;
import java.util.List;

/**
 * The SoftLayer_Container_Authentication_Response_Common data type contains common information for responses from the getPortalLogin API. This is an abstract class that serves as a base that more specialized classes will derive from. For example, a response class that is specific to a successful response from the getPortalLogin API. 
 *
 * @see SoftLayer_Container_Authentication_Response_Common
 */
@ApiType("SoftLayer_Container_Authentication_Response_Common")
public class Common extends Entity {

    /**
     * The list of linked accounts for the authenticated SoftLayer customer portal user.
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected List accounts;

    public List getAccounts() {
        if (accounts == null) {
            accounts = new ArrayList();
        }
        return accounts;
    }

    protected boolean accountsSpecified;

    public boolean isAccountsSpecified() {
        return accountsSpecified;
    }

    public void unsetAccounts() {
        accounts = null;
        accountsSpecified = false;
    }

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

        public Account.Mask accounts() {
            return withSubMask("accounts", Account.Mask.class);
        }

    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy