
com.pulumi.azurenative.securityinsights.outputs.MetadataSourceResponse 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.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class MetadataSourceResponse {
/**
* @return Source type of the content
*
*/
private String kind;
/**
* @return Name of the content source. The repo name, solution name, LA workspace name etc.
*
*/
private @Nullable String name;
/**
* @return ID of the content source. The solution ID, workspace ID, etc
*
*/
private @Nullable String sourceId;
private MetadataSourceResponse() {}
/**
* @return Source type of the content
*
*/
public String kind() {
return this.kind;
}
/**
* @return Name of the content source. The repo name, solution name, LA workspace name etc.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
/**
* @return ID of the content source. The solution ID, workspace ID, etc
*
*/
public Optional sourceId() {
return Optional.ofNullable(this.sourceId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(MetadataSourceResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String kind;
private @Nullable String name;
private @Nullable String sourceId;
public Builder() {}
public Builder(MetadataSourceResponse defaults) {
Objects.requireNonNull(defaults);
this.kind = defaults.kind;
this.name = defaults.name;
this.sourceId = defaults.sourceId;
}
@CustomType.Setter
public Builder kind(String kind) {
if (kind == null) {
throw new MissingRequiredPropertyException("MetadataSourceResponse", "kind");
}
this.kind = kind;
return this;
}
@CustomType.Setter
public Builder name(@Nullable String name) {
this.name = name;
return this;
}
@CustomType.Setter
public Builder sourceId(@Nullable String sourceId) {
this.sourceId = sourceId;
return this;
}
public MetadataSourceResponse build() {
final var _resultValue = new MetadataSourceResponse();
_resultValue.kind = kind;
_resultValue.name = name;
_resultValue.sourceId = sourceId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy