
com.pulumi.azurenative.securityinsights.outputs.MetadataDependenciesResponse Maven / Gradle / Ivy
// *** 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 java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MetadataDependenciesResponse {
/**
* @return Id of the content item we depend on
*
*/
private @Nullable String contentId;
/**
* @return This is the list of dependencies we must fulfill, according to the AND/OR operator
*
*/
private @Nullable List criteria;
/**
* @return Type of the content item we depend on
*
*/
private @Nullable String kind;
/**
* @return Name of the content item
*
*/
private @Nullable String name;
/**
* @return Operator used for list of dependencies in criteria array.
*
*/
private @Nullable String operator;
/**
* @return Version of the the content item we depend on. Can be blank, * or missing to indicate any version fulfills the dependency. If version does not match our defined numeric format then an exact match is required.
*
*/
private @Nullable String version;
private MetadataDependenciesResponse() {}
/**
* @return Id of the content item we depend on
*
*/
public Optional contentId() {
return Optional.ofNullable(this.contentId);
}
/**
* @return This is the list of dependencies we must fulfill, according to the AND/OR operator
*
*/
public List criteria() {
return this.criteria == null ? List.of() : this.criteria;
}
/**
* @return Type of the content item we depend on
*
*/
public Optional kind() {
return Optional.ofNullable(this.kind);
}
/**
* @return Name of the content item
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return Operator used for list of dependencies in criteria array.
*
*/
public Optional operator() {
return Optional.ofNullable(this.operator);
}
/**
* @return Version of the the content item we depend on. Can be blank, * or missing to indicate any version fulfills the dependency. If version does not match our defined numeric format then an exact match is required.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MetadataDependenciesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String contentId;
private @Nullable List criteria;
private @Nullable String kind;
private @Nullable String name;
private @Nullable String operator;
private @Nullable String version;
public Builder() {}
public Builder(MetadataDependenciesResponse defaults) {
Objects.requireNonNull(defaults);
this.contentId = defaults.contentId;
this.criteria = defaults.criteria;
this.kind = defaults.kind;
this.name = defaults.name;
this.operator = defaults.operator;
this.version = defaults.version;
}
@CustomType.Setter
public Builder contentId(@Nullable String contentId) {
this.contentId = contentId;
return this;
}
@CustomType.Setter
public Builder criteria(@Nullable List criteria) {
this.criteria = criteria;
return this;
}
public Builder criteria(MetadataDependenciesResponse... criteria) {
return criteria(List.of(criteria));
}
@CustomType.Setter
public Builder kind(@Nullable String kind) {
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder operator(@Nullable String operator) {
this.operator = operator;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public MetadataDependenciesResponse build() {
final var _resultValue = new MetadataDependenciesResponse();
_resultValue.contentId = contentId;
_resultValue.criteria = criteria;
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.operator = operator;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy