com.pulumi.azurenative.securityinsights.outputs.AnomalyTimelineItemResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.securityinsights.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class AnomalyTimelineItemResponse {
/**
* @return The anomaly azure resource id.
*
*/
private String azureResourceId;
/**
* @return The anomaly description.
*
*/
private @Nullable String description;
/**
* @return The anomaly name.
*
*/
private String displayName;
/**
* @return The anomaly end time.
*
*/
private String endTimeUtc;
/**
* @return The intent of the anomaly.
*
*/
private @Nullable String intent;
/**
* @return The entity query kind
* Expected value is 'Anomaly'.
*
*/
private String kind;
/**
* @return The anomaly product name.
*
*/
private @Nullable String productName;
/**
* @return The reasons that cause the anomaly.
*
*/
private @Nullable List reasons;
/**
* @return The anomaly start time.
*
*/
private String startTimeUtc;
/**
* @return The techniques of the anomaly.
*
*/
private @Nullable List techniques;
/**
* @return The anomaly generated time.
*
*/
private String timeGenerated;
/**
* @return The name of the anomaly vendor.
*
*/
private @Nullable String vendor;
private AnomalyTimelineItemResponse() {}
/**
* @return The anomaly azure resource id.
*
*/
public String azureResourceId() {
return this.azureResourceId;
}
/**
* @return The anomaly description.
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return The anomaly name.
*
*/
public String displayName() {
return this.displayName;
}
/**
* @return The anomaly end time.
*
*/
public String endTimeUtc() {
return this.endTimeUtc;
}
/**
* @return The intent of the anomaly.
*
*/
public Optional intent() {
return Optional.ofNullable(this.intent);
}
/**
* @return The entity query kind
* Expected value is 'Anomaly'.
*
*/
public String kind() {
return this.kind;
}
/**
* @return The anomaly product name.
*
*/
public Optional productName() {
return Optional.ofNullable(this.productName);
}
/**
* @return The reasons that cause the anomaly.
*
*/
public List reasons() {
return this.reasons == null ? List.of() : this.reasons;
}
/**
* @return The anomaly start time.
*
*/
public String startTimeUtc() {
return this.startTimeUtc;
}
/**
* @return The techniques of the anomaly.
*
*/
public List techniques() {
return this.techniques == null ? List.of() : this.techniques;
}
/**
* @return The anomaly generated time.
*
*/
public String timeGenerated() {
return this.timeGenerated;
}
/**
* @return The name of the anomaly vendor.
*
*/
public Optional vendor() {
return Optional.ofNullable(this.vendor);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(AnomalyTimelineItemResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String azureResourceId;
private @Nullable String description;
private String displayName;
private String endTimeUtc;
private @Nullable String intent;
private String kind;
private @Nullable String productName;
private @Nullable List reasons;
private String startTimeUtc;
private @Nullable List techniques;
private String timeGenerated;
private @Nullable String vendor;
public Builder() {}
public Builder(AnomalyTimelineItemResponse defaults) {
Objects.requireNonNull(defaults);
this.azureResourceId = defaults.azureResourceId;
this.description = defaults.description;
this.displayName = defaults.displayName;
this.endTimeUtc = defaults.endTimeUtc;
this.intent = defaults.intent;
this.kind = defaults.kind;
this.productName = defaults.productName;
this.reasons = defaults.reasons;
this.startTimeUtc = defaults.startTimeUtc;
this.techniques = defaults.techniques;
this.timeGenerated = defaults.timeGenerated;
this.vendor = defaults.vendor;
}
@CustomType.Setter
public Builder azureResourceId(String azureResourceId) {
if (azureResourceId == null) {
throw new MissingRequiredPropertyException("AnomalyTimelineItemResponse", "azureResourceId");
}
this.azureResourceId = azureResourceId;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder displayName(String displayName) {
if (displayName == null) {
throw new MissingRequiredPropertyException("AnomalyTimelineItemResponse", "displayName");
}
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder endTimeUtc(String endTimeUtc) {
if (endTimeUtc == null) {
throw new MissingRequiredPropertyException("AnomalyTimelineItemResponse", "endTimeUtc");
}
this.endTimeUtc = endTimeUtc;
return this;
}
@CustomType.Setter
public Builder intent(@Nullable String intent) {
this.intent = intent;
return this;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("AnomalyTimelineItemResponse", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder productName(@Nullable String productName) {
this.productName = productName;
return this;
}
@CustomType.Setter
public Builder reasons(@Nullable List reasons) {
this.reasons = reasons;
return this;
}
public Builder reasons(String... reasons) {
return reasons(List.of(reasons));
}
@CustomType.Setter
public Builder startTimeUtc(String startTimeUtc) {
if (startTimeUtc == null) {
throw new MissingRequiredPropertyException("AnomalyTimelineItemResponse", "startTimeUtc");
}
this.startTimeUtc = startTimeUtc;
return this;
}
@CustomType.Setter
public Builder techniques(@Nullable List techniques) {
this.techniques = techniques;
return this;
}
public Builder techniques(String... techniques) {
return techniques(List.of(techniques));
}
@CustomType.Setter
public Builder timeGenerated(String timeGenerated) {
if (timeGenerated == null) {
throw new MissingRequiredPropertyException("AnomalyTimelineItemResponse", "timeGenerated");
}
this.timeGenerated = timeGenerated;
return this;
}
@CustomType.Setter
public Builder vendor(@Nullable String vendor) {
this.vendor = vendor;
return this;
}
public AnomalyTimelineItemResponse build() {
final var _resultValue = new AnomalyTimelineItemResponse();
_resultValue.azureResourceId = azureResourceId;
_resultValue.description = description;
_resultValue.displayName = displayName;
_resultValue.endTimeUtc = endTimeUtc;
_resultValue.intent = intent;
_resultValue.kind = kind;
_resultValue.productName = productName;
_resultValue.reasons = reasons;
_resultValue.startTimeUtc = startTimeUtc;
_resultValue.techniques = techniques;
_resultValue.timeGenerated = timeGenerated;
_resultValue.vendor = vendor;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy