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

com.spotinst.sdkjava.model.bl.elastigroup.aws.ManagedActions Maven / Gradle / Ivy

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

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;

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

@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ManagedActions {
    //region Members
    @JsonIgnore
    private Set isSet;
    private BeanstalkPlatformUpdate      platformUpdate;
    //endregion

    //region Constructors
    private ManagedActions() {
        isSet = new HashSet<>();
    }
    //region Getters & Setters

    public Set getIsSet() {
        return isSet;
    }

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

    public BeanstalkPlatformUpdate getPlatformUpdate() {
        return platformUpdate;
    }

    public void setPlatformUpdate(BeanstalkPlatformUpdate platformUpdate) {
        isSet.add("platformUpdate");
        this.platformUpdate = platformUpdate;
    }

    //endregion

    //region Builder class
    public static class Builder {
        private ManagedActions deploymentGroups;

        private Builder() {
            this.deploymentGroups = new ManagedActions();
        }

        public static Builder get() {
            return new Builder();
        }

        public Builder setPlatformUpdate (final BeanstalkPlatformUpdate platformUpdate){
            deploymentGroups.setPlatformUpdate(platformUpdate);
            return this;
        }

        public ManagedActions build(){return deploymentGroups;}

    }
    //endregion

    //region isSet methods
    // Is platformUpdate Set boolean method
    @JsonIgnore
    public boolean isPlatformUpdateSet() {
        return isSet.contains("platformUpdate");
    }
    //endregion
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy