odata.msgraph.client.security.complex.KubernetesClusterEvidence Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of odata-client-msgraph Show documentation
Show all versions of odata-client-msgraph Show documentation
Java client for use with the Microsoft Graph v1.0 endpoint
package odata.msgraph.client.security.complex;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.github.davidmoten.odata.client.ODataType;
import com.github.davidmoten.odata.client.UnmappedFields;
import com.github.davidmoten.odata.client.Util;
import com.github.davidmoten.odata.client.annotation.Property;
import com.github.davidmoten.odata.client.internal.ChangedFields;
import com.github.davidmoten.odata.client.internal.UnmappedFieldsImpl;
import java.lang.Object;
import java.lang.Override;
import java.lang.String;
import java.lang.StringBuilder;
import java.time.OffsetDateTime;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;
import odata.msgraph.client.security.enums.EvidenceRemediationStatus;
import odata.msgraph.client.security.enums.EvidenceRole;
import odata.msgraph.client.security.enums.EvidenceVerdict;
import odata.msgraph.client.security.enums.KubernetesPlatform;
@JsonPropertyOrder({
"@odata.type",
"cloudResource",
"distribution",
"name",
"platform",
"version"})
@JsonInclude(Include.NON_NULL)
public class KubernetesClusterEvidence extends AlertEvidence implements ODataType {
@JsonProperty("cloudResource")
protected AlertEvidence cloudResource;
@JsonProperty("distribution")
protected String distribution;
@JsonProperty("name")
protected String name;
@JsonProperty("platform")
protected KubernetesPlatform platform;
@JsonProperty("version")
protected String version;
protected KubernetesClusterEvidence() {
super();
}
@Override
public String odataTypeName() {
return "microsoft.graph.security.kubernetesClusterEvidence";
}
@Property(name="cloudResource")
@JsonIgnore
public Optional getCloudResource() {
return Optional.ofNullable(cloudResource);
}
public KubernetesClusterEvidence withCloudResource(AlertEvidence cloudResource) {
KubernetesClusterEvidence _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.security.kubernetesClusterEvidence");
_x.cloudResource = cloudResource;
return _x;
}
@Property(name="distribution")
@JsonIgnore
public Optional getDistribution() {
return Optional.ofNullable(distribution);
}
public KubernetesClusterEvidence withDistribution(String distribution) {
KubernetesClusterEvidence _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.security.kubernetesClusterEvidence");
_x.distribution = distribution;
return _x;
}
@Property(name="name")
@JsonIgnore
public Optional getName() {
return Optional.ofNullable(name);
}
public KubernetesClusterEvidence withName(String name) {
KubernetesClusterEvidence _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.security.kubernetesClusterEvidence");
_x.name = name;
return _x;
}
@Property(name="platform")
@JsonIgnore
public Optional getPlatform() {
return Optional.ofNullable(platform);
}
public KubernetesClusterEvidence withPlatform(KubernetesPlatform platform) {
KubernetesClusterEvidence _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.security.kubernetesClusterEvidence");
_x.platform = platform;
return _x;
}
@Property(name="version")
@JsonIgnore
public Optional getVersion() {
return Optional.ofNullable(version);
}
public KubernetesClusterEvidence withVersion(String version) {
KubernetesClusterEvidence _x = _copy();
_x.odataType = Util.nvl(odataType, "microsoft.graph.security.kubernetesClusterEvidence");
_x.version = version;
return _x;
}
public KubernetesClusterEvidence withUnmappedField(String name, Object value) {
KubernetesClusterEvidence _x = _copy();
_x.setUnmappedField(name, value);
return _x;
}
@JsonAnySetter
private void setUnmappedField(String name, Object value) {
if (unmappedFields == null) {
unmappedFields = new UnmappedFieldsImpl();
}
unmappedFields.put(name, value);
}
@JsonAnyGetter
private UnmappedFieldsImpl unmappedFields() {
return unmappedFields == null ? UnmappedFieldsImpl.EMPTY : unmappedFields;
}
@Override
public UnmappedFields getUnmappedFields() {
return unmappedFields();
}
@Override
public void postInject(boolean addKeysToContextPath) {
// do nothing;
}
/**
* Returns a builder which is used to create a new
* instance of this class (given that this class is immutable).
*
* @return a new Builder for this class
*/
// Suffix used on builder factory method to differentiate the method
// from static builder methods on superclasses
public static Builder builderKubernetesClusterEvidence() {
return new Builder();
}
public static final class Builder {
private OffsetDateTime createdDateTime;
private List detailedRoles;
private String detailedRolesNextLink;
private EvidenceRemediationStatus remediationStatus;
private String remediationStatusDetails;
private List roles;
private String rolesNextLink;
private List tags;
private String tagsNextLink;
private EvidenceVerdict verdict;
private AlertEvidence cloudResource;
private String distribution;
private String name;
private KubernetesPlatform platform;
private String version;
private ChangedFields changedFields = ChangedFields.EMPTY;
Builder() {
// prevent instantiation
}
public Builder createdDateTime(OffsetDateTime createdDateTime) {
this.createdDateTime = createdDateTime;
this.changedFields = changedFields.add("createdDateTime");
return this;
}
public Builder detailedRoles(List detailedRoles) {
this.detailedRoles = detailedRoles;
this.changedFields = changedFields.add("detailedRoles");
return this;
}
public Builder detailedRoles(String... detailedRoles) {
return detailedRoles(Arrays.asList(detailedRoles));
}
public Builder detailedRolesNextLink(String detailedRolesNextLink) {
this.detailedRolesNextLink = detailedRolesNextLink;
this.changedFields = changedFields.add("detailedRoles");
return this;
}
public Builder remediationStatus(EvidenceRemediationStatus remediationStatus) {
this.remediationStatus = remediationStatus;
this.changedFields = changedFields.add("remediationStatus");
return this;
}
public Builder remediationStatusDetails(String remediationStatusDetails) {
this.remediationStatusDetails = remediationStatusDetails;
this.changedFields = changedFields.add("remediationStatusDetails");
return this;
}
public Builder roles(List roles) {
this.roles = roles;
this.changedFields = changedFields.add("roles");
return this;
}
public Builder roles(EvidenceRole... roles) {
return roles(Arrays.asList(roles));
}
public Builder rolesNextLink(String rolesNextLink) {
this.rolesNextLink = rolesNextLink;
this.changedFields = changedFields.add("roles");
return this;
}
public Builder tags(List tags) {
this.tags = tags;
this.changedFields = changedFields.add("tags");
return this;
}
public Builder tags(String... tags) {
return tags(Arrays.asList(tags));
}
public Builder tagsNextLink(String tagsNextLink) {
this.tagsNextLink = tagsNextLink;
this.changedFields = changedFields.add("tags");
return this;
}
public Builder verdict(EvidenceVerdict verdict) {
this.verdict = verdict;
this.changedFields = changedFields.add("verdict");
return this;
}
public Builder cloudResource(AlertEvidence cloudResource) {
this.cloudResource = cloudResource;
this.changedFields = changedFields.add("cloudResource");
return this;
}
public Builder distribution(String distribution) {
this.distribution = distribution;
this.changedFields = changedFields.add("distribution");
return this;
}
public Builder name(String name) {
this.name = name;
this.changedFields = changedFields.add("name");
return this;
}
public Builder platform(KubernetesPlatform platform) {
this.platform = platform;
this.changedFields = changedFields.add("platform");
return this;
}
public Builder version(String version) {
this.version = version;
this.changedFields = changedFields.add("version");
return this;
}
public KubernetesClusterEvidence build() {
KubernetesClusterEvidence _x = new KubernetesClusterEvidence();
_x.contextPath = null;
_x.unmappedFields = new UnmappedFieldsImpl();
_x.odataType = "microsoft.graph.security.kubernetesClusterEvidence";
_x.createdDateTime = createdDateTime;
_x.detailedRoles = detailedRoles;
_x.detailedRolesNextLink = detailedRolesNextLink;
_x.remediationStatus = remediationStatus;
_x.remediationStatusDetails = remediationStatusDetails;
_x.roles = roles;
_x.rolesNextLink = rolesNextLink;
_x.tags = tags;
_x.tagsNextLink = tagsNextLink;
_x.verdict = verdict;
_x.cloudResource = cloudResource;
_x.distribution = distribution;
_x.name = name;
_x.platform = platform;
_x.version = version;
return _x;
}
}
private KubernetesClusterEvidence _copy() {
KubernetesClusterEvidence _x = new KubernetesClusterEvidence();
_x.contextPath = contextPath;
_x.unmappedFields = unmappedFields.copy();
_x.odataType = odataType;
_x.createdDateTime = createdDateTime;
_x.detailedRoles = detailedRoles;
_x.remediationStatus = remediationStatus;
_x.remediationStatusDetails = remediationStatusDetails;
_x.roles = roles;
_x.tags = tags;
_x.verdict = verdict;
_x.cloudResource = cloudResource;
_x.distribution = distribution;
_x.name = name;
_x.platform = platform;
_x.version = version;
return _x;
}
@Override
public String toString() {
StringBuilder b = new StringBuilder();
b.append("KubernetesClusterEvidence[");
b.append("createdDateTime=");
b.append(this.createdDateTime);
b.append(", ");
b.append("detailedRoles=");
b.append(this.detailedRoles);
b.append(", ");
b.append("remediationStatus=");
b.append(this.remediationStatus);
b.append(", ");
b.append("remediationStatusDetails=");
b.append(this.remediationStatusDetails);
b.append(", ");
b.append("roles=");
b.append(this.roles);
b.append(", ");
b.append("tags=");
b.append(this.tags);
b.append(", ");
b.append("verdict=");
b.append(this.verdict);
b.append(", ");
b.append("cloudResource=");
b.append(this.cloudResource);
b.append(", ");
b.append("distribution=");
b.append(this.distribution);
b.append(", ");
b.append("name=");
b.append(this.name);
b.append(", ");
b.append("platform=");
b.append(this.platform);
b.append(", ");
b.append("version=");
b.append(this.version);
b.append("]");
b.append(",unmappedFields=");
b.append(unmappedFields);
b.append(",odataType=");
b.append(odataType);
return b.toString();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy