com.microsoft.graph.beta.generated.models.security.KubernetesControllerEvidence Maven / Gradle / Ivy
package com.microsoft.graph.beta.models.security;
import com.microsoft.kiota.serialization.Parsable;
import com.microsoft.kiota.serialization.ParseNode;
import com.microsoft.kiota.serialization.SerializationWriter;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
@jakarta.annotation.Generated("com.microsoft.kiota")
public class KubernetesControllerEvidence extends AlertEvidence implements Parsable {
/**
* Instantiates a new {@link KubernetesControllerEvidence} and sets the default values.
*/
public KubernetesControllerEvidence() {
super();
this.setOdataType("#microsoft.graph.security.kubernetesControllerEvidence");
}
/**
* Creates a new instance of the appropriate class based on discriminator value
* @param parseNode The parse node to use to read the discriminator value and create the object
* @return a {@link KubernetesControllerEvidence}
*/
@jakarta.annotation.Nonnull
public static KubernetesControllerEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new KubernetesControllerEvidence();
}
/**
* The deserialization information for the current model
* @return a {@link Map>}
*/
@jakarta.annotation.Nonnull
public Map> getFieldDeserializers() {
final HashMap> deserializerMap = new HashMap>(super.getFieldDeserializers());
deserializerMap.put("labels", (n) -> { this.setLabels(n.getObjectValue(Dictionary::createFromDiscriminatorValue)); });
deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
deserializerMap.put("namespace", (n) -> { this.setNamespace(n.getObjectValue(KubernetesNamespaceEvidence::createFromDiscriminatorValue)); });
deserializerMap.put("type", (n) -> { this.setType(n.getStringValue()); });
return deserializerMap;
}
/**
* Gets the labels property value. The labels for the Kubernetes pod.
* @return a {@link Dictionary}
*/
@jakarta.annotation.Nullable
public Dictionary getLabels() {
return this.backingStore.get("labels");
}
/**
* Gets the name property value. The controller name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getName() {
return this.backingStore.get("name");
}
/**
* Gets the namespace property value. The service account namespace.
* @return a {@link KubernetesNamespaceEvidence}
*/
@jakarta.annotation.Nullable
public KubernetesNamespaceEvidence getNamespace() {
return this.backingStore.get("namespace");
}
/**
* Gets the type property value. The controller type.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getType() {
return this.backingStore.get("type");
}
/**
* Serializes information the current object
* @param writer Serialization writer to use to serialize this model
*/
public void serialize(@jakarta.annotation.Nonnull final SerializationWriter writer) {
Objects.requireNonNull(writer);
super.serialize(writer);
writer.writeObjectValue("labels", this.getLabels());
writer.writeStringValue("name", this.getName());
writer.writeObjectValue("namespace", this.getNamespace());
writer.writeStringValue("type", this.getType());
}
/**
* Sets the labels property value. The labels for the Kubernetes pod.
* @param value Value to set for the labels property.
*/
public void setLabels(@jakarta.annotation.Nullable final Dictionary value) {
this.backingStore.set("labels", value);
}
/**
* Sets the name property value. The controller name.
* @param value Value to set for the name property.
*/
public void setName(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("name", value);
}
/**
* Sets the namespace property value. The service account namespace.
* @param value Value to set for the namespace property.
*/
public void setNamespace(@jakarta.annotation.Nullable final KubernetesNamespaceEvidence value) {
this.backingStore.set("namespace", value);
}
/**
* Sets the type property value. The controller type.
* @param value Value to set for the type property.
*/
public void setType(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("type", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy