io.fabric8.openshift.api.model.installer.aws.v1.EC2RootVolumeFluentImpl Maven / Gradle / Ivy
package io.fabric8.openshift.api.model.installer.aws.v1;
import java.lang.Integer;
import java.lang.SuppressWarnings;
import io.fabric8.kubernetes.api.builder.BaseFluent;
import java.lang.Object;
import java.lang.String;
import java.lang.Boolean;
import java.util.Map;
import java.util.LinkedHashMap;
/**
* Generated
*/
@SuppressWarnings(value = "unchecked")
public class EC2RootVolumeFluentImpl> extends BaseFluent implements EC2RootVolumeFluent{
public EC2RootVolumeFluentImpl() {
}
public EC2RootVolumeFluentImpl(io.fabric8.openshift.api.model.installer.aws.v1.EC2RootVolume instance) {
this.withIops(instance.getIops());
this.withKmsKeyARN(instance.getKmsKeyARN());
this.withSize(instance.getSize());
this.withType(instance.getType());
this.withAdditionalProperties(instance.getAdditionalProperties());
}
private Integer iops;
private String kmsKeyARN;
private java.lang.Integer size;
private java.lang.String type;
private Map additionalProperties;
public java.lang.Integer getIops() {
return this.iops;
}
public A withIops(java.lang.Integer iops) {
this.iops=iops; return (A) this;
}
public Boolean hasIops() {
return this.iops != null;
}
public java.lang.String getKmsKeyARN() {
return this.kmsKeyARN;
}
public A withKmsKeyARN(java.lang.String kmsKeyARN) {
this.kmsKeyARN=kmsKeyARN; return (A) this;
}
public java.lang.Boolean hasKmsKeyARN() {
return this.kmsKeyARN != null;
}
public java.lang.Integer getSize() {
return this.size;
}
public A withSize(java.lang.Integer size) {
this.size=size; return (A) this;
}
public java.lang.Boolean hasSize() {
return this.size != null;
}
public java.lang.String getType() {
return this.type;
}
public A withType(java.lang.String type) {
this.type=type; return (A) this;
}
public java.lang.Boolean hasType() {
return this.type != null;
}
public A addToAdditionalProperties(java.lang.String key,java.lang.Object value) {
if(this.additionalProperties == null && key != null && value != null) { this.additionalProperties = new LinkedHashMap(); }
if(key != null && value != null) {this.additionalProperties.put(key, value);} return (A)this;
}
public A addToAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null && map != null) { this.additionalProperties = new java.util.LinkedHashMap(); }
if(map != null) { this.additionalProperties.putAll(map);} return (A)this;
}
public A removeFromAdditionalProperties(java.lang.String key) {
if(this.additionalProperties == null) { return (A) this; }
if(key != null && this.additionalProperties != null) {this.additionalProperties.remove(key);} return (A)this;
}
public A removeFromAdditionalProperties(java.util.Map map) {
if(this.additionalProperties == null) { return (A) this; }
if(map != null) { for(Object key : map.keySet()) {if (this.additionalProperties != null){this.additionalProperties.remove(key);}}} return (A)this;
}
public java.util.Map getAdditionalProperties() {
return this.additionalProperties;
}
public A withAdditionalProperties(java.util.Map additionalProperties) {
if (additionalProperties == null) { this.additionalProperties = null;} else {this.additionalProperties = new java.util.LinkedHashMap(additionalProperties);} return (A) this;
}
public java.lang.Boolean hasAdditionalProperties() {
return this.additionalProperties != null;
}
public boolean equals(java.lang.Object o) {
if (this == o) return true;
if (o == null || getClass() != o.getClass()) return false;
EC2RootVolumeFluentImpl that = (EC2RootVolumeFluentImpl) o;
if (iops != null ? !iops.equals(that.iops) :that.iops != null) return false;
if (kmsKeyARN != null ? !kmsKeyARN.equals(that.kmsKeyARN) :that.kmsKeyARN != null) return false;
if (size != null ? !size.equals(that.size) :that.size != null) return false;
if (type != null ? !type.equals(that.type) :that.type != null) return false;
if (additionalProperties != null ? !additionalProperties.equals(that.additionalProperties) :that.additionalProperties != null) return false;
return true;
}
public int hashCode() {
return java.util.Objects.hash(iops, kmsKeyARN, size, type, additionalProperties, super.hashCode());
}
public java.lang.String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (iops != null) { sb.append("iops:"); sb.append(iops + ","); }
if (kmsKeyARN != null) { sb.append("kmsKeyARN:"); sb.append(kmsKeyARN + ","); }
if (size != null) { sb.append("size:"); sb.append(size + ","); }
if (type != null) { sb.append("type:"); sb.append(type + ","); }
if (additionalProperties != null && !additionalProperties.isEmpty()) { sb.append("additionalProperties:"); sb.append(additionalProperties); }
sb.append("}");
return sb.toString();
}
} © 2015 - 2025 Weber Informatics LLC | Privacy Policy