|
| 1 | + |
| 2 | +package io.fabric8.istio.api.api.networking.v1alpha3; |
| 3 | + |
| 4 | +import java.util.LinkedHashMap; |
| 5 | +import java.util.Map; |
| 6 | +import javax.annotation.processing.Generated; |
| 7 | +import com.fasterxml.jackson.annotation.JsonAnyGetter; |
| 8 | +import com.fasterxml.jackson.annotation.JsonAnySetter; |
| 9 | +import com.fasterxml.jackson.annotation.JsonIgnore; |
| 10 | +import com.fasterxml.jackson.annotation.JsonInclude; |
| 11 | +import com.fasterxml.jackson.annotation.JsonProperty; |
| 12 | +import com.fasterxml.jackson.annotation.JsonPropertyOrder; |
| 13 | +import com.fasterxml.jackson.databind.annotation.JsonDeserialize; |
| 14 | +import io.fabric8.kubernetes.api.builder.Editable; |
| 15 | +import io.fabric8.kubernetes.api.model.Container; |
| 16 | +import io.fabric8.kubernetes.api.model.ContainerPort; |
| 17 | +import io.fabric8.kubernetes.api.model.EnvVar; |
| 18 | +import io.fabric8.kubernetes.api.model.IntOrString; |
| 19 | +import io.fabric8.kubernetes.api.model.KubernetesResource; |
| 20 | +import io.fabric8.kubernetes.api.model.LabelSelector; |
| 21 | +import io.fabric8.kubernetes.api.model.LocalObjectReference; |
| 22 | +import io.fabric8.kubernetes.api.model.ObjectMeta; |
| 23 | +import io.fabric8.kubernetes.api.model.ObjectReference; |
| 24 | +import io.fabric8.kubernetes.api.model.PersistentVolumeClaim; |
| 25 | +import io.fabric8.kubernetes.api.model.PodTemplateSpec; |
| 26 | +import io.fabric8.kubernetes.api.model.ResourceRequirements; |
| 27 | +import io.fabric8.kubernetes.api.model.Volume; |
| 28 | +import io.fabric8.kubernetes.api.model.VolumeMount; |
| 29 | +import io.sundr.builder.annotations.Buildable; |
| 30 | +import io.sundr.builder.annotations.BuildableReference; |
| 31 | +import lombok.EqualsAndHashCode; |
| 32 | +import lombok.ToString; |
| 33 | +import lombok.experimental.Accessors; |
| 34 | + |
| 35 | +/** |
| 36 | + * Attribute defines an API for adding additional attributes for a HTTP cookie. |
| 37 | + */ |
| 38 | +@JsonDeserialize(using = com.fasterxml.jackson.databind.JsonDeserializer.None.class) |
| 39 | +@JsonInclude(JsonInclude.Include.NON_NULL) |
| 40 | +@JsonPropertyOrder({ |
| 41 | + "name", |
| 42 | + "value" |
| 43 | +}) |
| 44 | +@ToString |
| 45 | +@EqualsAndHashCode |
| 46 | +@Accessors(prefix = { |
| 47 | + "_", |
| 48 | + "" |
| 49 | +}) |
| 50 | +@Buildable(editableEnabled = false, validationEnabled = false, generateBuilderPackage = false, lazyCollectionInitEnabled = false, builderPackage = "io.fabric8.kubernetes.api.builder", refs = { |
| 51 | + @BuildableReference(ObjectMeta.class), |
| 52 | + @BuildableReference(LabelSelector.class), |
| 53 | + @BuildableReference(Container.class), |
| 54 | + @BuildableReference(PodTemplateSpec.class), |
| 55 | + @BuildableReference(ResourceRequirements.class), |
| 56 | + @BuildableReference(IntOrString.class), |
| 57 | + @BuildableReference(ObjectReference.class), |
| 58 | + @BuildableReference(LocalObjectReference.class), |
| 59 | + @BuildableReference(PersistentVolumeClaim.class), |
| 60 | + @BuildableReference(EnvVar.class), |
| 61 | + @BuildableReference(ContainerPort.class), |
| 62 | + @BuildableReference(Volume.class), |
| 63 | + @BuildableReference(VolumeMount.class) |
| 64 | +}) |
| 65 | +@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") |
| 66 | +public class LoadBalancerSettingsConsistentHashLBHTTPCookieAttribute implements Editable<LoadBalancerSettingsConsistentHashLBHTTPCookieAttributeBuilder>, KubernetesResource |
| 67 | +{ |
| 68 | + |
| 69 | + @JsonProperty("name") |
| 70 | + private String name; |
| 71 | + @JsonProperty("value") |
| 72 | + private String value; |
| 73 | + @JsonIgnore |
| 74 | + private Map<String, Object> additionalProperties = new LinkedHashMap<String, Object>(); |
| 75 | + |
| 76 | + /** |
| 77 | + * No args constructor for use in serialization |
| 78 | + */ |
| 79 | + public LoadBalancerSettingsConsistentHashLBHTTPCookieAttribute() { |
| 80 | + } |
| 81 | + |
| 82 | + public LoadBalancerSettingsConsistentHashLBHTTPCookieAttribute(String name, String value) { |
| 83 | + super(); |
| 84 | + this.name = name; |
| 85 | + this.value = value; |
| 86 | + } |
| 87 | + |
| 88 | + /** |
| 89 | + * The name of the cookie attribute. |
| 90 | + */ |
| 91 | + @JsonProperty("name") |
| 92 | + public String getName() { |
| 93 | + return name; |
| 94 | + } |
| 95 | + |
| 96 | + /** |
| 97 | + * The name of the cookie attribute. |
| 98 | + */ |
| 99 | + @JsonProperty("name") |
| 100 | + public void setName(String name) { |
| 101 | + this.name = name; |
| 102 | + } |
| 103 | + |
| 104 | + /** |
| 105 | + * The optional value of the cookie attribute. |
| 106 | + */ |
| 107 | + @JsonProperty("value") |
| 108 | + public String getValue() { |
| 109 | + return value; |
| 110 | + } |
| 111 | + |
| 112 | + /** |
| 113 | + * The optional value of the cookie attribute. |
| 114 | + */ |
| 115 | + @JsonProperty("value") |
| 116 | + public void setValue(String value) { |
| 117 | + this.value = value; |
| 118 | + } |
| 119 | + |
| 120 | + @JsonIgnore |
| 121 | + public LoadBalancerSettingsConsistentHashLBHTTPCookieAttributeBuilder edit() { |
| 122 | + return new LoadBalancerSettingsConsistentHashLBHTTPCookieAttributeBuilder(this); |
| 123 | + } |
| 124 | + |
| 125 | + @JsonIgnore |
| 126 | + public LoadBalancerSettingsConsistentHashLBHTTPCookieAttributeBuilder toBuilder() { |
| 127 | + return edit(); |
| 128 | + } |
| 129 | + |
| 130 | + @JsonAnyGetter |
| 131 | + @JsonIgnore |
| 132 | + public Map<String, Object> getAdditionalProperties() { |
| 133 | + return this.additionalProperties; |
| 134 | + } |
| 135 | + |
| 136 | + @JsonAnySetter |
| 137 | + public void setAdditionalProperty(String name, Object value) { |
| 138 | + this.additionalProperties.put(name, value); |
| 139 | + } |
| 140 | + |
| 141 | + public void setAdditionalProperties(Map<String, Object> additionalProperties) { |
| 142 | + this.additionalProperties = additionalProperties; |
| 143 | + } |
| 144 | + |
| 145 | +} |
0 commit comments