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

com.softlayer.api.service.configuration.template.section.Profile Maven / Gradle / Ivy

There is a newer version: 0.3.4
Show newest version
package com.softlayer.api.service.configuration.template.section;

import com.softlayer.api.ApiClient;
import com.softlayer.api.ResponseHandler;
import com.softlayer.api.annotation.ApiMethod;
import com.softlayer.api.annotation.ApiProperty;
import com.softlayer.api.annotation.ApiType;
import com.softlayer.api.service.Entity;
import com.softlayer.api.service.configuration.template.Section;
import java.util.GregorianCalendar;
import java.util.concurrent.Future;

/**
 * Some configuration templates let you create a unique configuration profiles. 
*
* For example, you can create multiple configuration profiles to monitor multiple hard drives with "CPU/Memory/Disk Monitoring Agent". SoftLayer_Configuration_Template_Section_Profile help you keep track of custom configuration profiles. * * @see SoftLayer_Configuration_Template_Section_Profile */ @ApiType("SoftLayer_Configuration_Template_Section_Profile") public class Profile extends Entity { @ApiProperty protected Section configurationSection; public Section getConfigurationSection() { return configurationSection; } public void setConfigurationSection(Section configurationSection) { this.configurationSection = configurationSection; } /** * Internal identifier of a monitoring agent this profile belongs to. */ @ApiProperty(canBeNullOrNotSet = true) protected Long agentId; public Long getAgentId() { return agentId; } public void setAgentId(Long agentId) { agentIdSpecified = true; this.agentId = agentId; } protected boolean agentIdSpecified; public boolean isAgentIdSpecified() { return agentIdSpecified; } public void unsetAgentId() { agentId = null; agentIdSpecified = false; } /** * Created date */ @ApiProperty(canBeNullOrNotSet = true) protected GregorianCalendar createDate; public GregorianCalendar getCreateDate() { return createDate; } public void setCreateDate(GregorianCalendar createDate) { createDateSpecified = true; this.createDate = createDate; } protected boolean createDateSpecified; public boolean isCreateDateSpecified() { return createDateSpecified; } public void unsetCreateDate() { createDate = null; createDateSpecified = false; } /** * Internal identifier of a configuration profile. */ @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 a configuration profile */ @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; } /** * Internal identifier of a configuration section that this profile belongs to. */ @ApiProperty(canBeNullOrNotSet = true) protected Long sectionId; public Long getSectionId() { return sectionId; } public void setSectionId(Long sectionId) { sectionIdSpecified = true; this.sectionId = sectionId; } protected boolean sectionIdSpecified; public boolean isSectionIdSpecified() { return sectionIdSpecified; } public void unsetSectionId() { sectionId = null; sectionIdSpecified = false; } public Service asService(ApiClient client) { return service(client, id); } public static Service service(ApiClient client) { return client.createService(Service.class, null); } public static Service service(ApiClient client, Long id) { return client.createService(Service.class, id == null ? null : id.toString()); } /** * SoftLayer_Configuration_Template_Section_Profile help you keep track of custom configuration profiles. * * @see SoftLayer_Configuration_Template_Section_Profile */ @com.softlayer.api.annotation.ApiService("SoftLayer_Configuration_Template_Section_Profile") public static interface Service extends com.softlayer.api.Service { public ServiceAsync asAsync(); public Mask withNewMask(); public Mask withMask(); public void setMask(Mask mask); /** * @see SoftLayer_Configuration_Template_Section_Profile::getObject */ @ApiMethod(instanceRequired = true) public Profile getObject(); /** * @see SoftLayer_Configuration_Template_Section_Profile::getConfigurationSection */ @ApiMethod(instanceRequired = true) public Section getConfigurationSection(); } public static interface ServiceAsync extends com.softlayer.api.ServiceAsync { public Mask withNewMask(); public Mask withMask(); public void setMask(Mask mask); /** * Async version of {@link Service#getObject} */ public Future getObject(); public Future getObject(ResponseHandler callback); /** * Async version of {@link Service#getConfigurationSection} */ public Future
getConfigurationSection(); /** * Async callback version of {@link Service#getConfigurationSection} */ public Future getConfigurationSection(ResponseHandler
callback); } public static class Mask extends com.softlayer.api.service.Entity.Mask { public com.softlayer.api.service.configuration.template.Section.Mask configurationSection() { return withSubMask("configurationSection", com.softlayer.api.service.configuration.template.Section.Mask.class); } public Mask agentId() { withLocalProperty("agentId"); return this; } public Mask createDate() { withLocalProperty("createDate"); return this; } public Mask id() { withLocalProperty("id"); return this; } public Mask name() { withLocalProperty("name"); return this; } public Mask sectionId() { withLocalProperty("sectionId"); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy