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

com.softlayer.api.service.monitoring.agent.configuration.Value Maven / Gradle / Ivy

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

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.Definition;
import com.softlayer.api.service.configuration.template.section.Profile;
import com.softlayer.api.service.container.metric.data.Type;
import com.softlayer.api.service.monitoring.Agent;
import java.util.concurrent.Future;

/**
 * Monitoring agent configuration value 
 *
 * @see SoftLayer_Monitoring_Agent_Configuration_Value
 */
@ApiType("SoftLayer_Monitoring_Agent_Configuration_Value")
public class Value extends Entity {

    @ApiProperty
    protected Definition definition;

    public Definition getDefinition() {
        return definition;
    }

    public void setDefinition(Definition definition) {
        this.definition = definition;
    }

    /**
     * The metric data type used to retrieve metric data currently being tracked.
     */
    @ApiProperty
    protected Type metricDataType;

    public Type getMetricDataType() {
        return metricDataType;
    }

    public void setMetricDataType(Type metricDataType) {
        this.metricDataType = metricDataType;
    }

    @ApiProperty
    protected Agent monitoringAgent;

    public Agent getMonitoringAgent() {
        return monitoringAgent;
    }

    public void setMonitoringAgent(Agent monitoringAgent) {
        this.monitoringAgent = monitoringAgent;
    }

    @ApiProperty
    protected Profile profile;

    public Profile getProfile() {
        return profile;
    }

    public void setProfile(Profile profile) {
        this.profile = profile;
    }

    /**
     * Internal identifier of a monitoring Agent that this configuration value
     */
    @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;
    }

    /**
     * Internal identifier of a monitoring configuration definition by which
     */
    @ApiProperty(canBeNullOrNotSet = true)
    protected Long configurationDefinitionId;

    public Long getConfigurationDefinitionId() {
        return configurationDefinitionId;
    }

    public void setConfigurationDefinitionId(Long configurationDefinitionId) {
        configurationDefinitionIdSpecified = true;
        this.configurationDefinitionId = configurationDefinitionId;
    }

    protected boolean configurationDefinitionIdSpecified;

    public boolean isConfigurationDefinitionIdSpecified() {
        return configurationDefinitionIdSpecified;
    }

    public void unsetConfigurationDefinitionId() {
        configurationDefinitionId = null;
        configurationDefinitionIdSpecified = false;
    }

    /**
     * User-friendly description of a configuration value.
     */
    @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;
    }

    /**
     * Internal identifier of a monitoring configuration value.
     */
    @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;
    }

    /**
     * Internal identifier of a configuration profile. Configuration profile is associated with a configuration section type of "Template section". 
*
* A "Template section" defines skeleton configuration definitions. For instance, if you want to monitor additional hard disks with "CPU/Memory/Disk Monitoring Agent", you will have to add a new configuration profiles. */ @ApiProperty(canBeNullOrNotSet = true) protected Long profileId; public Long getProfileId() { return profileId; } public void setProfileId(Long profileId) { profileIdSpecified = true; this.profileId = profileId; } protected boolean profileIdSpecified; public boolean isProfileIdSpecified() { return profileIdSpecified; } public void unsetProfileId() { profileId = null; profileIdSpecified = false; } /** * Configuration value */ @ApiProperty(canBeNullOrNotSet = true) protected String value; public String getValue() { return value; } public void setValue(String value) { valueSpecified = true; this.value = value; } protected boolean valueSpecified; public boolean isValueSpecified() { return valueSpecified; } public void unsetValue() { value = null; valueSpecified = 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()); } /** * Monitoring agent configuration value * * @see SoftLayer_Monitoring_Agent_Configuration_Value */ @com.softlayer.api.annotation.ApiService("SoftLayer_Monitoring_Agent_Configuration_Value") 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_Monitoring_Agent_Configuration_Value::getObject */ @ApiMethod(instanceRequired = true) public Value getObject(); /** * @see SoftLayer_Monitoring_Agent_Configuration_Value::getDefinition */ @ApiMethod(instanceRequired = true) public Definition getDefinition(); /** * The metric data type used to retrieve metric data currently being tracked. * * @see SoftLayer_Monitoring_Agent_Configuration_Value::getMetricDataType */ @ApiMethod(instanceRequired = true) public Type getMetricDataType(); /** * @see SoftLayer_Monitoring_Agent_Configuration_Value::getMonitoringAgent */ @ApiMethod(instanceRequired = true) public Agent getMonitoringAgent(); /** * @see SoftLayer_Monitoring_Agent_Configuration_Value::getProfile */ @ApiMethod(instanceRequired = true) public Profile getProfile(); } 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#getDefinition} */ public Future getDefinition(); /** * Async callback version of {@link Service#getDefinition} */ public Future getDefinition(ResponseHandler callback); /** * Async version of {@link Service#getMetricDataType} */ public Future getMetricDataType(); /** * Async callback version of {@link Service#getMetricDataType} */ public Future getMetricDataType(ResponseHandler callback); /** * Async version of {@link Service#getMonitoringAgent} */ public Future getMonitoringAgent(); /** * Async callback version of {@link Service#getMonitoringAgent} */ public Future getMonitoringAgent(ResponseHandler callback); /** * Async version of {@link Service#getProfile} */ public Future getProfile(); /** * Async callback version of {@link Service#getProfile} */ public Future getProfile(ResponseHandler callback); } public static class Mask extends com.softlayer.api.service.Entity.Mask { public com.softlayer.api.service.configuration.template.section.Definition.Mask definition() { return withSubMask("definition", com.softlayer.api.service.configuration.template.section.Definition.Mask.class); } public com.softlayer.api.service.container.metric.data.Type.Mask metricDataType() { return withSubMask("metricDataType", com.softlayer.api.service.container.metric.data.Type.Mask.class); } public com.softlayer.api.service.monitoring.Agent.Mask monitoringAgent() { return withSubMask("monitoringAgent", com.softlayer.api.service.monitoring.Agent.Mask.class); } public com.softlayer.api.service.configuration.template.section.Profile.Mask profile() { return withSubMask("profile", com.softlayer.api.service.configuration.template.section.Profile.Mask.class); } public Mask agentId() { withLocalProperty("agentId"); return this; } public Mask configurationDefinitionId() { withLocalProperty("configurationDefinitionId"); return this; } public Mask description() { withLocalProperty("description"); return this; } public Mask id() { withLocalProperty("id"); return this; } public Mask profileId() { withLocalProperty("profileId"); return this; } public Mask value() { withLocalProperty("value"); return this; } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy