
com.microsoft.graph.generated.models.security.ContainerEvidence Maven / Gradle / Ivy
package com.microsoft.graph.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 ContainerEvidence extends AlertEvidence implements Parsable {
/**
* Instantiates a new {@link ContainerEvidence} and sets the default values.
*/
public ContainerEvidence() {
super();
this.setOdataType("#microsoft.graph.security.containerEvidence");
}
/**
* 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 ContainerEvidence}
*/
@jakarta.annotation.Nonnull
public static ContainerEvidence createFromDiscriminatorValue(@jakarta.annotation.Nonnull final ParseNode parseNode) {
Objects.requireNonNull(parseNode);
return new ContainerEvidence();
}
/**
* Gets the args property value. The list of arguments.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getArgs() {
return this.backingStore.get("args");
}
/**
* Gets the command property value. The list of commands.
* @return a {@link java.util.List}
*/
@jakarta.annotation.Nullable
public java.util.List getCommand() {
return this.backingStore.get("command");
}
/**
* Gets the containerId property value. The container ID.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getContainerId() {
return this.backingStore.get("containerId");
}
/**
* 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("args", (n) -> { this.setArgs(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("command", (n) -> { this.setCommand(n.getCollectionOfPrimitiveValues(String.class)); });
deserializerMap.put("containerId", (n) -> { this.setContainerId(n.getStringValue()); });
deserializerMap.put("image", (n) -> { this.setImage(n.getObjectValue(ContainerImageEvidence::createFromDiscriminatorValue)); });
deserializerMap.put("isPrivileged", (n) -> { this.setIsPrivileged(n.getBooleanValue()); });
deserializerMap.put("name", (n) -> { this.setName(n.getStringValue()); });
deserializerMap.put("pod", (n) -> { this.setPod(n.getObjectValue(KubernetesPodEvidence::createFromDiscriminatorValue)); });
return deserializerMap;
}
/**
* Gets the image property value. The image used to run the container.
* @return a {@link ContainerImageEvidence}
*/
@jakarta.annotation.Nullable
public ContainerImageEvidence getImage() {
return this.backingStore.get("image");
}
/**
* Gets the isPrivileged property value. The privileged status.
* @return a {@link Boolean}
*/
@jakarta.annotation.Nullable
public Boolean getIsPrivileged() {
return this.backingStore.get("isPrivileged");
}
/**
* Gets the name property value. The container name.
* @return a {@link String}
*/
@jakarta.annotation.Nullable
public String getName() {
return this.backingStore.get("name");
}
/**
* Gets the pod property value. The pod this container belongs to.
* @return a {@link KubernetesPodEvidence}
*/
@jakarta.annotation.Nullable
public KubernetesPodEvidence getPod() {
return this.backingStore.get("pod");
}
/**
* 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.writeCollectionOfPrimitiveValues("args", this.getArgs());
writer.writeCollectionOfPrimitiveValues("command", this.getCommand());
writer.writeStringValue("containerId", this.getContainerId());
writer.writeObjectValue("image", this.getImage());
writer.writeBooleanValue("isPrivileged", this.getIsPrivileged());
writer.writeStringValue("name", this.getName());
writer.writeObjectValue("pod", this.getPod());
}
/**
* Sets the args property value. The list of arguments.
* @param value Value to set for the args property.
*/
public void setArgs(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("args", value);
}
/**
* Sets the command property value. The list of commands.
* @param value Value to set for the command property.
*/
public void setCommand(@jakarta.annotation.Nullable final java.util.List value) {
this.backingStore.set("command", value);
}
/**
* Sets the containerId property value. The container ID.
* @param value Value to set for the containerId property.
*/
public void setContainerId(@jakarta.annotation.Nullable final String value) {
this.backingStore.set("containerId", value);
}
/**
* Sets the image property value. The image used to run the container.
* @param value Value to set for the image property.
*/
public void setImage(@jakarta.annotation.Nullable final ContainerImageEvidence value) {
this.backingStore.set("image", value);
}
/**
* Sets the isPrivileged property value. The privileged status.
* @param value Value to set for the isPrivileged property.
*/
public void setIsPrivileged(@jakarta.annotation.Nullable final Boolean value) {
this.backingStore.set("isPrivileged", value);
}
/**
* Sets the name property value. The container 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 pod property value. The pod this container belongs to.
* @param value Value to set for the pod property.
*/
public void setPod(@jakarta.annotation.Nullable final KubernetesPodEvidence value) {
this.backingStore.set("pod", value);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy