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

com.spotinst.sdkjava.model.ApiTargetGroupConfig Maven / Gradle / Ivy

There is a newer version: 1.0.121
Show newest version
package com.spotinst.sdkjava.model;

import com.fasterxml.jackson.annotation.JsonFilter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.client.rest.IPartialUpdateEntity;

import java.util.HashSet;
import java.util.List;
import java.util.Set;

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonFilter("PartialUpdateEntityFilter")
class ApiTargetGroupConfig implements IPartialUpdateEntity {
    //region Members
    @JsonIgnore
    private Set                   isSet;
    private String                        vpcId;
    private String                        healthCheckPath;
    private Integer                       healthCheckIntervalSeconds;
    private String                        healthCheckPort;
    private Integer                       healthCheckTimeoutSeconds;
    private String                        healthCheckProtocol;
    private Integer                       healthyThresholdCount;
    private Integer                       unhealthyThresholdCount;
    private Integer                       port;
    private String                        protocol;
    private String                        protocolVersion;
    private List tags;
    private ApiMatcher                    matcher;
    //endregion

    //region Constructor

    public ApiTargetGroupConfig() {
        isSet = new HashSet<>();
    }
    //endregion
    //region Getters & Setters

    public Set getIsSet() {
        return isSet;
    }

    public void setIsSet(Set isSet) {
        this.isSet = isSet;
    }

    public String getVpcId() {
        return vpcId;
    }

    public void setVpcId(String vpcId) {
        isSet.add("vpcId");
        this.vpcId = vpcId;
    }

    public String getHealthCheckPath() {
        return healthCheckPath;
    }

    public void setHealthCheckPath(String healthCheckPath) {
        isSet.add("healthCheckPath");
        this.healthCheckPath = healthCheckPath;
    }

    public Integer getHealthCheckIntervalSeconds() {
        return healthCheckIntervalSeconds;
    }

    public void setHealthCheckIntervalSeconds(Integer healthCheckIntervalSeconds) {
        isSet.add("healthCheckIntervalSeconds");
        this.healthCheckIntervalSeconds = healthCheckIntervalSeconds;
    }

    public String getHealthCheckPort() {
        return healthCheckPort;
    }

    public void setHealthCheckPort(String healthCheckPort) {
        isSet.add("healthCheckPort");
        this.healthCheckPort = healthCheckPort;
    }

    public Integer getHealthCheckTimeoutSeconds() {
        return healthCheckTimeoutSeconds;
    }

    public void setHealthCheckTimeoutSeconds(Integer healthCheckTimeoutSeconds) {
        isSet.add("healthCheckTimeoutSeconds");
        this.healthCheckTimeoutSeconds = healthCheckTimeoutSeconds;
    }

    public Integer getHealthyThresholdCount() {
        return healthyThresholdCount;
    }

    public void setHealthyThresholdCount(Integer healthyThresholdCount) {
        isSet.add("healthyThresholdCount");
        this.healthyThresholdCount = healthyThresholdCount;
    }

    public Integer getUnhealthyThresholdCount() {
        return unhealthyThresholdCount;
    }

    public void setUnhealthyThresholdCount(Integer unhealthyThresholdCount) {
        isSet.add("unhealthyThresholdCount");
        this.unhealthyThresholdCount = unhealthyThresholdCount;
    }

    public Integer getPort() {
        return port;
    }

    public void setPort(Integer port) {
        isSet.add("port");
        this.port = port;
    }

    public String getHealthCheckProtocol() {
        return healthCheckProtocol;
    }

    public void setHealthCheckProtocol(String healthCheckProtocol) {
        isSet.add("healthCheckProtocol");
        this.healthCheckProtocol = healthCheckProtocol;
    }

    public String getProtocol() {
        return protocol;
    }

    public void setProtocol(String protocol) {
        isSet.add("protocol");
        this.protocol = protocol;
    }

    public String getProtocolVersion() {
        return protocolVersion;
    }

    public void setProtocolVersion(String protocolVersion) {
        isSet.add("protocolVersion");
        this.protocolVersion = protocolVersion;
    }

    public List getTags() {
        return tags;
    }

    public void setTags(List tags) {
        isSet.add("tags");
        this.tags = tags;
    }

    public ApiMatcher getMatcher() {
        return matcher;
    }

    public void setMatcher(ApiMatcher matcher) {
        isSet.add("matcher");
        this.matcher = matcher;
    }
    //endregion

    //region isSet methods

    // Is vpcId Set boolean method
    @JsonIgnore
    public boolean isVpcIdSet() {
        return isSet.contains("vpcId");
    }

    // Is healthCheckPath Set boolean method
    @JsonIgnore
    public boolean isHealthCheckPathSet() { return isSet.contains("healthCheckPath"); }

    // Is healthCheckIntervalSeconds Set boolean method
    @JsonIgnore
    public boolean isHealthCheckIntervalSecondsSet() {
        return isSet.contains("healthCheckIntervalSeconds");
    }

    // Is healthCheckPort Set boolean method
    @JsonIgnore
    public boolean isHealthCheckPortSet() {
        return isSet.contains("healthCheckPort");
    }

    // Is healthCheckTimeoutSeconds Set boolean method
    @JsonIgnore
    public boolean isHealthCheckTimeoutSecondsSet() {
        return isSet.contains("healthCheckTimeoutSeconds");
    }

    // Is healthCheckPort Set boolean method
    @JsonIgnore
    public boolean isHealthyThresholdCountSet() {
        return isSet.contains("healthyThresholdCount");
    }

    // Is unhealthCheckPort Set boolean method
    @JsonIgnore
    public boolean isUnhealthyThresholdCountSet() {
        return isSet.contains("unhealthyThresholdCount");
    }

    // Is port Set boolean method
    @JsonIgnore
    public boolean isPortSet() {
        return isSet.contains("port");
    }

    // Is healthCheckProtocol Set boolean method
    @JsonIgnore
    public boolean isHealthCheckProtocolSet() {
        return isSet.contains("healthCheckProtocol");
    }

    // Is protocol Set boolean method
    @JsonIgnore
    public boolean isProtocolSet() {
        return isSet.contains("protocol");
    }

    // Is protocolVersion Set boolean method
    @JsonIgnore
    public boolean isProtocolVersionSet() {
        return isSet.contains("protocolVersion");
    }

    // Is tags Set boolean method
    @JsonIgnore
    public boolean isTagsSet() {
        return isSet.contains("tags");
    }

    // Is matcher Set boolean method
    @JsonIgnore
    public boolean isMatcherSet() {
        return isSet.contains("matcher");
    }
    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy