com.spotinst.sdkjava.model.bl.ocean.kubernetes.ClusterLaunchSpecification Maven / Gradle / Ivy
package com.spotinst.sdkjava.model.bl.ocean.kubernetes;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.spotinst.sdkjava.model.*;
import java.util.HashSet;
import java.util.List;
import java.util.Set;
@JsonIgnoreProperties(ignoreUnknown = true)
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ClusterLaunchSpecification {
//region Members
@JsonIgnore
private Set isSet;
private String imageId;
private String userData;
private List securityGroupIds;
private ClusterIamInstanceProfileSpec iamInstanceProfile;
private String keyPair;
private List tags;
private Boolean associatePublicIpAddress;
private Boolean monitoring;
private Boolean ebsOptimized;
private Integer rootVolumeSize;
private ClusterLaunchSpecification() {
isSet = new HashSet<>();
}
//endregion
//region Getters & Setters
public Set getIsSet() {
return isSet;
}
public void setIsSet(Set isSet) {
this.isSet = isSet;
}
public List getSecurityGroupIds() {
return securityGroupIds;
}
public void setSecurityGroupIds(List securityGroupIds) {
isSet.add("securityGroupIds");
this.securityGroupIds = securityGroupIds;
}
public Boolean getEbsOptimized() {
return ebsOptimized;
}
public void setEbsOptimized(Boolean ebsOptimized) {
isSet.add("ebsOptimized");
this.ebsOptimized = ebsOptimized;
}
public String getImageId() {
return imageId;
}
public void setImageId(String imageId) {
isSet.add("imageId");
this.imageId = imageId;
}
public String getKeyPair() {
return keyPair;
}
public void setKeyPair(String keyPair) {
isSet.add("keyPair");
this.keyPair = keyPair;
}
public String getUserData() {
return userData;
}
public void setUserData(String userData) {
isSet.add("userData");
this.userData = userData;
}
public List getTags() {
return tags;
}
public void setTags(List tags) {
isSet.add("tags");
this.tags = tags;
}
public ClusterIamInstanceProfileSpec getIamInstanceProfile() {
return iamInstanceProfile;
}
public void setIamInstanceProfile(ClusterIamInstanceProfileSpec iamInstanceProfile) {
isSet.add("iamInstanceProfile");
this.iamInstanceProfile = iamInstanceProfile;
}
public Boolean getAssociatePublicIpAddress() {
return associatePublicIpAddress;
}
public void setAssociatePublicIpAddress(Boolean associatePublicIpAddress) {
isSet.add("associatePublicIpAddress");
this.associatePublicIpAddress = associatePublicIpAddress;
}
public Boolean getMonitoring() {
return monitoring;
}
public void setMonitoring(Boolean monitoring) {
isSet.add("monitoring");
this.monitoring = monitoring;
}
public Integer getRootVolumeSize() {
return rootVolumeSize;
}
public void setRootVolumeSize(Integer rootVolumeSize) {
isSet.add("rootVolumeSize");
this.rootVolumeSize = rootVolumeSize;
}
public static class Builder {
private ClusterLaunchSpecification launchSpecification;
private Builder() {
this.launchSpecification = new ClusterLaunchSpecification();
}
public static Builder get() {
return new Builder();
}
public Builder setImageId(final String imageId) {
launchSpecification.setImageId(imageId);
return this;
}
public Builder setKeyPair(final String keyPair) {
launchSpecification.setKeyPair(keyPair);
return this;
}
public Builder setEbsOptimized(final Boolean ebsOptimized) {
launchSpecification.setEbsOptimized(ebsOptimized);
return this;
}
public Builder setUserData(final String userData) {
launchSpecification.setUserData(userData);
return this;
}
public Builder setSecurityGroupIds(final List securityGroupIds) {
launchSpecification.setSecurityGroupIds(securityGroupIds);
return this;
}
public Builder setIamInstanceProfile(final ClusterIamInstanceProfileSpec iamInstanceProfile) {
launchSpecification.setIamInstanceProfile(iamInstanceProfile);
return this;
}
public Builder setAssociatePublicIpAddress(final Boolean associatePublicIpAddress) {
launchSpecification.setAssociatePublicIpAddress(associatePublicIpAddress);
return this;
}
public Builder setMonitoring(final Boolean monitoring) {
launchSpecification.setMonitoring(monitoring);
return this;
}
public Builder setRootVolumeSize(final Integer rootVolumeSize) {
launchSpecification.setRootVolumeSize(rootVolumeSize);
return this;
}
public Builder setTags(final List tags) {
launchSpecification.setTags(tags);
return this;
}
public ClusterLaunchSpecification build() {
return launchSpecification;
}
}
@JsonIgnore
public boolean isImageIdSet() {
return isSet.contains("imageId");
}
@JsonIgnore
public boolean isUserDataSet() {
return isSet.contains("userData");
}
@JsonIgnore
public boolean isSecurityGroupIdsSet() {
return isSet.contains("securityGroupIds");
}
@JsonIgnore
public boolean isIamInstanceProfileSet() {
return isSet.contains("iamInstanceProfile");
}
@JsonIgnore
public boolean isKeyPairSet() {
return isSet.contains("keyPair");
}
@JsonIgnore
public boolean isTagsSet() {
return isSet.contains("tags");
}
@JsonIgnore
public boolean isAssociatePublicIpAddressSet() {
return isSet.contains("associatePublicIpAddress");
}
@JsonIgnore
public boolean isMonitoringSet() {
return isSet.contains("monitoring");
}
@JsonIgnore
public boolean isEbsOptimizedSet() {
return isSet.contains("ebsOptimized");
}
@JsonIgnore
public boolean isRootVolumeSizeSet() {
return isSet.contains("rootVolumeSize");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy